/* Obzor is scoped to one opt-in theme. PDF/print layouts retain their original palette. */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
@media screen {
html[data-tema="obzor"]{color-scheme:dark;--ob-bg:#101a20;--ob-panel:#19262d;--ob-soft:#1d2d35;--ob-line:#ffffff14;--ob-text:#edf3f2;--ob-muted:#a4b6bc;--ob-gold:#e6bd74;--ob-green:#84c9b0;--ob-nav:#121f26;--brand:#e6bd74;--brand-light:#2c302c;--brand-rgb:230,189,116;--surface-edge:var(--ob-line);--line:var(--ob-line);--card:var(--ob-panel);--text:var(--ob-text);--muted:var(--ob-muted);--ring:0 0 0 3px #e6bd7444}
html[data-tema="obzor"][data-obzor="svijetli"]{color-scheme:light;--ob-bg:#f2f4f2;--ob-panel:#fff;--ob-soft:#f7f8f5;--ob-line:#23372c20;--ob-text:#20352f;--ob-muted:#61776d;--ob-gold:#99651e;--ob-green:#27785b;--ob-nav:#fafbf8;--brand:#99651e;--brand-light:#f2e8d6;--brand-rgb:153,101,30}
html[data-tema="obzor"] :is(body,#root,.app-shell,.app-content){background:var(--ob-bg)!important;color:var(--ob-text)!important;font-family:Manrope,system-ui,sans-serif}
html[data-tema="obzor"] :is(.app-sidebar,.gr-mobile-left,.gr-mobile-right,.gr-rail,.app-bottom-nav){background:var(--ob-nav)!important;color:var(--ob-text)!important;border-color:var(--ob-line)!important}
html[data-tema="obzor"] :is(.gr-card,.gr-mapa,.gr-my-task-card,.gr-wrow,.gr-koop-card,.gr-tool-card,.gr-skl-product-card,.gr-skl-category-card,.gr-upiti-card,.gr-profile-menu-card,.gr-worker-pass,.gr-tasks-panel,.gr-finance-summary,.gr-racuni-summary,.gr-graditelj-widget,.ai-dashboard-card,.calendar-day-view,.calendar-year-view,.gr-theme-settings,.gr-theme-choice,.gr-client-form,.gr-store-stall-card,.ur-room,.gk-card){background:var(--ob-panel)!important;color:var(--ob-text)!important;border-color:var(--ob-line)!important;border-radius:16px!important;box-shadow:0 10px 26px #0000000c!important}
html[data-tema="obzor"] :is(.gr-nav,.gr-tile,.gr-profile-menu-card){border:1px solid var(--ob-line)!important;background:var(--ob-panel)!important;color:var(--ob-text)!important;border-radius:11px!important;box-shadow:none!important}
html[data-tema="obzor"] .gr-nav{margin:4px 10px!important;min-height:44px;font-size:13px!important}
html[data-tema="obzor"] .gr-nav:is(.active,:hover){background:color-mix(in srgb,var(--ob-gold) 10%,var(--ob-panel))!important;border-color:color-mix(in srgb,var(--ob-gold) 30%,transparent)!important;color:var(--ob-gold)!important}
html[data-tema="obzor"] .gr-redesign-icon{display:inline-grid;place-items:center;background:color-mix(in srgb,var(--ob-gold) 10%,var(--ob-panel));color:var(--ob-gold);border-radius:9px;font-size:22px}
html[data-tema="obzor"] :is(h1,h2,h3,h4,.project-card-title,.gr-page-title,.gr-nav-label){color:var(--ob-text)!important}
html[data-tema="obzor"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),textarea,select){background:var(--ob-soft)!important;color:var(--ob-text)!important;border-color:var(--ob-line)!important;border-radius:10px!important;box-shadow:none!important}
html[data-tema="obzor"] :is(input,textarea)::placeholder{color:var(--ob-muted)!important;opacity:.85}
html[data-tema="obzor"] :is(input[type="checkbox"],input[type="radio"]){accent-color:var(--ob-green)}
html[data-tema="obzor"] :is(button,.gr-btn){border-color:var(--ob-line);transition:background .2s,box-shadow .2s,transform .2s}
html[data-tema="obzor"] :is(.gr-btn,.gr-chip,.gr-chipx,.gr-seg,.gr-seg button,.gr-tabs,.gr-tabs-item,.gr-project-action-secondary,.gr-projekt-brzo,.gr-projekt-brzo button,.gr-dashboard-projects-toggle,.gr-page-back,.gr-back,.gr-theme-choice){background:var(--ob-soft)!important;color:var(--ob-text)!important;border-color:var(--ob-line)!important}
html[data-tema="obzor"] :is(.gr-btn-primary,.gr-project-action-primary,.gr-fab,.gr-seg button.active,.gr-tabs-item.active,.gr-chip.active,.gr-chipx.active){background:var(--ob-gold)!important;color:var(--ob-bg)!important;border-color:var(--ob-gold)!important}
html[data-tema="obzor"] :is(.gr-feed,.gr-feed-list,.gr-tab-body){background:var(--ob-bg)!important;color:var(--ob-text)!important}
html[data-tema="obzor"] :is(.gr-feed-bar,.gr-feed-chat-bubble,.gr-add-task-form,.gr-edit-panel,[role="dialog"]){background:var(--ob-panel)!important;color:var(--ob-text)!important;border-color:var(--ob-line)!important}
html[data-tema="obzor"] .gr-feed-chat-bubble.mine{background:color-mix(in srgb,var(--ob-green) 18%,var(--ob-panel))!important;color:var(--ob-text)!important}
html[data-tema="obzor"] :is(table,thead,tbody,tr,td,th){border-color:var(--ob-line)!important;color:var(--ob-text)}
html[data-tema="obzor"] th{background:var(--ob-soft)!important;color:var(--ob-muted)!important}
html[data-tema="obzor"] .project-card{padding:20px!important;transition:transform .22s,box-shadow .22s;border-left-width:3px!important}
html[data-tema="obzor"] .project-card .project-card-icon{width:48px;height:48px;border-radius:12px}
html[data-tema="obzor"] .project-progress{display:block!important;margin-top:16px}
html[data-tema="obzor"] .project-progress-track{background:var(--ob-line)!important;height:5px;border-radius:5px}
html[data-tema="obzor"] .project-progress-label{color:var(--ob-muted)!important;font-size:11px}
html[data-tema="obzor"] .gr-theme-choice-obzor .gr-theme-swatch span:nth-child(1){background:#101a20}
html[data-tema="obzor"] .gr-theme-choice-obzor .gr-theme-swatch span:nth-child(2){background:#84c9b0}
html[data-tema="obzor"] .gr-theme-choice-obzor .gr-theme-swatch span:nth-child(3){background:#e6bd74}
/* Legacy modules use inline palette values. Map only neutral surfaces/text; preserve
   project colors, alerts, file previews, status badges and generated documents. */
html[data-tema="obzor"] :is(.app-shell,.gr-mobile-left,.gr-mobile-right,.gr-projekt-brzo) :is(div,section,article,header,footer,button,span,p,label,a)[style*="background: rgb(255, 255, 255)"],
html[data-tema="obzor"] :is(.app-shell,.gr-mobile-left,.gr-mobile-right) [style*="background: white"],
html[data-tema="obzor"] :is(.app-shell,.gr-mobile-left,.gr-mobile-right) [style*="background: rgb(244, 244, 242)"],
html[data-tema="obzor"] :is(.app-shell,.gr-mobile-left,.gr-mobile-right) [style*="background: rgb(245, 247, 249)"],
html[data-tema="obzor"] :is(.app-shell,.gr-mobile-left,.gr-mobile-right) [style*="background: rgb(248, 250, 252)"]{background:var(--ob-panel)!important;color:var(--ob-text)!important;border-color:var(--ob-line)!important}
html[data-tema="obzor"] :is(.app-shell,.gr-mobile-left,.gr-mobile-right) :is(div,span,p,label,b,strong,small,a,button)[style*="color: rgb(26, 26, 26)"],
html[data-tema="obzor"] :is(.app-shell,.gr-mobile-left,.gr-mobile-right) [style*="color: rgb(32, 48, 71)"],
html[data-tema="obzor"] :is(.app-shell,.gr-mobile-left,.gr-mobile-right) [style*="color: rgb(38, 51, 45)"]{color:var(--ob-text)!important}
html[data-tema="obzor"] :is(.app-shell,.gr-mobile-left,.gr-mobile-right) [style*="color: rgb(136, 136, 136)"],
html[data-tema="obzor"] :is(.app-shell,.gr-mobile-left,.gr-mobile-right) [style*="color: rgb(102, 123, 137)"]{color:var(--ob-muted)!important}
html[data-tema="obzor"] .gr-rail{background:transparent!important}
html[data-tema="obzor"] :is(.gp-widget,.gp-comic,.gp-speech,.gp-chat-title,.gp-chat,.gp-compose,.gp-disclosure,.gp-social,.gp-message){background:var(--ob-panel)!important;color:var(--ob-text)!important;border-color:var(--ob-line)!important}
html[data-tema="obzor"] .gp-message.user{background:var(--ob-soft)!important;color:var(--ob-text)!important}
html[data-tema="obzor"] :is(.gp-widget p,.gp-widget strong,.gp-widget small,.gp-widget time){color:inherit!important}
html[data-tema="obzor"] .gp-comic{background:linear-gradient(135deg,var(--ob-soft),var(--ob-panel))!important}
html[data-tema="obzor"] .gp-social a{background:var(--ob-soft)!important;color:var(--ob-gold)!important;border-color:var(--ob-line)!important}
html[data-tema="obzor"] body .app-content .gr-layout .project-card.gr-card.gr-card-hl.gr-proj,
html[data-tema="obzor"] body .app-content .gr-layout .gr-card.gr-task-card,
html[data-tema="obzor"] body .app-content .gr-layout .gr-card.gr-my-task-card{background:linear-gradient(115deg,var(--ob-panel),color-mix(in srgb,var(--project-accent,var(--ob-green)) 7%,var(--ob-panel)))!important;color:var(--ob-text)!important;border-color:var(--ob-line)!important;border-left-color:var(--project-accent,var(--ob-green))!important}
html[data-tema="obzor"] :is(.gr-search,.gr-racuni-actions,.gr-racuni-expense-filter,.gr-rail>section,.gr-rail>div,.ai-dashboard-card [class*="message"],.ai-dashboard-card [class*="bubble"]){background:var(--ob-panel)!important;color:var(--ob-text)!important;border-color:var(--ob-line)!important}
html[data-tema="obzor"] :is(.app-shell,.gr-mobile-left,.gr-mobile-right) :is(div,section,article,button)[style*="background: rgb(247, 245, 240)"],
html[data-tema="obzor"] :is(.app-shell,.gr-mobile-left,.gr-mobile-right) :is(div,section,article,button)[style*="background: rgb(255, 247, 230)"],
html[data-tema="obzor"] :is(.app-shell,.gr-mobile-left,.gr-mobile-right) :is(div,section,article,button)[style*="background: rgb(255, 250, 240)"],
html[data-tema="obzor"] :is(.app-shell,.gr-mobile-left,.gr-mobile-right) :is(div,section,article,button)[style*="background: rgb(245, 230, 204)"],
html[data-tema="obzor"] :is(.app-shell,.gr-mobile-left,.gr-mobile-right) :is(div,section,article,button)[style*="background: rgb(240, 244, 248)"],
html[data-tema="obzor"] :is(.app-shell,.gr-mobile-left,.gr-mobile-right) :is(div,section,article,button)[style*="background: rgb(243, 246, 248)"]{background:var(--ob-soft)!important;color:var(--ob-text)!important;border-color:var(--ob-line)!important}
html[data-tema="obzor"] :is(.gr-rail,.ai-dashboard-card) :is(button,div)[style*="color: rgb(255, 255, 255)"]{color:var(--ob-text)!important}
.obzor-app-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 32px;border-bottom:1px solid var(--ob-line);color:var(--ob-muted);font-size:12px;flex-shrink:0}
.obzor-app-header b{font-weight:500;color:var(--ob-text)}
.obzor-theme-toggle,.obzor-section-head button,.obzor-empty button{border:1px solid var(--ob-line);background:var(--ob-soft);color:var(--ob-text);border-radius:10px;padding:9px 12px;font:inherit;font-size:12px;cursor:pointer}
.obzor-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}
.obzor-eyebrow{font-size:10px;letter-spacing:2px;color:var(--ob-gold);font-weight:800}
.obzor-heading h1{font-size:30px;letter-spacing:-1px;margin:9px 0 7px;font-weight:800}
.obzor-heading p,.obzor-section-head p{color:var(--ob-muted);font-size:12px;line-height:1.6;margin:0}
.obzor-primary{border:0;border-radius:10px;background:var(--ob-gold);color:var(--ob-bg);font:inherit;font-weight:800;padding:12px 16px;cursor:pointer}
.obzor-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}
.obzor-stat{background:var(--ob-panel);border:1px solid var(--ob-line);border-radius:16px;padding:20px;text-align:left;color:var(--ob-text);min-width:0;font:inherit;cursor:pointer;animation:obzor-enter .45s both}
.obzor-stat>span{display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:11px;color:var(--ob-muted);min-height:30px}
.obzor-stat i{font-size:19px}.obzor-stat strong{display:block;font-size:clamp(19px,1.8vw,30px);letter-spacing:-.8px;margin:15px 0 10px;overflow-wrap:anywhere}.obzor-stat em{font-size:11px;font-style:normal;color:var(--ob-muted);font-weight:500;letter-spacing:0}.obzor-stat small{font-size:10px;color:var(--ob-muted);line-height:1.6}.obzor-stat:nth-child(3) strong{color:var(--ob-green)}.obzor-stat:nth-child(2){animation-delay:.05s}.obzor-stat:nth-child(3){animation-delay:.1s}.obzor-stat:nth-child(4){animation-delay:.15s}
.obzor-chart-card,.obzor-projects-section{background:var(--ob-panel);color:var(--ob-text);border:1px solid var(--ob-line);border-radius:16px;padding:22px;margin-bottom:22px;box-shadow:0 10px 26px #0000000c}
.obzor-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:20px}.obzor-section-head h2{font-size:16px;margin:0 0 6px;letter-spacing:-.4px}.obzor-segment{display:flex;background:var(--ob-bg);border-radius:9px;padding:3px;gap:3px}.obzor-segment button{border:0;background:transparent;color:var(--ob-muted);border-radius:7px;font:inherit;font-size:11px;padding:8px 12px;cursor:pointer}.obzor-segment button[aria-pressed="true"]{background:var(--ob-soft);color:var(--ob-text)}
.obzor-chart-legend{display:flex;align-items:center;gap:20px;font-size:11px;color:var(--ob-muted);margin-bottom:8px}.obzor-chart-legend>span:last-child{margin-left:auto}.obzor-dot{display:inline-block;width:7px;height:7px;background:var(--ob-green);border-radius:50%;margin-right:6px}.obzor-dot.cost{background:var(--ob-gold)}.obzor-chart{width:100%;height:260px;overflow:visible;display:block}.obzor-chart text{fill:var(--ob-muted);font:10px Manrope,system-ui,sans-serif}.obzor-gridline{stroke:var(--ob-line);stroke-dasharray:3 5}.obzor-line{fill:none;stroke-width:2.5;stroke-linejoin:round;stroke-linecap:round;animation:obzor-draw .75s ease-out}.obzor-line.income{stroke:var(--ob-green)}.obzor-line.cost{stroke:var(--ob-gold);stroke-dasharray:5 5}.obzor-chart circle{fill:var(--ob-green);stroke:var(--ob-panel);stroke-width:3;cursor:pointer}.obzor-chart circle:focus{outline:none;stroke:var(--ob-gold);stroke-width:4}.obzor-chart-detail{padding:10px;background:var(--ob-soft);border-radius:9px;font-size:12px;margin:8px 0}.obzor-explain{font-size:11px;color:var(--ob-muted);line-height:1.8;margin-top:10px}.obzor-explain summary{cursor:pointer}.obzor-explain table{width:100%;border-collapse:collapse;margin-top:14px}.obzor-explain td,.obzor-explain th{padding:7px;text-align:right;border-bottom:1px solid var(--ob-line)}.obzor-explain th:first-child,.obzor-explain td:first-child{text-align:left}.obzor-empty{padding:35px 10px;text-align:center;color:var(--ob-muted);font-size:13px}.obzor-warning{font-size:12px;color:var(--ob-gold);line-height:1.6;margin-top:12px}
.obzor-overview-strip{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:22px}.obzor-overview-strip button{display:flex;flex-direction:column;gap:8px;align-items:flex-start;text-align:left;padding:20px;border:1px solid var(--ob-line);background:var(--ob-panel);color:var(--ob-text);border-radius:16px;cursor:pointer;font:inherit;min-width:0}.obzor-overview-strip span{font-size:11px;color:var(--ob-muted)}.obzor-overview-strip strong{font-size:19px;overflow-wrap:anywhere}.obzor-overview-strip small{font-size:11px;color:var(--ob-muted);line-height:1.7}.obzor-projects-section>.gr-grid-2{gap:14px}.obzor-notice{background:var(--ob-soft);color:var(--ob-gold);border:1px solid var(--ob-line);border-radius:12px;padding:15px;width:100%;margin-bottom:16px;text-align:left;cursor:pointer}
@media(hover:hover){html[data-tema="obzor"] :is(.obzor-stat,.project-card,.gr-profile-menu-card):hover{transform:translateY(-3px);box-shadow:0 14px 25px #0002!important}html[data-tema="obzor"] button:hover{filter:brightness(1.06)}}
@keyframes obzor-enter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}@keyframes obzor-draw{from{stroke-dashoffset:800;opacity:.4}to{stroke-dashoffset:0;opacity:1}}
@media(max-width:1500px){.obzor-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.obzor-stat strong{font-size:26px}}
@media(max-width:767px){.obzor-app-header{padding:14px 22px;font-size:10px}.obzor-app-header b{display:none}.obzor-heading h1{font-size:25px}.obzor-heading{align-items:flex-start}.obzor-primary{font-size:11px;padding:10px}.obzor-stat{padding:15px}.obzor-stat strong{font-size:23px}.obzor-stats{gap:10px}.obzor-chart-card,.obzor-projects-section{padding:16px}.obzor-chart-scroll{overflow-x:auto}.obzor-chart{min-width:550px;height:220px}.obzor-overview-strip{grid-template-columns:1fr}.obzor-heading p{font-size:11px}.obzor-theme-toggle{font-size:11px}.obzor-section-head h2{font-size:15px}}
@media(prefers-reduced-motion:reduce){html[data-tema="obzor"] *,html[data-tema="obzor"] *:before,html[data-tema="obzor"] *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
}
.gr-theme-choice-obzor .gr-theme-swatch span:nth-child(1){background:#101a20}.gr-theme-choice-obzor .gr-theme-swatch span:nth-child(2){background:#84c9b0}.gr-theme-choice-obzor .gr-theme-swatch span:nth-child(3){background:#e6bd74}

@media screen{html[data-tema='obzor'] .project-finance-toggle{background:var(--ob-panel)!important;color:var(--ob-text)!important;border-color:var(--ob-line)!important}html[data-tema='obzor'] .project-finance-toggle :is(strong,span){color:inherit}html[data-tema='obzor'][data-obzor='svijetli'] .obzor-stat:nth-child(3) strong[style]{color:#b73e48!important}}

@media screen{html[data-tema='obzor'] :is(.gk-title,.gk-metrics b){color:var(--ob-text)!important}html[data-tema='obzor'] .gk-metrics .positive{color:var(--ob-green)!important}html[data-tema='obzor'] .gk-metrics .negative{color:#df8a7e!important}html[data-tema='obzor'] :is(.gk-photo,.gk-monogram,.gk-actions button){background:var(--ob-soft)!important;border-color:var(--ob-line)!important}html[data-tema='obzor'] .gk-metrics{border-color:var(--ob-line)!important}}

@media screen{html[data-tema='obzor'] .gr-module-heading,html[data-tema='obzor'] .gr-module-heading *{color:var(--ob-text)!important}html[data-tema='obzor'] :is(.gr-dan,.gr-kal-dan){background:var(--ob-panel)!important;border-color:var(--ob-line)!important}html[data-tema='obzor'] :is(.gr-dan.odabran,.gr-kal-dan:hover){background:var(--ob-soft)!important;border-color:var(--ob-gold)!important}html[data-tema='obzor'] .gr-dan>div:first-child{color:var(--ob-text)!important}html[data-tema='obzor'] .gr-dan[title]:not([title=''])>div:first-child{color:#df8a7e!important}}

/* Cjenik: slijedi boje Obzora u svijetlom i tamnom prikazu. */
html[data-tema="obzor"] .cj-modul{background:var(--ob-panel)!important;color:var(--ob-text)!important;border-color:var(--ob-line)!important}
html[data-tema="obzor"] .cj-modul :is(p,label,summary){color:var(--ob-text)!important}
html[data-tema="obzor"] .cj-modul :is(small){color:var(--ob-muted)!important}
html[data-tema="obzor"] .cj-modul :is(.cj-row,td,th){border-color:var(--ob-line)!important}
html[data-tema="obzor"] .cj-modul button,html[data-tema="obzor"] .cj-download a{background:var(--ob-soft)!important;color:var(--ob-gold)!important;border-color:var(--ob-line)!important}
html[data-tema="obzor"] .cj-modul a{color:var(--ob-green)!important}
html[data-tema="obzor"] .cj-modul .cj-error{background:color-mix(in srgb,#db5555 16%,var(--ob-panel))!important;color:#ffb6b6!important}
