/* CRM Agencije · Saloni (07.11.2026) — isti izgled kao AI Budućnost CRM (King Platforma), druge boje: tamnoplava podloga, tirkizni akcenat */
:root {
  color-scheme: dark;
  --bg: #0b1120; --surface: #131c2f; --surface-2: #0b1120; --side: #080d19;
  --hair: #24314a; --ink: #f1f5f9; --muted: #94a3b8;
  --accent: #2dd4bf; --accent-deep: #14b8a6; --on-accent: #042f2e;
  --blue: #3b82f6; --emerald: #10b981; --emerald-4: #34d399; --amber: #f59e0b; --red: #ef4444; --red-4: #f87171;
  --violet: #8b5cf6; --sky: #0ea5e9; --pink: #ec4899; --zinc: #71717a;
  --f: 'Geist', -apple-system, system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--f); -webkit-font-smoothing: antialiased; touch-action: manipulation; }
button, input, select, textarea { font: inherit; color: inherit; }
button:not(:disabled), select, a, [role="button"] { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; text-decoration: none; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.err { min-height: 18px; margin: 6px 0; color: var(--red-4); font-size: 13px; }

/* dugmad i polja (kao Milanova: primary žuto, ghost tamno sa okvirom, small za filtere) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border-radius: 8px; border: 1px solid var(--hair); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover:not(:disabled) { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--block { width: 100%; padding: 11px; }
.btn--icon { padding: 7px; }
.inp, .sm { border: 1px solid var(--hair); background: var(--surface-2); color: var(--ink); border-radius: 8px; outline: none; }
.inp { width: 100%; padding: 8px 12px; font-size: 14px; }
.sm { padding: 6px 10px; font-size: 12px; }
.inp:focus, .sm:focus { border-color: var(--accent); }
textarea.inp { resize: vertical; }
::placeholder { color: var(--muted); }
.lbl { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.fld { display: block; margin-bottom: 12px; }
.fld > span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.fld input { width: 100%; padding: 9px 12px; border: 1px solid var(--hair); background: var(--surface-2); border-radius: 8px; outline: none; }
.fld input:focus { border-color: var(--accent); }
.tbtn { padding: 4px 0; border: 0; background: none; font-size: 12px; font-weight: 600; color: var(--muted); }
.tbtn:hover:not(:disabled) { color: var(--ink); }

/* prijava */
.gate { min-height: 100svh; display: grid; place-items: center; padding: 16px; }
.gate__box { width: min(100%, 380px); padding: 28px; border-radius: 16px; border: 1px solid var(--hair); background: var(--surface); }
.brand { font-size: 15px; font-weight: 800; letter-spacing: .02em; color: var(--accent); }
.brand b { color: var(--ink); font-weight: 800; }
.brand--lg { font-size: 22px; margin-bottom: 6px; }

/* raspored: bočni meni 256px kao kod Milana */
.app { display: flex; min-height: 100svh; }
.side { position: fixed; inset: 0 auto 0 0; width: 256px; display: flex; flex-direction: column; background: var(--side); border-right: 1px solid var(--hair); }
.side__top { height: 64px; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--hair); }
.side__nav { flex: 1; padding: 12px; }
.side__link { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; border-left: 2px solid transparent; }
.side__link.is-on { background: var(--surface); color: var(--ink); border-left-color: var(--accent); }
.side__link.is-on svg { color: var(--accent); }
.side__foot { padding: 14px 20px; border-top: 1px solid var(--hair); font-size: 12px; color: var(--muted); }
.side__me { margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis; }
.side__out { display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; }
.side__out:hover { color: var(--ink); }
.main { flex: 1; min-width: 0; margin-left: 256px; padding: 28px 32px 60px; }
.mtop { display: none; }
.h1 { margin: 0 0 18px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.hrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 18px; }
.hrow .h1 { margin: 0; }
.book button { font-size: 14px; }
.book button[aria-pressed="true"] { color: var(--accent); }
body[data-bookv="old"] .book button[aria-pressed="true"] { color: var(--ink); }
.oldnote { margin: 0 0 14px; padding: 10px 14px; border: 1px dashed var(--hair); border-radius: 10px; font-size: 13px; color: var(--muted); }
.oldnote b { color: var(--ink); }
.bk-tag { padding: 3px 8px; border: 1px solid var(--hair); border-radius: 999px; font-size: 12px; color: var(--muted); }
.bk-move { padding: 6px 12px; font-size: 13px; }
.lm__back { padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; }
.lm__back:hover { color: var(--ink); text-decoration: underline; }
.tabs { display: flex; gap: 24px; margin-bottom: 22px; border-bottom: 1px solid var(--hair); overflow-x: auto; }
.tabs a { padding: 0 2px 10px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--accent); }
@media (max-width: 767px) {
  .side { display: none; }
  .main { margin-left: 0; padding: 12px 16px 60px; padding-top: max(12px, env(safe-area-inset-top)); }
  .mtop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .h1 { font-size: 22px; margin-bottom: 12px; }
  .hrow { margin-bottom: 12px; }
  .tabs { gap: 18px; margin-bottom: 16px; }
}

