@font-face {
  font-family: "Inter";
  src: url("./fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root { font-family: "Inter", "Segoe UI", sans-serif; font-synthesis: none; font-optical-sizing: auto; color: #172840; background: #f7f9fc; --blue: #2457d6; --blue-dark: #1749c1; --navy: #0d203d; --line: #e2e8f1; --muted: #71819a; }
body { background: #f7f9fc; }
button,input,select,textarea { font-family: inherit; }
.ui-icon { display: block; width: 1em; height: 1em; flex: none; }
.shell { grid-template-columns: 236px minmax(0,1fr); }
.sidebar { background: #0d203d; padding: 17px 12px 15px; }
.sidebar .brand { padding: 4px 10px 12px; }
.brand-symbol, .brand-symbol svg { width: 37px; height: 37px; }
.brand-copy strong { font-size: 1.35rem; letter-spacing: -.065em; font-weight: 750; }
.brand-copy small { font-size: .53rem; letter-spacing: .27em; margin-top: .26rem; }
.sidebar-rule { margin: 0 8px 12px; border-color: #263c5e; }
.sidebar-caption { padding: 0 13px; font-size: .57rem; color: #849bbd; }
.building-mini { margin: 3px 1px 22px; padding: 10px 11px; min-height: 73px; border-color: #2b456b; border-radius: 9px; background: #152c50; align-items: center; }
.building-dot { width: 33px; height: 33px; background: #214ba7; font-size: 1.12rem; }
.building-mini .label { font-size: .53rem; letter-spacing: .11em; }
.building-mini strong { font-size: .7rem; font-weight: 720; margin: 3px 0 2px; }
.building-mini small { font-size: .58rem; }
.nav-caption { margin-bottom: 6px; }
.nav { gap: 2px; }
.nav button { min-height: 39px; padding: 8px 11px; border-radius: 7px; gap: 10px; font-size: .72rem; font-weight: 610; color: #c6d2e5; }
.nav button.active { background: #1f54cf; box-shadow: none; }
.nav button:hover:not(.active) { background: #193658; }
.nav-icon { width: 18px; font-size: 18px; }
.nav-count { background: #4a78ed; }
.sidebar-help { margin: auto 3px 12px; background: #142c50; border-color: #335074; padding: 10px; }
.sidebar-help .help-icon { width: 28px; height: 28px; font-size: 17px; }
.sidebar-help strong { font-size: .68rem; }
.sidebar-help small { font-size: .59rem; }
.sidebar-foot { border-color: #2a4265; padding-top: 11px; }
.sidebar-foot strong { font-size: .69rem; font-weight: 680; }
.sidebar-foot small { font-size: .59rem; }
.logout { display: grid; place-items: center; width: 29px; height: 29px; font-size: 18px; }
.main { padding: 0 clamp(17px,2.1vw,32px) 34px; }
.topbar { height: 60px; margin: 0 calc(-1 * clamp(17px,2.1vw,32px)); padding: 0 clamp(17px,2.1vw,32px); }
.breadcrumbs { font-size: .73rem; }
.breadcrumbs strong { font-weight: 680; }
.topbar-date { font-size: .69rem; }
.content { max-width: 1600px; }
.page-head h1 { font-weight: 730; }
.btn { background: #2457d6; border-radius: 7px; box-shadow: 0 2px 6px #2457d61a; font-weight: 650; }
.btn .ui-icon { font-size: 16px; }
.card, .stat, .poll-item, .composer, .inline-form { border-color: #e0e7f0; border-radius: 10px; box-shadow: 0 2px 10px #1c355308; }
.card-head h3, .card h3 { font-weight: 700; }
.field { font-weight: 590; }
.overview-page { padding-top: 22px; }
.overview-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.overview-eyebrow { display: block; color: #4371c5; font-size: .56rem; font-weight: 760; letter-spacing: .14em; margin-bottom: 5px; }
.overview-title h1 { margin: 0; color: #142844; font-size: clamp(1.5rem,2.2vw,1.95rem); letter-spacing: -.045em; font-weight: 730; line-height: 1.1; }
.overview-title p { margin: 5px 0 0; color: #7b8aa1; font-size: .73rem; }
.overview-title .btn { white-space: nowrap; }
.building-profile { display: grid; grid-template-columns: minmax(215px,.83fr) minmax(320px,1.7fr) minmax(250px,1fr); min-height: 230px; background: #fff; border: 1px solid #dfe7f0; border-radius: 11px; box-shadow: 0 4px 16px #162e5409; overflow: hidden; }
.building-photo { position: relative; overflow: hidden; min-height: 230px; background: #dbe5f0; }
.building-photo > img { width: 100%; height: 100%; display: block; object-fit: cover; position: absolute; inset: 0; }
.building-photo-illustration { position: absolute; inset: 0; background-image: linear-gradient(0deg,#0a1a30a8 0%,transparent 29%),url('/domnet/assets/img/pregled-zgrade.png'); background-repeat: no-repeat; background-size: cover, 516% auto; background-position: center, 17.2% 9.9%; }
.photo-disclaimer { position: absolute; right: 12px; bottom: 13px; color: #fff; background: #0c203ab3; border-radius: 5px; font-size: .59rem; padding: 5px 7px; }
.building-photo-form { position: absolute; bottom: 12px; left: 12px; z-index: 2; }
.photo-button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; color: #fff; background: #0a1c32cb; border: 1px solid #ffffff58; border-radius: 6px; cursor: pointer; font-size: .63rem; font-weight: 650; backdrop-filter: blur(6px); }
.photo-button .ui-icon { font-size: 14px; }
.photo-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-button:focus-within { outline: 2px solid #75a6ff; outline-offset: 3px; }
.photo-remove { position: absolute; top: 12px; right: 12px; z-index: 2; color: #fff; background: #0a1c32cb; border: 1px solid #ffffff58; border-radius: 6px; cursor: pointer; font-size: .61rem; font-weight: 650; padding: 7px 9px; backdrop-filter: blur(6px); }
.photo-remove:hover { background: #0a1c32; }
.building-profile-main { padding: 19px 24px 15px; min-width: 0; }
.building-name-row { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.building-name-row h2 { color: #1a2d47; font-size: clamp(1.15rem,1.65vw,1.55rem); font-weight: 720; line-height: 1.22; margin: 0; }
.active-badge { display: inline-flex; align-items: center; gap: 5px; color: #298655; background: #e8f7ed; border-radius: 99px; padding: 5px 8px; font-size: .59rem; font-weight: 660; white-space: nowrap; }
.active-badge span { width: 6px; height: 6px; border-radius: 50%; background: #2e9d61; }
.profile-address { display: flex; align-items: center; gap: 6px; color: #73839b; margin: 9px 0 16px; font-size: .7rem; }
.profile-address .ui-icon { color: #2e62c6; font-size: 14px; }
.profile-contact { min-height: 51px; }
.profile-contact span, .profile-contact strong { display: block; }
.profile-contact span { color: #8b99ac; font-size: .62rem; margin-bottom: 5px; }
.profile-contact strong { color: #233a58; font-size: .76rem; font-weight: 670; }
.profile-facts { border-top: 1px solid #e9edf4; padding-top: 13px; display: flex; align-items: center; gap: 0; margin-top: 9px; }
.profile-facts > div { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 0 12px; border-right: 1px solid #e8edf4; }
.profile-facts > div:first-child { padding-left: 0; }
.profile-facts > div:last-child { border: 0; }
.profile-facts .ui-icon { font-size: 17px; color: #5272a9; }
.profile-facts span { display: block; color: #8998aa; font-size: .58rem; white-space: nowrap; }
.profile-facts strong { display: block; color: #253952; font-size: .76rem; font-weight: 680; margin-top: 2px; }
.building-profile-summary { border-left: 1px solid #e9edf4; padding: 10px 17px; display: flex; flex-direction: column; justify-content: center; }
.building-profile-summary > div { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 49px; }
.building-profile-summary .summary-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 16px; }
.summary-icon.green { color: #25945b; background: #e8f7ee; }
.summary-icon.orange { color: #d77d31; background: #fff0e2; }
.summary-icon.blue { color: #2f69d6; background: #eaf1ff; }
.summary-icon.slate { color: #637996; background: #edf1f7; }
.building-profile-summary span:not(.summary-icon) { color: #334761; font-size: .67rem; font-weight: 590; }
.building-profile-summary small { color: #97a3b3; font-size: .55rem; display: block; margin-top: 2px; font-weight: 450; }
.building-profile-summary strong { color: #142b4c; font-size: .73rem; white-space: nowrap; font-weight: 730; }
.overview-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid #dfe7f1; margin: 11px 0 16px; scrollbar-width: thin; }
.overview-tabs button { border: 0; background: transparent; color: #71839b; padding: 10px 17px 11px; white-space: nowrap; font-size: .68rem; font-weight: 620; border-bottom: 2px solid transparent; }
.overview-tabs button:hover { color: #2856b7; }
.overview-tabs button.active { color: #2355cc; border-color: #2457d6; }
.overview-stats { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.overview-stats .stat { position: relative; min-height: 94px; padding: 13px 13px 11px; }
.overview-stats .stat-icon { float: none; position: absolute; left: 12px; top: 16px; width: 30px; height: 30px; border-radius: 50%; font-size: 17px; }
.overview-stats .stat-label { margin-left: 39px; min-height: 28px; color: #65768f; font-size: .59rem; font-weight: 590; display: flex; align-items: center; }
.overview-stats .stat-value { margin: 7px 0 1px; color: #1b2d48; font-size: clamp(1rem,1.35vw,1.36rem); font-weight: 720; }
.overview-stats .stat-foot { color: #92a0af; font-size: .57rem; }
.overview-grid { display: grid; grid-template-columns: minmax(0,1.25fr) repeat(2,minmax(0,1fr)); gap: 12px; align-items: stretch; }
.overview-panel { min-width: 0; min-height: 226px; padding: 15px 16px; }
.overview-panel .card-head { margin: 0 0 13px; }
.overview-panel .card-head h3 { font-size: .76rem; font-weight: 700; }
.overview-panel .card-head a { display: inline-flex; align-items: center; gap: 3px; font-size: .6rem; font-weight: 650; white-space: nowrap; }
.overview-panel .card-head a .ui-icon { font-size: 13px; }
.overview-rows { display: flex; flex-direction: column; }
.overview-row { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 43px; padding: 6px 0; border-top: 1px solid #edf1f6; }
.overview-row:first-child { border-top: 0; padding-top: 0; }
.overview-row-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 14px; }
.overview-row-icon.green { color: #258b59; background: #e8f6ed; }
.overview-row-icon.orange { color: #d68132; background: #fff1e4; }
.overview-row-icon.blue { color: #3169d7; background: #eaf1ff; }
.overview-row-icon.violet { color: #805acb; background: #f1edff; }
.overview-row-icon.red { color: #cc5c52; background: #fff0ee; }
.overview-row strong { display: block; color: #273b59; font-size: .63rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-row small { display: block; color: #9ba7b7; font-size: .55rem; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-row time, .overview-row .row-size { color: #93a1b1; font-size: .54rem; white-space: nowrap; }
.overview-row .pill { font-size: .53rem; padding: 4px 6px; }
.overview-panel .empty { border: 0; background: #f8fafc; padding: 20px 12px; font-size: .66rem; }
.overview-chart-head { display: flex; align-items: center; gap: 15px; color: #8b9aaf; font-size: .59rem; }
.overview-chart-head span { display: inline-flex; align-items: center; gap: 5px; }
.chart-key { display: inline-block; width: 14px; border-top: 2px solid; }
.chart-key.plan { border-color: #9ab5f7; border-top-style: dashed; }
.chart-key.real { border-color: #245de0; }
.reserve-chart { height: 146px; margin-top: 6px; }
.reserve-chart svg { width: 100%; height: 100%; overflow: visible; }
.reserve-chart-grid { stroke: #e8edf4; stroke-width: 1; stroke-dasharray: 3 4; }
.reserve-chart-plan { stroke: #9db8f2; stroke-width: 2; stroke-dasharray: 5 5; fill: none; vector-effect: non-scaling-stroke; }
.reserve-chart-real { stroke: #245de0; stroke-width: 2.5; fill: none; vector-effect: non-scaling-stroke; }
.reserve-chart-point { fill: #245de0; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.reserve-chart text { fill: #9ca8b8; font-size: 11px; font-family: Inter, sans-serif; }
.reserve-chart-foot { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid #edf1f5; padding-top: 8px; color: #73839a; font-size: .58rem; }
.reserve-chart-foot strong { color: #244a91; font-weight: 700; }
.overview-chart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 170px; color: #8e9db2; text-align: center; }
.overview-chart-empty .ui-icon { font-size: 26px; color: #a7bbdf; }
.overview-chart-empty strong { color: #5f7594; font-size: .68rem; }
.overview-chart-empty span { font-size: .59rem; }
@media (max-width: 1180px) {
  .building-profile { grid-template-columns: 230px minmax(0,1fr); }
  .building-profile-summary { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #e9edf4; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .building-profile-summary > div { grid-template-columns: 27px minmax(0,1fr); }
  .building-profile-summary strong { grid-column: 2; margin-top: -7px; }
  .overview-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { width: 260px; }
  .main { padding: 0 15px 26px; }
  .topbar { margin: 0 -15px; padding: 0 15px; }
  .overview-page { padding-top: 18px; }
  .overview-title { align-items: flex-start; }
  .overview-title h1 { font-size: 1.55rem; }
  .overview-title .btn { padding: 9px; font-size: .64rem; }
  .building-profile { grid-template-columns: 1fr; }
  .building-photo { min-height: 205px; }
  .building-profile-main { padding: 18px; }
  .profile-facts { justify-content: space-between; }
  .building-profile-summary { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 8px 13px; }
  .overview-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-panel { min-height: 200px; }
}
@media (max-width: 420px) {
  .overview-title { flex-direction: column; }
  .overview-stats { gap: 7px; }
  .overview-stats .stat { padding: 11px; }
  .overview-stats .stat-value { font-size: .97rem; }
  .building-profile-summary { grid-template-columns: 1fr; }
  .building-profile-summary > div { grid-template-columns: 29px minmax(0,1fr) auto; }
  .building-profile-summary strong { grid-column: 3; margin: 0; }
}
