/* Inter (SIL OFL 1.1, core/static/enpro/fonts/LICENSE_INTER_OFL), varijabilna težina 100–900 */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
:root {
  --bg: #0d1117;
  --panel: #151b23;
  --panel-2: #1d2630;
  --line: #2d3a47;
  --text: #f4f7fb;
  --muted: #a8b3bf;
  --accent: #00a6c8;
  --accent-2: #25c7e8;
  --button-bg: #007c9b;
  --button-hover: #006c87;
  --danger: #ff6b6b;
}
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
.shell { display: flex; min-height: 100vh; }
.content { flex: 1; min-width: 0; padding: 28px; max-width: 1400px; margin: 0 auto; }
.content svg { max-width: 100%; }
.muted, .hint { color: var(--muted); }
.page-head { margin-bottom: 22px; }
.panel, .auth-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: 0 16px 50px rgba(0,0,0,.18); }
.auth-card { max-width: 520px; margin: 10vh auto; }
.auth-card.wide { max-width: 860px; }
.narrow { max-width: 620px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 14px; }
.grid-form .span { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 14px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #0f151c; color: var(--text); padding: 12px 13px; font-size: 15px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,166,200,.12); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,166,200,.4); }
.errorlist { color: var(--danger); margin: 4px 0 0; padding-left: 18px; }
/* Button fill is darker than --accent so white text meets WCAG AA (about 4.7:1). */
.primary, .small-button, .btn { display: inline-flex; justify-content: center; align-items: center; border: none; border-radius: 10px; padding: 12px 16px; background: var(--button-bg); color: white; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.primary:hover, .small-button:hover, .btn:hover { background: var(--button-hover); }
.primary:focus-visible, .small-button:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.btn.secondary { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.secondary:hover { border-color: var(--accent); color: var(--accent-2); background: rgba(0,166,200,.08); }
.auth-link a { color: var(--accent-2); }
.messages { margin-bottom: 16px; }
.message { padding: 12px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); white-space: pre-line; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.service-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; }
.dashboard-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.dashboard-card strong { font-size: 36px; }
.dashboard-card.accent { background: linear-gradient(135deg, #027893, #00a6c8); border: none; }
.activity-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.activity-list li { border-bottom: 1px solid var(--line); padding: 10px 0; color: var(--text); }
.activity-list span { color: var(--muted); display: inline-block; min-width: 140px; }
.table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.module-card { min-height: 150px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.module-card:hover { border-color: var(--accent); }
.module-card.active-module { background: linear-gradient(135deg, rgba(0,166,200,.22), rgba(29,38,48,1)); }
.module-no { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.module-card em { margin-top: auto; color: var(--muted); font-style: normal; }
@media (max-width: 1000px) {
  .shell { flex-direction: column; }
  /* Auto margins stop column-flex stretching, so pin the width or wide tables widen the page. */
  .content { width: 100%; }
  .dashboard-grid, .module-grid, .grid-form, .service-home-grid { grid-template-columns: 1fr; }
}

/* Modul 1 - Količine svežeg vazduha */
.module-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.summary-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.summary-card small { color: var(--muted); display: block; margin-bottom: 8px; }
.summary-card strong { font-size: 26px; }
.module-panel { margin-bottom: 22px; }
.section-title-row { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 14px; }
.button-row, .form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.small-button.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.small-button.ghost:hover { border-color: var(--accent); color: var(--accent-2); background: rgba(0,166,200,.08); }
.module-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.module-form .wide-select select { min-width: 100%; }
select { min-height: 46px; }
.wide-select select, #id_category, #id_room_type_id { font-size: 14px; white-space: normal; }
.checkbox-line { flex-direction: row; align-items: center; gap: 10px; padding-top: 28px; }
.checkbox-line input { width: auto; transform: scale(1.25); }
.table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table-scroll.thin { max-height: 420px; overflow: auto; }
.calc-table { min-width: 2300px; }
.calc-table th { white-space: nowrap; position: sticky; top: 0; background: var(--panel-2); z-index: 1; }
.calc-table td { min-width: 110px; }
.calc-table .long-cell { min-width: 260px; }
.verified-row { background: rgba(0, 166, 200, .06); }
.badge { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; color: var(--muted); white-space: nowrap; }
.badge.ok { border-color: rgba(37,199,232,.8); color: var(--accent-2); }
.action-cell { min-width: 150px; }
.table-link { color: var(--accent-2); display: inline-block; margin: 2px 8px 2px 0; font-size: 13px; }
.danger-link { color: #ff8787; }
.inline-form { display: inline; }
.button-as-link { background: none; border: none; padding: 0; cursor: pointer; font: inherit; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(380px, .85fr); gap: 22px; align-items: start; }
.mini-report { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--panel-2); margin-bottom: 14px; }
.room-svg { width: 100%; min-height: 320px; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(circle at 60% 30%, rgba(0,166,200,.12), rgba(7,10,13,.3) 62%); }
.svg-floor { fill: rgba(37,199,232,.06); stroke: rgba(37,199,232,.32); stroke-width: 1.5; }
.svg-front { fill: rgba(244,247,251,.08); stroke: rgba(244,247,251,.72); stroke-width: 2; }
.svg-side { fill: rgba(0,166,200,.16); stroke: rgba(244,247,251,.62); stroke-width: 2; }
.svg-top { fill: rgba(37,199,232,.22); stroke: rgba(244,247,251,.62); stroke-width: 2; }
.svg-edge { stroke: rgba(244,247,251,.36); stroke-width: 1.2; stroke-dasharray: 4 4; }
.svg-title { fill: var(--text); font-size: 18px; font-weight: 700; }
.svg-subtitle { fill: var(--muted); font-size: 13px; }
@media (max-width: 1200px) {
  .summary-grid, .two-col, .module-form { grid-template-columns: 1fr; }
  .module-head, .section-title-row { flex-direction: column; }
}

/* ENPRO V0.3 - tlocrt, izvještaji i zbirni 3D */
.placement-status { border: 1px dashed var(--accent); border-radius: 10px; padding: 11px 13px; color: var(--accent-2); background: rgba(0,166,200,.08); }
.vertical-buttons { align-self: center; }
.system-report-block { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 16px 0; background: var(--panel-2); }
.system-report-block h3 { margin: 0 0 12px; color: var(--accent-2); font-size: 18px; }
.plan-svg, .building-svg { width: 100%; min-height: 420px; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(circle at 60% 30%, rgba(0,166,200,.13), rgba(7,10,13,.42) 62%); }
.plan-room { fill: rgba(0,166,200,.16); stroke: rgba(244,247,251,.78); stroke-width: 2; }
.plan-center { fill: rgba(244,247,251,.05); stroke: rgba(255,255,255,.1); stroke-width: 1; cursor: pointer; }
.plan-edge { fill: rgba(37,199,232,.02); stroke: rgba(37,199,232,.35); stroke-width: 1; cursor: crosshair; }
.plan-edge:hover, .plan-center:hover { fill: rgba(37,199,232,.28); }
.plan-label { fill: var(--text); font-size: 13px; font-weight: 700; pointer-events: none; }
.plan-subtitle { fill: var(--muted); font-size: 11px; pointer-events: none; }
.building-floor { fill: rgba(37,199,232,.04); stroke: rgba(37,199,232,.28); stroke-width: 1.2; }
.building-front { fill: rgba(244,247,251,.08); stroke: rgba(244,247,251,.70); stroke-width: 1.4; }
.building-side { fill: rgba(0,166,200,.18); stroke: rgba(244,247,251,.58); stroke-width: 1.4; }
.building-top { fill: rgba(37,199,232,.25); stroke: rgba(244,247,251,.66); stroke-width: 1.4; }
.building-label { fill: var(--text); font-size: 12px; font-weight: 700; paint-order: stroke; stroke: rgba(7,10,13,.85); stroke-width: 3px; }
select option { color: #0d1117; background: #ffffff; }
@media (max-width: 1200px) { .plan-svg, .building-svg { min-height: 300px; } }

/* ENPRO V0.4 - 3D koordinatna mreža i pomjeranje prostorija */
.building-3d-wrap { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #091017; }
.building-svg { width: 100%; min-height: 560px; border: 0; border-radius: 0; touch-action: none; }
.grid-line { stroke: rgba(168,179,191,.18); stroke-width: .85; vector-effect: non-scaling-stroke; }
.grid-axis, .grid-axis-x, .grid-axis-y { stroke: rgba(37,199,232,.58); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.grid-axis-x { stroke: rgba(37,199,232,.82); }
.grid-axis-y { stroke: rgba(244,247,251,.52); }
.grid-label { fill: rgba(244,247,251,.52); font-size: 10px; pointer-events: none; paint-order: stroke; stroke: rgba(7,10,13,.9); stroke-width: 3px; }
.building-room { cursor: grab; }
.building-room:active { cursor: grabbing; }
.building-room.selected .building-front,
.building-room.selected .building-side,
.building-room.selected .building-top { stroke: #25c7e8; stroke-width: 2.6; }
.building-coord-label { fill: var(--accent-2); font-size: 10px; font-weight: 600; paint-order: stroke; stroke: rgba(7,10,13,.88); stroke-width: 3px; pointer-events: none; }
.position-form { margin-top: 16px; }
.position-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; border: 1px dashed var(--accent); border-radius: 12px; padding: 12px 14px; background: rgba(0,166,200,.08); }
.position-table { min-width: 920px; }
.position-table input { max-width: 110px; padding: 8px 10px; }
.position-row.selected { background: rgba(37,199,232,.12); }
.move-cell { min-width: 260px; }
.grid-step { border: 1px solid var(--line); background: #0f151c; color: var(--text); border-radius: 8px; padding: 7px 9px; margin: 2px; cursor: pointer; font-weight: 700; }
.grid-step:hover { border-color: var(--accent); color: var(--accent-2); background: rgba(0,166,200,.08); }
@media (max-width: 1200px) { .building-svg { min-height: 360px; } }

/* ENPRO V0.5 - neposredni proračun u unosu prostorije */
.live-calc-panel { border: 1px solid rgba(37,199,232,.48); border-radius: 16px; background: linear-gradient(135deg, rgba(0,166,200,.13), rgba(29,38,48,.84)); padding: 16px; }
.live-calc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.live-calc-head h3 { margin: 0 0 6px; font-size: 18px; }
.live-calc-head .hint { margin: 0; max-width: 980px; }
.live-calc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.live-calc-card { border: 1px solid var(--line); border-radius: 13px; background: rgba(7,10,13,.42); padding: 13px; min-height: 95px; }
.live-calc-card small { color: var(--muted); display: block; line-height: 1.28; min-height: 34px; }
.live-calc-card strong { display: block; margin-top: 9px; font-size: 21px; color: var(--text); }
.live-calc-card.accent-card { border-color: rgba(37,199,232,.85); background: rgba(0,166,200,.18); }
.live-calc-card.accent-card strong { color: var(--accent-2); font-size: 24px; }
.formula-strip { margin-top: 12px; border: 1px dashed rgba(168,179,191,.42); border-radius: 11px; padding: 10px 12px; color: var(--muted); background: rgba(7,10,13,.24); }
.field-help { color: var(--muted); font-size: 12px; line-height: 1.3; margin-top: 2px; }
.adopted-field input { border-color: rgba(37,199,232,.45); }
.verify-field { border: 1px dashed rgba(37,199,232,.42); border-radius: 12px; padding: 14px; background: rgba(0,166,200,.08); }
@media (max-width: 1300px) { .live-calc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .live-calc-grid { grid-template-columns: 1fr; } .live-calc-head { flex-direction: column; } }

/* Modul 12 - h-x dijagram */
.hx-settings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.hx-table-wrap { margin-bottom: 15px; }
.hx-table { min-width: 1390px; }
.hx-table th { white-space: nowrap; }
.hx-table td { min-width: 100px; padding: 7px; }
.hx-table td:first-child { min-width: 35px; font-weight: 700; color: var(--accent-2); }
.hx-table td:nth-child(2) { min-width: 140px; }
.hx-table td:nth-child(3) { min-width: 185px; }
.hx-table td:nth-child(4) { min-width: 230px; }
.hx-table input, .hx-table select { min-height: 40px; padding: 8px; font-size: 13px; }
.hx-invalid { background: rgba(255, 107, 107, .1); }
.hx-error-row td, .hx-error { color: #ff9999; border-color: #ff6b6b; }
.hx-error { padding: 12px; border: 1px solid; border-radius: 8px; }
.hx-chart { max-width: 850px; margin: 0 auto; background: #fff; border-radius: 12px; overflow: hidden; }
.hx-chart svg { display: block; width: 100%; height: auto; }
.hx-results { min-width: 1450px; }
.hx-results th { white-space: nowrap; }
.hx-results td { font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .hx-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .hx-settings { grid-template-columns: 1fr; } }

/* Servisni katalog i izbor distributivnih elemenata */
.service-grid { grid-template-columns: repeat(3, minmax(0,1fr)); margin-bottom: 20px; }
.service-checks { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px 18px; margin-bottom: 22px; }
.service-checks .checkbox-line { padding-top: 2px; }
.service-data-table { min-width: 1150px; }
.service-data-table input, .service-data-table select { min-width: 105px; padding: 8px; font-size: 13px; }
.service-data-table input[type=checkbox] { min-width: auto; width: auto; }
.service-data-table input[type=file] { min-width: 175px; max-width: 240px; }
.size-table { width: max-content; min-width: 100%; }
.catalog-thumb { max-width: 180px; max-height: 115px; object-fit: contain; border-radius: 10px; }
.catalog-hero { max-width: 210px; max-height: 145px; object-fit: contain; border-radius: 10px; }
.catalog-card { min-height: 255px; text-align: center; }
.catalog-card:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.catalog-card-image { width: 100%; height: 175px; display: flex; align-items: center; justify-content: center; background: rgba(7,10,13,.35); border-radius: 10px; overflow: hidden; }
.catalog-card-image img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.catalog-card strong { display: block; margin-top: auto; font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.catalog-card em { margin-top: 0; text-align: center; }
.catalog-image-placeholder { color: var(--muted); font-size: 14px; }
.fan-chart { display: block; width: 100%; max-width: 940px; height: auto; margin: 14px auto 20px; }
.fan-data-value { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 760px; }
.catalog-back { margin-bottom: 14px; }
.catalog-selection-detail { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 18px; }
.catalog-selection-detail p { margin-top: 0; }
.result-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.result-cards > div { border: 1px solid var(--line); border-radius: 12px; padding: 13px; background: var(--panel-2); }
.result-cards strong { display: block; font-size: 20px; margin-top: 7px; color: var(--accent-2); }
.selector-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.selector-fields .checkbox-line { padding: 7px 0 0; }
.selection-alert { padding: 13px; border: 1px solid var(--danger); border-radius: 10px; margin: 12px 0; color: #ff9999; }
.candidate-comparison { margin-top: 12px; }
.candidate-comparison > .primary { margin-top: 15px; }
.candidate-comparison .table-scroll { max-height: 560px; overflow: auto; }
.comparison-table { min-width: 1090px; }
.comparison-table th { position: sticky; top: 0; background: var(--panel-2); z-index: 1; white-space: nowrap; }
.comparison-table input[type=radio] { width: auto; min-width: 18px; height: 18px; accent-color: var(--accent); }
.comparison-table .selected-candidate { background: rgba(0,166,200,.13); }
@media (max-width: 850px) { .service-grid,.service-checks,.result-cards,.selector-fields { grid-template-columns: 1fr; } }


/* Modul 5 - ENPRO rekuperatori */
.ehr-cards { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:12px 0 24px; }
.ehr-card { display:flex; flex-direction:column; gap:6px; color:var(--text); background:var(--panel-2); border:1px solid var(--line); border-radius:14px; padding:12px; text-decoration:none; }
.ehr-card:hover,.ehr-card.ehr-active { border-color:var(--accent); background:rgba(0,166,200,.1); }
.ehr-card strong { font-size:18px; color:var(--accent-2); }
.ehr-card .muted { font-size:12px; }
.ehr-image { display:flex; height:150px; align-items:center; justify-content:center; background:#fff; border-radius:8px; overflow:hidden; }
.ehr-image img { max-width:100%; max-height:100%; object-fit:contain; }
.ehr-form { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; align-items:end; }
.ehr-form label { display:flex; flex-direction:column; gap:6px; }
.ehr-form input { width:100%; min-width:0; }
.ehr-error { color:#ff8787; font-size:13px; }
.ehr-status { padding:13px 15px; margin:14px 0; border:1px solid; border-radius:10px; font-weight:700; }
.ehr-good { color:#a8efc9; background:rgba(60,170,110,.1); border-color:#3caa6e; }
.ehr-bad { color:#ffc0c0; background:rgba(225,55,55,.15); border-color:#ee5555; }
.ehr-chart-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.ehr-chart { display:block; width:100%; min-height:250px; border:1px solid var(--line); border-radius:10px; background:#121b25; }
.ehr-grid { stroke:#445465; stroke-width:1; opacity:.75; }
.ehr-axis { fill:#d9e3ea; font-size:12px; }
.ehr-target { stroke:#ff6666; stroke-width:2; stroke-dasharray:6 4; }
.ehr-dot { fill:#ff6666; stroke:#fff; stroke-width:2; }
.ehr-table { min-width:1420px; }
@media (max-width:1100px) { .ehr-cards,.ehr-chart-grid,.ehr-form { grid-template-columns:1fr; } }


/* Evenly spaced catalogue cards: two-card middle row remains centred. */
.ehr-cards { display:flex; flex-wrap:wrap; justify-content:center; gap:18px; }
.ehr-card { box-sizing:border-box; flex:0 0 calc((100% - 36px)/3); min-width:0; align-self:stretch; }
.ehr-card span:last-child { margin-top:auto; }
@media (max-width:1100px) {
  .ehr-card { flex-basis:calc((100% - 18px)/2); }
}
@media (max-width:650px) {
  .ehr-card { flex-basis:100%; }
}
/* Module 6: kitchen sizing and catalogue. */
.kitchen-input-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;}
.kitchen-input-grid label {display:block;margin-bottom:5px;font-weight:600;}
.kitchen-input-grid input:not([type=checkbox]),.kitchen-input-grid select,.kitchen-input-grid textarea {width:100%;box-sizing:border-box;}
.kitchen-product-image {width:128px;height:90px;object-fit:contain;display:block;background:white;margin:4px 0 8px;}
.kitchen-device-table {min-width:1050px;}
.kitchen-device-table select {min-width:280px;width:100%;}
.kitchen-device-table input[type=number] {width:110px;}
.kitchen-metrics {display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;}
.kitchen-metrics div {padding:16px;background:#edf6fa;border-radius:9px;}
.kitchen-metrics small,.kitchen-metrics strong {display:block;}
.kitchen-metrics strong {font-size:20px;margin-top:7px;color:#003c67;}
.kitchen-suitable {background:#f0faf3;}
.table-wrap {overflow-x:auto;}

/* Module 6 room workflow */
.kitchen-categories {grid-template-columns:repeat(2,minmax(0,1fr));}
.kitchen-category-card {gap:14px;padding:24px;}
.kitchen-category-card img {width:100%;height:220px;object-fit:contain;background:white;border-radius:10px;}
.kitchen-category-card strong {font-size:22px;line-height:1.3;}
.kitchen-input-grid output {display:block;padding:12px;font-size:20px;font-weight:700;color:#003c67;background:#edf6fa;border-radius:8px;}
.kitchen-input-grid [hidden] {display:none;}
@media(max-width:720px){.kitchen-categories{grid-template-columns:1fr;}.kitchen-category-card img{height:180px;}}

/* Report downloads: PDF is the main action throughout the project modules. */
.download-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.download-primary { display:inline-flex; align-items:center; justify-content:center; padding:13px 19px; min-height:44px; border:1px solid var(--button-bg); border-radius:10px; background:var(--button-bg); color:#fff; font-size:14px; font-weight:700; text-decoration:none; line-height:1.3; }
.download-primary:hover { background:var(--button-hover); border-color:var(--button-hover); color:#fff; }
.download-secondary { display:inline-flex; align-items:center; padding:6px 2px; background:transparent; border:0; color:var(--muted); font-size:12px; font-weight:400; text-decoration:underline; text-underline-offset:3px; line-height:1.3; }
.download-secondary:hover { color:var(--accent-2); }
.download-primary:focus-visible,.download-secondary:focus-visible { outline:2px solid var(--accent-2); outline-offset:3px; }

/* Putanja iznad naslova i modul u pripremi */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -8px 0 14px; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-2); text-decoration: underline; }
.breadcrumb a[aria-current] { color: var(--text); font-weight: 600; }
.module-card.module-disabled { opacity: .55; border-style: dashed; cursor: default; }
.module-card.module-disabled:hover { border-color: var(--line); }

/* ── Tipografija ─────────────────────────────────────────────── */
:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 12px; --fs-sm: 13px; --fs-base: 15px; --fs-md: 17px; --fs-lg: 20px; --fs-xl: 26px;
  --sidebar-w: 248px; --sidebar-w-collapsed: 68px;
}
body { margin: 0; min-height: 100vh; font-family: var(--font-sans); font-size: var(--fs-base); line-height: 1.5; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-xl); font-weight: 700; margin: 0 0 6px; }
h2 { font-size: var(--fs-lg); font-weight: 650; margin-top: 0; }
h3 { font-size: var(--fs-md); font-weight: 650; }
label { font-size: var(--fs-sm); font-weight: 500; }
table, .summary-card strong, .result-cards strong, .point strong { font-variant-numeric: tabular-nums; }

/* ── Padajuće liste: sopstvena strelica, poravnata desno i vertikalno ── */
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a99a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; }
select[multiple], select[size]:not([size="1"]) { background-image: none; padding-right: 13px; }

/* ── Bočni meni ──────────────────────────────────────────────── */
.sidebar { position: sticky; top: 0; height: 100vh; flex: 0 0 var(--sidebar-w); width: var(--sidebar-w); background: #070a0d; border-right: 1px solid var(--line); padding: 14px 12px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; transition: width .18s ease, flex-basis .18s ease; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; }
.brand { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.brand-logo { display: block; height: 34px; background: #fff; border-radius: 7px; padding: 5px 8px; }
.brand-logo img { display: block; height: 24px; width: auto; max-width: none; }
.brand-logo .logo-mark { display: none; }
.brand-sub { color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: 10px; }
.icon-btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { border-color: var(--line); color: var(--text); }
.icon-btn:focus-visible, .nav a:focus-visible, .nav-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.sidebar-toggle .ico { transition: transform .18s ease; }
.mobile-menu { display: none; }
.sidebar-body { display: flex; flex-direction: column; gap: 14px; flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; margin: 0 -4px; padding: 0 4px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a, .nav-btn, .nav .nav-disabled { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 14px; line-height: 1.25; text-align: left; white-space: nowrap; cursor: pointer; width: 100%; }
.nav a:hover, .nav-btn:hover { background: var(--panel-2); color: var(--text); }
.nav a.active { background: rgba(0,166,200,.14); color: var(--text); }
.nav .ico, .nav-btn .ico { flex: 0 0 20px; }
.label { overflow: hidden; text-overflow: ellipsis; }
.nav .new { background: var(--button-bg); color: #fff; font-weight: 600; margin-bottom: 6px; }
.nav .new:hover { background: var(--button-hover); color: #fff; }
.project-nav { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.project-nav .project-nav-home { min-height: 46px; margin-bottom: 4px; color: var(--text); font-weight: 600; }
.project-nav .project-nav-home small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }
.nav-no { flex: 0 0 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; border: 1px solid var(--line); color: var(--muted); }
.nav-no .ico { width: 14px; height: 14px; }
.nav a.active .nav-no { background: var(--button-bg); border-color: var(--button-bg); color: #fff; }
.nav .nav-disabled { opacity: .45; cursor: default; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line); }
.logout { margin: 0; }
.user-chip .avatar { flex: 0 0 26px; height: 26px; margin: -3px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--panel-2); color: var(--text); font-weight: 700; font-size: 12px; border: 1px solid var(--line); }
.user-chip strong { display: block; color: var(--text); font-weight: 600; font-size: 13px; }
.user-chip small { display: block; font-size: 11px; }
.user-chip .label { line-height: 1.2; }
.theme-ico-light, .theme-label-light { display: none; }
html[data-theme="light"] .theme-ico-dark, html[data-theme="light"] .theme-label-dark { display: none; }
html[data-theme="light"] .theme-ico-light { display: inline-flex; }
html[data-theme="light"] .theme-label-light { display: inline; }
.theme-ico-dark, .theme-ico-light { flex: 0 0 20px; }

/* Skupljen meni: samo ikone, logo postaje „E“ */
@media (min-width: 1001px) {
  html[data-sidebar="collapsed"] .sidebar { flex-basis: var(--sidebar-w-collapsed); width: var(--sidebar-w-collapsed); padding-left: 10px; padding-right: 10px; }
  html[data-sidebar="collapsed"] .sidebar .label, html[data-sidebar="collapsed"] .brand-sub { display: none; }
  html[data-sidebar="collapsed"] .sidebar-top { flex-direction: column; }
  html[data-sidebar="collapsed"] .brand-logo { padding: 5px 7px; }
  html[data-sidebar="collapsed"] .brand-logo .logo-full { display: none; }
  html[data-sidebar="collapsed"] .brand-logo .logo-mark { display: block; }
  html[data-sidebar="collapsed"] .sidebar-toggle .ico { transform: rotate(180deg); }
  html[data-sidebar="collapsed"] .nav a, html[data-sidebar="collapsed"] .nav-btn, html[data-sidebar="collapsed"] .nav .nav-disabled { justify-content: center; padding: 7px 0; gap: 0; }
  html[data-sidebar="collapsed"] .project-nav .project-nav-home { min-height: 38px; }
}

/* Telefon i tablet: gornja traka sa dugmetom „Meni“ */
@media (max-width: 1000px) {
  .sidebar { position: sticky; top: 0; z-index: 20; height: auto; width: 100%; flex: none; padding: 10px 14px; gap: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-top { flex-direction: row; }
  .brand { flex-direction: row; align-items: center; gap: 10px; }
  .sidebar-toggle { display: none; }
  .mobile-menu { display: inline-flex; }
  .sidebar-body { display: none; max-height: calc(100vh - 64px); padding-top: 12px; }
  html.menu-open .sidebar-body { display: flex; }
}

/* Specifikacija */
.spec-table th.num, .spec-table td.num { text-align: right; white-space: nowrap; }
.spec-table input.num { width: 11ch; text-align: right; font-variant-numeric: tabular-nums; }
.spec-table input[name$="-article"] { width: 12ch; font-variant-numeric: tabular-nums; }
.spec-table input[name$="-unit"] { width: 7ch; }
.spec-table input[type=checkbox] { width: 18px; height: 18px; }
.spec-table .spec-desc { min-width: 220px; }
.content .spec-table thead th { white-space: normal; }
.spec-table input.num { width: 9ch; }
.spec-table textarea { min-height: 0; resize: vertical; }
.download-actions.is-stale { opacity: .45; }

/* ── Dizajn sistem: razmaci, paneli, kartice, tabele, forme ───────────── */
:root { --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --radius: 10px; --radius-lg: 12px; }
.content { padding: var(--space-5) var(--space-6); }
.page-head { margin-bottom: var(--space-5); }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.page-head p { margin: 0; }
.panel, .auth-card { border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: none; }
.panel + .panel, .panel + section, section + .panel { margin-top: var(--space-4); }
.panel h2 { margin-bottom: var(--space-4); }
.section-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.section-title-row h2 { margin-bottom: var(--space-3); }
.section-label { margin: 0 0 var(--space-3); color: var(--muted); font-size: var(--fs-sm); font-weight: 600; letter-spacing: .02em; }
.summary-card, .dashboard-card, .module-card { border-radius: var(--radius-lg); }
.summary-card { padding: var(--space-4); }
.summary-card strong { font-size: 22px; }

/* Kartice modula na pregledu projekta */
.module-grid { gap: var(--space-3); }
.module-card, .module-card.active-module { min-height: 0; padding: var(--space-4); gap: var(--space-3); background: var(--panel); transition: border-color .15s, background .15s; }
.module-card:hover { border-color: var(--accent); background: var(--panel-2); }
.module-card-head { display: flex; align-items: flex-start; gap: var(--space-3); }
.module-card-head strong { font-weight: 600; line-height: 1.3; padding-top: 3px; }
.module-card .module-no { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; }
.module-card.is-started .module-no { background: var(--button-bg); border-color: var(--button-bg); color: #fff; }
.module-status { margin-left: 40px; color: var(--muted); font-size: var(--fs-sm); }
.module-card.is-started .module-status { color: var(--text); }
html[data-theme="light"] .module-card.active-module { background: var(--panel); }

/* Lista projekata i prazno stanje */
.project-list { list-style: none; margin: 0; padding: 0; }
.project-list li + li { border-top: 1px solid var(--line); }
.project-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: var(--space-4); padding: var(--space-3) var(--space-2); margin: 0 calc(-1 * var(--space-2)); border-radius: var(--radius); }
.project-list a:hover { background: var(--panel-2); }
.project-list-main strong { display: block; font-weight: 600; }
.project-list-main small, .project-list-date { color: var(--muted); font-size: var(--fs-sm); }
.project-list-open { color: var(--accent-2); font-size: var(--fs-sm); font-weight: 600; }
.empty-state { padding: var(--space-5) 0; text-align: center; }
.empty-state p { margin: 0 0 var(--space-2); }
.empty-state .primary { margin-top: var(--space-3); }

/* Tabele: isti izgled za sve, i one bez klase */
.content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.content th, .content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.content thead th { position: sticky; top: 0; background: var(--panel); color: var(--muted); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; z-index: 1; }
.content tbody tr:hover td { background: rgba(0,166,200,.05); }
.content tbody tr:last-child td { border-bottom: 0; }
.table-scroll, .table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table-scroll table, .table-wrap table { margin: 0; }

/* Forme: jedinica u polju, greška odmah ispod */
input, select, textarea { border-radius: var(--radius); padding: 10px 12px; min-height: 42px; background-color: var(--input-bg); }
select { min-height: 42px; }
.input-unit { position: relative; display: block; }
.input-unit input { padding-right: calc(var(--unit-w, 4ch) + 22px); }
.input-unit::after { content: attr(data-unit); position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: var(--fs-sm); pointer-events: none; }
.errorlist { list-style: none; margin: 4px 0 0; padding: 0; color: var(--danger); font-size: var(--fs-sm); font-weight: 500; }
label:has(.errorlist) input, label:has(.errorlist) select, label:has(.errorlist) textarea { border-color: var(--danger); }
.message { border-left: 3px solid var(--accent); }
.message.success { border-left-color: var(--success); }
.message.error { border-left-color: var(--danger); }
.message.warning { border-left-color: var(--warning); }
@media (max-width: 1000px) { .content { padding: var(--space-4); } .project-list a { grid-template-columns: minmax(0, 1fr) auto; } .project-list-open { display: none; } }

/* Prijava: podijeljen ekran, bez bočnog menija */
.auth-page .sidebar { display: none; }
.auth-page .content { max-width: none; padding: 0; display: flex; }
.auth-split { flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); min-height: 100vh; }
.auth-brand { display: flex; flex-direction: column; justify-content: center; gap: var(--space-4); padding: 64px clamp(32px, 6vw, 96px); background: radial-gradient(1200px 600px at -10% 110%, rgba(0,166,200,.35), transparent 60%), linear-gradient(160deg, #0a1520, #06090d); color: #f4f7fb; border-right: 1px solid var(--line); }
.auth-logo { width: 190px; background: #fff; padding: 10px 14px; border-radius: 10px; }
.auth-brand h1 { font-size: 40px; margin: var(--space-3) 0 0; letter-spacing: -0.02em; }
.auth-brand > p { max-width: 520px; color: #b8c4cf; font-size: var(--fs-md); margin: 0; }
.auth-points { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: var(--space-3); color: #d7e0e8; }
.auth-points li { padding-left: 26px; position: relative; }
.auth-points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 2px; background: var(--accent-2); }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(28px, 5vw, 80px); max-width: 520px; width: 100%; margin: 0 auto; }
.auth-form h2 { font-size: var(--fs-xl); margin-bottom: var(--space-2); }
.auth-form .form { margin-top: var(--space-5); }
.auth-form .primary { margin-top: var(--space-2); }
.auth-form .auth-link { margin-top: var(--space-5); font-size: var(--fs-sm); color: var(--muted); }
.auth-form .auth-link a { color: var(--accent-2); }
@media (max-width: 900px) { .auth-split { grid-template-columns: 1fr; } .auth-brand { padding: 40px 24px; border-right: 0; } .auth-brand h1 { font-size: 30px; } .auth-points { display: none; } .auth-form { padding: 32px 24px; } }

/* Dashboard: pokazatelji, trake i oznake */
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-4); }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi small { color: var(--muted); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi strong { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.kpi strong span { font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
.kpi em { font-style: normal; color: var(--muted); font-size: var(--fs-sm); }
.kpi-warn { border-color: var(--warning); }
.kpi-warn em { color: var(--warning); }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-5); }
.dash-grid .panel { margin: 0; }
.dash-card h2 { font-size: var(--fs-md); }
.dash-card table { font-size: var(--fs-sm); }
.content td.num, .content th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.bars li { display: grid; grid-template-columns: minmax(70px, 140px) 1fr auto; align-items: center; gap: var(--space-3); font-size: var(--fs-sm); }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.bar { display: block; height: 100%; background: var(--accent); border-radius: 99px; min-width: 2px; }
.bar-value { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: var(--fs-xs); font-weight: 600; border: 1px solid currentColor; }
.pill-ok { color: var(--success); }
.pill-warn { color: var(--warning); }
@media (max-width: 1200px) { .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dash-wide { grid-column: 1 / -1; }
.dash-sub { margin: var(--space-3) 0 var(--space-2); font-size: var(--fs-sm); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: flex; justify-content: space-between; gap: var(--space-3); padding: 6px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.rank li:last-child { border-bottom: 0; }
.kpi-text { font-size: var(--fs-md) !important; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-warn { background: var(--warning); }
.dash-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.bars li { grid-template-columns: minmax(70px, 190px) 1fr auto; }
.page-actions { display: flex; align-items: center; gap: var(--space-2); }
.button-row { display: flex; gap: var(--space-2); align-items: center; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 230px; display: flex; flex-direction: column; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.menu-list a, .menu-list button { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--panel-2); }
.menu-list form { margin: 0; }
.menu-list .danger { color: var(--danger); }
.spec-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); margin: var(--space-4) 0; padding: var(--space-3) var(--space-4); border: 1px dashed var(--accent); border-radius: var(--radius); background: rgba(0,166,200,.06); }
.spec-add label { width: 110px; }
.spec-add .hint { margin: 0 0 10px; }
.content tr.group-row td { background: var(--panel-2); font-weight: 600; font-size: var(--fs-sm); color: var(--text); padding-top: 8px; padding-bottom: 8px; }
.error-page { max-width: 560px; margin: 12vh auto; text-align: center; }
.error-page .error-code { font-size: 56px; font-weight: 700; color: var(--accent-2); margin: 0; }
.error-page h1 { margin: 6px 0 10px; }

/* Početna */
.kpi-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: var(--space-3); align-items: start; }
.home-grid .panel { margin: 0; }
.resume-card { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-lg); border: 1px solid var(--accent); background: linear-gradient(90deg, rgba(0,166,200,.14), transparent 70%); }
.resume-card:hover { background: linear-gradient(90deg, rgba(0,166,200,.22), transparent 80%); }
.resume-card small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.resume-card strong { display: block; font-weight: 600; }
.resume-icon { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--button-bg); color: #fff; font-weight: 700; }
.resume-go { margin-left: auto; color: var(--accent-2); font-weight: 600; font-size: var(--fs-sm); }
.project-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-3); }
.project-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel-2); transition: border-color .15s, transform .15s; }
.project-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.project-card-head strong { display: block; font-weight: 600; line-height: 1.3; }
.project-card-head small { color: var(--muted); font-size: var(--fs-xs); }
.progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.module-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.module-dots i { font-style: normal; width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); }
.module-dots i.on { background: var(--button-bg); border-color: var(--button-bg); color: #fff; }
.project-card-figures { display: flex; gap: var(--space-3); flex-wrap: wrap; font-size: var(--fs-xs); color: var(--muted); }
.project-card-figures b { color: var(--text); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 56px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.spark span { flex: 1; min-height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); opacity: .85; }
.spark-caption { margin: 6px 0 var(--space-3); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.timeline li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: var(--space-3); align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.timeline li:last-child { border-bottom: 0; }
.timeline-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--accent); }
.timeline strong { display: block; font-weight: 500; }
.timeline small, .timeline time { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }
@media (max-width: 1100px) { .home-grid { grid-template-columns: 1fr; } .kpi-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Prijava problema */
.feedback-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; padding: 10px 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--text); font: inherit; font-size: var(--fs-sm); font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.3); cursor: pointer; }
.feedback-fab:hover { border-color: var(--accent); color: var(--accent-2); }
.feedback-dialog { width: min(520px, 92vw); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); color: var(--text); padding: var(--space-5); }
.feedback-dialog::backdrop { background: rgba(0,0,0,.55); }
.feedback-dialog h2 { margin: 0 0 var(--space-3); font-size: var(--fs-lg); }
.feedback-dialog form { display: grid; gap: var(--space-3); }
.feedback-kinds { display: flex; gap: var(--space-4); }
.feedback-kinds label { flex-direction: row; align-items: center; gap: 6px; color: var(--text); }
.feedback-kinds input { width: auto; min-height: 0; }
.feedback-status { margin: 0; min-height: 1.2em; font-size: var(--fs-sm); color: var(--accent-2); }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-tabs a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 99px; font-size: var(--fs-sm); color: var(--muted); }
.filter-tabs a.active { border-color: var(--accent); color: var(--text); background: rgba(0,166,200,.12); }
.feedback-text { max-width: 520px; }
@media (max-width: 1000px) { .feedback-fab { right: 12px; bottom: 12px; } }
.energy-inputs { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: flex-end; margin-bottom: var(--space-3); }
.energy-inputs label { width: 150px; }
.energy-inputs .input-unit + * { margin: 0; }
.energy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 900px) { .energy-grid { grid-template-columns: 1fr; } }