/* Opportunities: traka + filteri */
.tool { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.tool__sw { display: flex; align-items: baseline; gap: 16px; font-size: 14px; }
.tool__sw button { padding: 0; border: 0; background: none; font-weight: 600; color: var(--muted); text-underline-offset: 6px; }
.tool__sw button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.own { margin-left: 8px; }
.own button { white-space: nowrap; }
.tool__r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.seg { display: flex; padding: 2px; border: 1px solid var(--hair); border-radius: 8px; }
.seg button { display: flex; align-items: center; gap: 6px; padding: 6px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent); }
.seg--txt button { padding: 6px 12px; }
.seg--txt button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
.filt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.filt .sm[type="search"] { width: 224px; }
.filt__sort { margin-left: auto; }
@media (max-width: 767px) { .filt .sm[type="search"] { width: 100%; order: -1; } .filt__sort { margin-left: 0; } }

/* tabla */
/* kolone su rastegnute do najduže, pa kartica može da se spusti bilo gde u traku kolone (03.11); okvir je unutra da ga overflow ne seče */
.board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; align-items: stretch; }
.col { flex: 0 0 298px; min-width: 0; display: flex; flex-direction: column; padding: 4px; border: 1px dashed transparent; border-radius: 14px; }
.col.is-over { border-color: var(--accent); background: rgba(45,212,191,.05); }
.col__h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 0 4px; }
.col__dot { width: 8px; height: 8px; border-radius: 50%; }
.col__t { font-size: 14px; font-weight: 600; }
.col__n { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 100px; background: var(--surface); color: var(--muted); font-size: 12px; text-align: center; }
.col__b { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-height: 64px; border-radius: 12px; }
.col__empty { padding: 20px; border: 1px dashed var(--hair); border-radius: 12px; text-align: center; font-size: 12px; color: var(--muted); }
.col__foot { margin-top: 10px; }
@media (max-width: 767px) { .col { flex-basis: 84vw; } .board { scroll-snap-type: x mandatory; } .col { scroll-snap-align: start; } body.is-dragging .board { scroll-snap-type: none; } }

.card { display: flex; align-items: stretch; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.card.is-alert { border-color: rgba(248,113,113,.7); }
.card.is-drag { opacity: .35; }
.card.ghost { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; opacity: .95; border-color: var(--accent); box-shadow: 0 18px 44px rgba(0,0,0,.55); transform: scale(1.02); }
body.is-dragging { -webkit-user-select: none; user-select: none; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; }
.card__grip { width: 28px; flex: none; display: flex; align-items: center; justify-content: center; color: rgba(148,163,184,.6); cursor: grab; touch-action: none; }
.card__in { min-width: 0; flex: 1; padding: 12px 12px 12px 0; }
.card__name { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__name:hover { text-decoration: underline; }
.card__co { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__said { margin-top: 2px; font-size: 12px; color: rgba(241,245,249,.8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__note { display: block; width: 100%; margin-top: 6px; padding: 0; border: 0; background: none; text-align: left; font-size: 12px; font-style: italic; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__note:hover { color: var(--ink); }
.card__task { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; }
.card__task > button:first-child { display: flex; min-width: 0; align-items: center; gap: 6px; padding: 0; border: 0; background: none; text-align: left; }
.card__task > button:first-child:hover { text-decoration: underline; }
.card__task b { display: flex; flex: none; align-items: center; gap: 4px; font-weight: 600; font-variant-numeric: tabular-nums; }
.card__task span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__task .ok { margin-left: auto; padding: 2px; border: 0; background: none; color: var(--muted); }
.card__task .ok:hover { color: var(--emerald-4); }
.card__icons { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--muted); }
.card__icons a, .card__icons button { display: flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font-size: 11px; font-variant-numeric: tabular-nums; }
.card__icons a:hover, .card__icons button:hover { color: var(--accent); }
.card__icons svg { width: 14px; height: 14px; }
.card__icons .is-run { color: var(--red-4); }
.card__ad { margin-left: auto; min-width: 0; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__days { flex: none; font-size: 11px; font-variant-numeric: tabular-nums; }
.card__days.is-alert { font-weight: 600; color: var(--red-4); }
.card__ad + .card__days { margin-left: 0; }
.card__icons > .card__days:first-of-type:not(.card__ad + .card__days) { margin-left: auto; }

.k-call { color: var(--emerald-4); } .k-meeting { color: var(--red-4); } .k-reminder { color: var(--accent); }
.late-w { font-weight: 600; color: var(--ink); }

/* zone za Lost / Wrong dok se kartica vuče (kao Milanova) */
.zones { position: fixed; inset: auto 0 0 256px; z-index: 40; display: flex; gap: 12px; padding: 12px; background: rgba(11,17,32,.9); backdrop-filter: blur(6px); }
.zones div { flex: 1; padding: 16px; border: 2px dashed; border-radius: 12px; text-align: center; font-weight: 600; }
.zones div.is-over { background: rgba(255,255,255,.04); }
.zones .z-lost { border-color: rgba(248,113,113,.6); color: var(--red-4); }
.zones .z-fake { border-color: var(--muted); color: var(--muted); }
@media (max-width: 767px) { .zones { left: 0; } }

/* lista */
.tbl { overflow-x: auto; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { padding: 10px 16px; text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); }
.tbl td { padding: 8px 16px; border-top: 1px solid var(--hair); vertical-align: top; }
.tbl tbody tr.is-link { cursor: pointer; }
.tbl tbody tr.is-link:hover { background: var(--surface-2); }
.tbl .r { text-align: right; }
.tbl small { color: var(--muted); }
.tbl__sub { font-size: 12px; color: var(--muted); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* prozor leada (GoHighLevel stil, kao Milanov) */
.ov { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.6); }
.lm { display: flex; flex-direction: column; width: 100%; max-width: 1152px; height: 88vh; overflow: hidden; border: 1px solid var(--hair); border-radius: 16px; background: var(--surface); }
.lm__head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--hair); }
.lm__name { width: 100%; padding: 0; border: 0; border-radius: 6px; background: transparent; font-size: 20px; font-weight: 800; letter-spacing: -.02em; outline: none; }
.lm__name:focus { box-shadow: 0 0 0 1px var(--accent); }
.lm__meta { margin-top: 4px; font-size: 14px; color: var(--muted); }
.lm__sel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.lm__acts { display: flex; flex: none; align-items: center; gap: 4px; }
.ib { display: flex; align-items: center; justify-content: center; padding: 8px; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.ib:hover { background: var(--surface-2); color: var(--accent); }
.ib svg { width: 17px; height: 17px; }
.ib--x svg { width: 20px; height: 20px; }
.ib--x:hover { color: var(--ink); }
.ib--ok:hover { color: var(--emerald-4); }
.lm__tabs-m { display: none; gap: 20px; padding: 0 20px; border-bottom: 1px solid var(--hair); }
.lm__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 0; flex: 1; }
.lm__left { min-height: 0; overflow-y: auto; padding: 20px; border-right: 1px solid var(--hair); }
.lm__right { display: flex; flex-direction: column; min-height: 0; }
.lm__tabs { display: flex; gap: 20px; padding: 12px 20px 0; border-bottom: 1px solid var(--hair); }
.lm__tab { margin-bottom: -1px; padding: 4px 4px 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.lm__tab:hover { color: var(--ink); }
.lm__tab[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.lm__tab i { margin-left: 6px; font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.lm__body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; }
.sec { padding: 16px 0; border-top: 1px solid var(--hair); }
.sec:first-child { padding-top: 0; border-top: 0; }
.sec h3 { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pairs { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px 12px; margin: 0; font-size: 14px; }
.pairs dt { color: var(--muted); }
.pairs dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.pairs a { color: var(--accent); }
details.sec summary { cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
details.sec summary:hover { color: var(--ink); }
.lm__foot { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--hair); font-size: 12px; color: var(--muted); }
.lm__del { margin-left: auto; display: flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--red-4); font-size: 12px; }
.lm__del:hover { text-decoration: underline; }
.lm__del svg { width: 13px; height: 13px; }
@media (max-width: 767px) {
  .ov { padding: 0; align-items: stretch; }
  .lm { height: 100%; max-width: none; border: 0; border-radius: 0; }
  .lm__head { padding-top: max(20px, env(safe-area-inset-top)); }
  .lm__tabs-m { display: flex; }
  .lm__grid { display: block; overflow-y: auto; }
  .lm__left { border-right: 0; }
  .lm__tabs { display: none; }
  .lm[data-tab="details"] .lm__right { display: none; }
  .lm:not([data-tab="details"]) .lm__left { display: none; }
}

/* beleške, aktivnost, plan */
.addn { margin-bottom: 20px; }
.addn__row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.addn__row .btn { margin-left: auto; }
.list { margin: 0; padding: 0; list-style: none; }
.list > li { padding: 12px 0; border-top: 1px solid var(--hair); }
.list > li:first-child { border-top: 0; }
.nh { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.nh b { color: var(--ink); font-weight: 600; }
.nh__r { margin-left: auto; display: flex; gap: 12px; }
.nh__r button { padding: 0; border: 0; background: none; color: var(--muted); font-size: 12px; }
.nh__r button:hover { color: var(--ink); }
.nh__r button.del:hover { color: var(--red-4); }
.nt { margin: 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.act { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; }
.act__k { width: 64px; flex: none; padding-top: 2px; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.act__t { min-width: 0; flex: 1; white-space: pre-wrap; word-break: break-word; }
.act__w { flex: none; font-size: 12px; color: var(--muted); }
.empty { font-size: 14px; color: var(--muted); }

.tf__kinds { display: flex; padding: 2px; border: 1px solid var(--hair); border-radius: 8px; }
.tf__kinds button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.tf__kinds button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
.tf__row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.7fr) minmax(0,1fr); gap: 12px; margin-top: 12px; }
@media (max-width: 560px) { .tf__row { grid-template-columns: 1fr 1fr; } .tf__row > :last-child { grid-column: 1 / -1; } }
.tf__end { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.tf__end .btn:first-of-type { margin-left: auto; }
.tr__h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.tr__due { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tr__kind { font-size: 12px; color: var(--muted); }
.tr__who { margin-left: auto; border: 0; background: transparent; color: var(--muted); font-size: 12px; outline: none; }
.tr__title { margin-top: 4px; font-size: 15px; font-weight: 600; }
.tr__lead { margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 12px; }
.tr__lead a { font-weight: 600; }
.tr__lead a:hover { text-decoration: underline; }
.tr__note { margin: 4px 0 0; font-size: 14px; color: var(--muted); white-space: pre-wrap; }
.tr.is-done { opacity: .6; }
.tr.is-done .tr__due, .tr.is-done .tr__title { text-decoration: line-through; }
.ta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 8px; }
.ta .done { display: flex; align-items: center; gap: 4px; color: var(--emerald-4); }
.ta .done:hover { text-decoration: underline; }
.ta__r { margin-left: auto; display: flex; gap: 4px; }
.ta__r button { padding: 4px; border: 0; background: none; color: var(--muted); }
.ta__r button:hover { color: var(--ink); }
.ta__r button.del:hover { color: var(--red-4); }
.ta__r svg { width: 13px; height: 13px; }
.ta__mv { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* običan prozor (poruka, novi zadatak, nova prilika, javio se) */
.md { width: min(100%, 560px); max-height: calc(100svh - 32px); overflow: auto; padding: 22px; border: 1px solid var(--hair); border-radius: 16px; background: var(--surface); }
.md__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.md__h h2 { margin: 0; font-size: 18px; font-weight: 700; }
.md__end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chips button { padding: 5px 11px; border: 1px solid var(--hair); border-radius: 100px; background: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.ans { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.ans button { padding: 12px 10px; border: 1px solid var(--hair); border-radius: 10px; background: var(--surface-2); font-size: 14px; font-weight: 600; }
.ans button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ans button[data-o="later"] { grid-column: 1 / -1; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.quick button { padding: 4px 10px; border: 1px solid var(--hair); border-radius: 100px; background: none; color: var(--muted); font-size: 12px; }
.quick button:hover { color: var(--ink); border-color: var(--muted); }

/* Agenda */
.cal-tool { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.cal-tool h2 { margin: 0 0 0 4px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.cal-tool__r { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ibox { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--hair); border-radius: 8px; background: var(--surface); }
.ibox:hover { border-color: var(--accent); }
.wk { overflow: hidden; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); }
.wk__head, .wk__grid { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); }
.wk__head { border-bottom: 1px solid var(--hair); }
.wk__d { padding: 10px 8px; border-left: 1px solid var(--hair); }
.wk__wd { font-size: 12px; font-weight: 500; color: var(--muted); }
.wk__wd.is-today { color: var(--accent); }
.wk__num { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.wk__num b { display: flex; min-width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 100px; font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.wk__num b.is-today { background: var(--accent); color: var(--on-accent); padding: 0 6px; }
.wk__num span { font-size: 12px; color: var(--muted); }
.wk__scroll { position: relative; max-height: 66vh; overflow-y: auto; }
.wk__grid { position: relative; height: 1440px; }
.wk__hours { position: relative; }
.wk__hours span { position: absolute; right: 8px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wk__line { position: absolute; left: 56px; right: 0; border-top: 1px solid var(--hair); pointer-events: none; }
.wk__col { position: relative; border-left: 1px solid var(--hair); cursor: pointer; }
.wk__col:hover { background: rgba(255,255,255,.015); }
.wk__col.is-today { background: rgba(255,255,255,.03); }
.wk__now { position: absolute; left: 0; right: 0; z-index: 2; height: 1px; background: var(--ink); pointer-events: none; }
.wk__now::before { content: ''; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.blk { position: absolute; overflow: hidden; padding: 4px 8px; border: 1px solid; border-radius: 6px; text-align: left; }
.blk__t { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.blk__t svg { width: 11px; height: 11px; }
.blk__n { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk__l { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-call { border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.15); } .b-call:hover { border-color: var(--emerald-4); } .b-call.is-late { border-color: var(--emerald-4); background: rgba(52,211,153,.25); }
.b-meeting { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.15); } .b-meeting:hover { border-color: var(--red-4); } .b-meeting.is-late { border-color: var(--red-4); background: rgba(248,113,113,.25); }
.b-reminder { border-color: rgba(45,212,191,.4); background: rgba(45,212,191,.15); } .b-reminder:hover { border-color: var(--accent); } .b-reminder.is-late { border-color: var(--accent); background: rgba(45,212,191,.25); }
.blk.is-done { border-color: rgba(255,255,255,.05); background: rgba(255,255,255,.03); opacity: .6; }
.blk.is-done .blk__n { text-decoration: line-through; }
.strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 16px; }
.strip button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; border: 0; border-radius: 8px; background: none; }
.strip i { font-style: normal; font-size: 11px; font-weight: 500; color: var(--muted); }
.strip i.is-today { color: var(--accent); }
.strip b { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; font-size: 16px; font-weight: 700; }
.strip b.is-on { background: var(--accent); color: var(--on-accent); }
.strip b.is-today:not(.is-on) { color: var(--accent); }
.dots { display: flex; gap: 2px; height: 6px; }
.dots span { width: 6px; height: 6px; border-radius: 50%; }
.d-call { background: var(--emerald-4); } .d-meeting { background: var(--red-4); } .d-reminder { background: var(--accent); } .d-done { background: var(--hair); }
.dl__h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.dl__h h3 { margin: 0; font-size: 16px; font-weight: 700; }
.dl__h button { margin-left: auto; display: flex; align-items: center; gap: 4px; padding: 4px 0; border: 0; background: none; color: var(--accent); font-size: 14px; font-weight: 600; }
.dl { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.dl li { border-bottom: 1px solid var(--hair); }
.dl li button { display: flex; width: 100%; align-items: flex-start; gap: 12px; padding: 12px 0; border: 0; background: none; text-align: left; }
.dl__t { width: 48px; flex: none; padding-top: 2px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.dl__t small { display: block; font-size: 11px; color: var(--ink); }
.dl__n { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.dl__l { display: block; font-size: 12px; color: var(--muted); }
.mo { overflow: hidden; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); }
.mo__r { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--hair); }
.mo__r:last-child { border-bottom: 0; }
.mo__wd { padding: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.mo__c { min-height: 116px; padding: 6px; border-left: 1px solid var(--hair); cursor: pointer; }
.mo__c:first-child { border-left: 0; }
.mo__c.is-out { background: rgba(11,17,32,.4); }
.mo__num { display: flex; min-width: 28px; height: 28px; align-items: center; justify-content: center; padding: 0 4px; border: 0; border-radius: 100px; background: none; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mo__num.is-today { background: var(--accent); color: var(--on-accent); }
.mo__c.is-out .mo__num { color: var(--muted); }
.mo__it { display: flex; width: 100%; align-items: center; gap: 4px; margin-top: 2px; padding: 2px 4px; border: 0; border-radius: 4px; background: none; text-align: left; font-size: 12px; overflow: hidden; white-space: nowrap; }
.mo__it:hover { background: var(--surface-2); }
.mo__it b { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.mo__it span { overflow: hidden; text-overflow: ellipsis; }
.mo__it.is-done { opacity: .5; } .mo__it.is-done span { text-decoration: line-through; }
.mo__more { padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.mo .dots { display: none; margin: 4px 4px 0; flex-wrap: wrap; }
@media (max-width: 767px) { .mo__c { min-height: 56px; padding: 4px; } .mo__it, .mo__more { display: none; } .mo .dots { display: flex; } .mo__c.is-sel { background: var(--surface-2); } }
.ag { max-width: 768px; }
.ag h2 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.ag h2 span { font-weight: 400; color: var(--muted); }
.ag section { margin-bottom: 24px; }
.ag .list { border-top: 1px solid var(--hair); }

/* Analytics i Pipelines */
.an h2 { margin: 26px 0 10px; font-size: 16px; font-weight: 700; }
.an h2:first-of-type { margin-top: 6px; }
.an__bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding: 14px; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); overflow-x: auto; }
.an__bars div { flex: 1 0 14px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.an__bars i { display: block; width: 100%; border-radius: 3px 3px 0 0; background: rgba(45,212,191,.35); position: relative; }
.an__bars i i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--blue); }
.an__bars span { font-size: 10px; color: var(--muted); }
.stg { max-width: 640px; }
.stg__row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hair); }
.stg__row:first-child { border-top: 0; }
.stg__row .inp { flex: 1; }
.stg__row select { width: 110px; }
.stg__mv { display: flex; gap: 2px; }
.stg__mv button { padding: 4px 6px; border: 1px solid var(--hair); border-radius: 6px; background: none; color: var(--muted); }
.stg__n { width: 36px; text-align: right; font-size: 12px; color: var(--muted); }
.box { margin-bottom: 18px; padding: 16px; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); }
.box h3 { margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.box p { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.st-ok { color: var(--emerald-4); font-weight: 600; } .st-no { color: var(--red-4); font-weight: 600; }

/* undo + toast */
.undo { position: fixed; left: 50%; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 16px; padding: 12px 16px; transform: translateX(-50%); border: 1px solid var(--hair); border-radius: 12px; background: var(--surface-2); box-shadow: 0 20px 50px rgba(0,0,0,.55); font-size: 14px; }
.undo button { padding: 0; border: 0; background: none; color: var(--accent); font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; padding: 10px 16px; transform: translate(-50%, 20px); border: 1px solid var(--hair); border-radius: 10px; background: var(--surface); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* 07.11: iznos (koliko daje / treba) — kartica, zbir kolone, traka zbirova, polje u prozoru */
.card__top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.card__top .card__name { flex: 1; width: auto; min-width: 0; }
.card__amt { flex: none; font-size: 13px; font-weight: 700; color: var(--accent); }
.col__sum { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.col__sum + .col__n { margin-left: 0; }
.sum { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.sum__c { display: flex; flex-direction: column; gap: 2px; min-width: 150px; padding: 10px 14px; border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); }
.sum__c span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sum__c span i { font-style: normal; margin-left: 4px; padding: 0 6px; border-radius: 100px; background: var(--surface-2); }
.sum__c b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.sum__c.is-open b { color: var(--accent); }
.sum__c.is-won b { color: var(--emerald-4); }
.sum__c.is-lost b { color: var(--muted); font-weight: 600; }
.amt-in { position: relative; display: inline-flex; align-items: center; }
.amt-in .inp { width: 130px; padding-right: 28px; font-weight: 700; text-align: right; }
.amt-in span { position: absolute; right: 10px; color: var(--muted); font-weight: 600; pointer-events: none; }
.amt-in--full { display: flex; }
.amt-in--full .inp { width: 100%; }
.lm__sel .amt-in .inp { padding-top: 5px; padding-bottom: 5px; font-size: 14px; }
@media (max-width: 600px) { .sum__c { min-width: 0; flex: 1 1 30%; padding: 8px 10px; } .sum__c b { font-size: 15px; } }
