/* Klima Teknik Servis V39.8 - unified site palette, clear engineering depth.
   White/navy/blue site brand remains the only UI palette. No diagrams
   or engineering calculation logic is changed by this stylesheet. */
:root {
  --uk-ink:#092f59;
  --uk-navy:#07366f;
  --uk-blue:#007dd0;
  --uk-sky:#00a5ef;
  --uk-back:#e8f1fa;
  --uk-panel:#f7fbff;
  --uk-stroke:#9ebfdd;
  --uk-shadow:0 10px 23px rgba(9,48,96,.13);
}
html,body {background:#e8f1fa!important;color:var(--uk-ink)!important}
.app-shell {background:#dceaf6!important;gap:0}
.topbar {background:linear-gradient(105deg,#071522 0%,#07366f 64%,#005eaa 100%)!important;border-bottom:3px solid #0d97da!important;box-shadow:0 5px 18px #0a2b4a30!important}
.topbar .brand,.top-actions {position:relative;z-index:3}
.topbar .brand strong,.topbar .brand strong#siteCompanyName {color:#fff!important}
.sidebar {background:linear-gradient(175deg,#eef6fd 0%,#daeafa 55%,#e7f3ff 100%)!important;border-right:2px solid #88b4d6!important;box-shadow:5px 0 17px #124b7940!important;padding:22px 18px 30px!important}
.sidebar-head {background:linear-gradient(135deg,#ffffff,#e6f2fc)!important;border:1.5px solid #a2c3df!important;border-left:5px solid #007dd0!important;border-radius:15px;padding:18px 15px 16px!important;box-shadow:0 7px 19px #07366f14!important;margin-bottom:18px}
.sidebar-head h1 {color:#07366f!important;font-size:25px!important;line-height:1.2!important}
.sidebar-head p {color:#315a7d!important}
.sidebar .group-title {background:linear-gradient(100deg,#d1e6f9,#eff8ff 80%)!important;color:#07366f!important;border:1.5px solid #94bde0!important;border-left:5px solid #007dd0!important;border-radius:11px!important;padding:11px 9px!important;min-height:49px;box-shadow:0 3px 10px #07366f14!important;margin-top:18px!important;letter-spacing:.1px!important}
.sidebar .group-title>span {background:#07366f!important;border:1px solid #007dd0!important;color:white!important;min-width:30px!important;text-align:center!important;padding:5px 6px!important}
.sidebar .group-title button {box-shadow:0 2px 8px #09396721!important}
.sidebar .field {color:#1d4c7c!important;line-height:1.5!important}
.sidebar .small-muted,.sidebar .capacity-note,.sidebar p {color:#345b80!important}
.sidebar input:not([type=range]):not([type=checkbox]):not([type=file]),.sidebar select,.sidebar textarea {background:#fff!important;border:1.5px solid #8fb5d8!important;box-shadow:inset 0 1px 3px #06336113!important;color:#07366f!important}
.sidebar input:focus,.sidebar select:focus,.sidebar textarea:focus {border-color:#007dd0!important;box-shadow:0 0 0 3px #007dd023!important;outline:0!important}
.brand-selector-box,.owner-sidebar-card,.watermark-controls,.tree-group-box,.tree-advice,.capacity-control,.capacity-ribbon,.meter-instruction,.meter-quickbar {background:linear-gradient(135deg,#fff 0%,#eef7ff 100%)!important;border:1.5px solid #94bbdb!important;box-shadow:0 6px 17px #07366f16!important;border-radius:13px!important;color:#103f6b!important}
.brand-selector-box {border-left:4px solid #007dd0!important;padding:15px!important}
.brand-selector-top,.brand-main-field,.watermark-controls-head {color:#075993!important}
.owner-sidebar-card {border-left:4px solid #0089d3!important}
.owner-sidebar-card small,.owner-sidebar-card span,.owner-sidebar-card p,.owner-sidebar-card strong {color:#18486e!important}
.owner-sidebar-row strong,.watermark-controls-head strong {font-size:14px!important;color:#07366f!important}
.wm-toggle,.wm-control-row label,.watermark-controls p,.watermark-controls output {color:#1b537c!important}
.device-gallery-details {background:#ecf6ff!important;border:1.5px solid #9ebfe0!important;box-shadow:0 5px 13px #07366f13!important}
.device-gallery-details>summary {background:linear-gradient(100deg,#0a4579,#007dd0)!important;color:#fff!important}
.device-gallery-details>summary small {color:#c5e9ff!important}
.edit-card,.tree-line,.outdoor-kit-edit {background:linear-gradient(150deg,#fff,#eef7ff)!important;border:1.5px solid #a1c4e1!important;border-left:4px solid #0b82c6!important;border-radius:12px!important;box-shadow:0 4px 10px #104d7e17!important;color:#07366f!important}
.edit-card:hover,.tree-line:hover,.outdoor-kit-edit:hover {border-color:#007dd0!important;box-shadow:0 6px 16px #007dd02b!important}
.edit-card:focus-within,.tree-line:focus-within,.outdoor-kit-edit:focus-within,.tree-group-box:focus-within,.brand-selector-box:focus-within {outline:2px solid #007dd0!important;outline-offset:1px!important;background:#e6f3ff!important;box-shadow:0 0 0 4px #007dd02a!important}
.tree-editors {background:#d7eafb!important;border:1.5px solid #7ca9d1!important;padding:11px!important;box-shadow:inset 0 2px 9px #0a49791b!important}
.tree-main strong,.edit-head,.outdoor-kit-edit strong {color:#07366f!important}
.tree-main small,.tree-row-actions label,.outdoor-kit-edit label,.outdoor-kit-edit small {color:#386589!important}
.tree-line:has(.is-joint) {border-left:4px solid #006bad!important;background:#e8f5ff!important}
.tree-icon.is-joint {background:#b9e1f9!important;color:#074778!important;border:1px solid #72b7dc!important}
.capacity-control {border-left:4px solid #007dd0!important}
.capacity-numbers strong,.capacity-top,.capacity-control small,.capacity-note {color:#0b4778!important}
.capacity-track {background:#bed9f1!important;border:1px solid #93b4d3!important}
.capacity-ribbon {background:linear-gradient(100deg,#d9ebfb,#f5faff)!important;border-left:5px solid #007dd0!important}
.capacity-ribbon strong {color:#07366f!important}
.capacity-ribbon .capacity-ratio {color:#0069b6!important}
.length-editors {background:#edf6ff!important;border:1px solid #bad3e9!important;padding:8px 11px;border-radius:10px}
.length-editors h4,.length-line span,.length-line small {color:#174976!important}
.length-line {border-bottom-color:#bfd5e6!important}
.length-line:focus-within {background:#deefff!important;border-radius:5px}
.aside-warning {background:#f1f8ff!important;color:#174976!important;border:1px solid #a4c8e5!important;border-left:4px solid #3285bd!important}
.aside-warning strong {color:#07366f!important}
.workspace {background:radial-gradient(140% 80% at 100% 0%,#eaf5ff,#d7e9f9 75%,#cfe2f4)!important;padding:23px!important;min-width:0!important}
.workspace-title {background:linear-gradient(120deg,#ffffff,#eaf5ff)!important;border:1.5px solid #98bddc!important;border-left:5px solid #007dd0!important;border-radius:16px!important;padding:17px 19px!important;box-shadow:var(--uk-shadow)!important;margin-bottom:17px!important}
.workspace-title h2 {color:#07366f!important}
.workspace-title .eyebrow,.workspace-title p {color:#285d82!important;line-height:1.55!important}
.workspace-actions .tool-set {background:#fff!important;border:1px solid #a4c9e6!important;box-shadow:0 4px 10px #003f6e16!important}
.workspace-actions button.tool-btn {background:#eff8ff!important;border:1px solid #8fb9d9!important;color:#07366f!important;font-weight:800!important}
.workspace-actions button.tool-btn-accent,.workspace-actions button.tool-btn-pdf {color:#fff!important;background:linear-gradient(120deg,#07366f,#007dd0)!important}
.metrics {gap:12px!important;margin-bottom:16px!important}
.metrics .metric,.workspace .metric {position:relative!important;overflow:hidden!important;background:linear-gradient(135deg,#fff,#e9f4ff)!important;border:1.5px solid #8fb9d9!important;border-top:4px solid #007dd0!important;border-radius:14px!important;box-shadow:0 6px 17px #07366f19!important;padding:13px 16px!important;min-height:96px}
.metrics .metric small,.workspace .metric small {color:#3b6689!important;font-size:11px!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.4px!important}
.metrics .metric strong,.workspace .metric strong {color:#07366f!important;font-size:26px!important;font-weight:900!important}
.metrics .metric:nth-child(even),.workspace .metric:nth-child(even) {background:linear-gradient(135deg,#f5faff,#e1f0fc)!important}
.warn-panel p,.workspace .warn-panel p {color:#174a75!important;background:#f2f8ff!important;border:1px solid #a9c8e0!important;border-left:4px solid #398cc4!important;padding:11px 13px!important;line-height:1.55!important}
.paper {--paperBand:#07366f!important;--paperBg:#eef6fc!important;background:#eef6fc!important;border:2px solid #7faed1!important;border-radius:16px!important;box-shadow:0 18px 34px #0a407c2e,0 4px 12px #114c762a!important}
.paper-head,.paper[data-theme] .paper-head {background:linear-gradient(110deg,#071522,#07366f 58%,#067bcb)!important;border-bottom:5px solid #00a5ef!important;color:#fff!important}
.paper-head .paper-head-mid h2,.paper-head .paper-head-mid p,.paper-head .paper-meta,.paper-head .paper-owner-info {color:#f2f9ff!important}
.paper-head .project-kicker,.paper-head .paper-meta span {color:#abdfff!important}
.paper-body {background:linear-gradient(180deg,#dceefa 0%,#eff7ff 15%,#e3f1fc 100%)!important;padding:16px!important}
.section-band {background:linear-gradient(95deg,#07366f,#0062a6)!important;border:1px solid #0b85ca!important;border-left:5px solid #31b5ed!important;box-shadow:0 4px 10px #07366f2a!important;padding:12px 16px!important;color:#fff!important}
.diagram-hint,.diagram-control-hint {background:linear-gradient(90deg,#eef8ff,#dcefff)!important;border:1.5px solid #9fc9e7!important;color:#194970!important;box-shadow:0 2px 8px #0d497615!important;font-size:12px!important;line-height:1.7!important}
.diagram-hint {border-left:4px solid #007dd0!important}
.diagram-control-hint {border-left:4px solid #449bcc!important}
.meter-quickbar {border-left:4px solid #007dd0!important}
.meter-quickbar button {white-space:nowrap}
.diagram-area {background:#e2f0fb!important;border:2px solid #79a9cf!important;border-radius:13px!important;box-shadow:0 4px 14px #134d7a24,inset 0 0 0 3px #fff!important;margin:12px 0 18px!important;overflow:auto!important;scrollbar-color:#91bbdd #e7f2fb}
.diagram-area svg {display:block;max-width:100%;height:auto}
.diagram-area .gas-pipe {stroke:#e13d4f!important;stroke-width:6!important;filter:drop-shadow(0 1px 1px #752a3855)}
.diagram-area .liquid-pipe {stroke:#027cb9!important;stroke-width:6!important;filter:drop-shadow(0 1px 1px #063e6655)}
.diagram-area .annotation-leader {stroke:#528cb3!important;stroke-width:1.8!important;stroke-dasharray:5 4!important}
.diagram-area .joint-svg-hit>rect {stroke:#267eb9!important;stroke-width:1.9!important;filter:drop-shadow(0 2px 3px #0d426133)!important}
.diagram-area .meter-svg-hit>rect:first-of-type {stroke:#79abd1!important;stroke-width:1.5!important;filter:drop-shadow(0 2px 3px #0d426125)!important}
.diagram-area .joint-svg-hit:hover>rect,.diagram-area .joint-svg-hit.annotation-active>rect,.diagram-area .joint-svg-hit:focus-visible>rect {stroke:#005aaf!important;stroke-width:3.3!important;filter:drop-shadow(0 3px 6px #007dd075)!important}
.diagram-area .meter-svg-hit:hover>rect:first-of-type,.diagram-area .meter-svg-hit.annotation-active>rect:first-of-type,.diagram-area .meter-svg-hit:focus-visible>rect:first-of-type {stroke:#007dd0!important;stroke-width:3!important;filter:drop-shadow(0 3px 6px #007dd063)!important}
.diagram-area .drag-device {cursor:grab}
.diagram-area .drag-device.is-selected>rect:first-of-type {stroke:#007dd0!important;stroke-width:5!important;filter:drop-shadow(0 4px 8px #0064b77e)!important}
.diagram-area .drag-device.is-selected>rect:nth-of-type(2) {stroke:#005fa3!important;stroke-width:2!important}
.diagram-area .drag-device:focus-visible>rect:first-of-type {stroke:#007dd0!important;stroke-width:4!important}
.diagram-area .drag-device.group-target>rect:first-child {stroke:#058ad3!important;stroke-width:5!important}
.diagram-area svg.dragging .drop-target.nearest {stroke:#006abb!important;fill:#d6ebff!important}
.diagram-area svg .vrf-zone-guide {pointer-events:none}
.report-panel {background:linear-gradient(180deg,#fff,#f1f8ff)!important;border:1.6px solid #8eb8d8!important;border-radius:13px!important;box-shadow:0 7px 16px #0b4f7922!important;overflow:hidden!important}
.report-panel h3 {background:linear-gradient(100deg,#07366f,#0065af)!important;color:white!important;padding:13px 15px!important;font-size:13px!important;letter-spacing:.2px!important}
.report-panel th {background:#d8eaf9!important;color:#154773!important;border-bottom:1px solid #a2c6e1!important}
.report-panel td {color:#1b496e!important;border-bottom:1px solid #d3e3f1!important}
.report-panel tbody tr:nth-child(even) {background:#eff7ff!important}
.report-panel tbody tr:hover td {background:#dbedfb!important}
.paper-footer,.sources-foot {background:#dbeaf6!important;border-color:#9ebfda!important;color:#285879!important}
/* On screen: highlight the currently chosen unit without affecting exported SVG. */
.vrf-selection-status {display:flex;align-items:center;gap:9px;padding:9px 12px;margin:6px 0 10px;background:linear-gradient(90deg,#e1f1ff,#f9fcff);color:#0d4777;border:1px solid #96c2e2;border-left:4px solid #007dd0;border-radius:9px;font-size:12px;font-weight:700}
.vrf-selection-dot {width:10px;height:10px;border-radius:50%;background:#007dd0;box-shadow:0 0 0 4px #007dd01f}
@media(max-width:1120px) {.app-shell {grid-template-columns:1fr!important}.sidebar {border-right:0!important;border-bottom:2px solid #98bfdb!important}.workspace {padding:17px!important}}
@media(max-width:700px) {.sidebar{padding:13px!important}.workspace{padding:11px!important}.workspace-title{padding:13px!important}.metrics .metric,.workspace .metric{padding:10px!important;min-height:74px}.metrics .metric strong,.workspace .metric strong{font-size:19px!important}.paper-body{padding:9px!important}.diagram-area{margin:10px 0!important}.vrf-selection-status{font-size:11px}}
@media print {
  html,body,.workspace,.paper-body{background:#fff!important}
  .paper,.report-panel,.diagram-area{box-shadow:none!important}
  .paper{border:1px solid #8eb5d4!important}
  .vrf-selection-status{display:none!important}
  .diagram-area .gas-pipe,.diagram-area .liquid-pipe{filter:none!important}
}
/* Readable labels at normal laptop width, without moving fittings. */
.diagram-area .meter-svg-hit text:first-of-type {font-size:13px!important;font-weight:850!important}
.diagram-area .meter-svg-hit text:nth-of-type(2) {font-size:11px!important}
.diagram-area .joint-svg-hit text:first-of-type {font-size:12px!important;font-weight:900!important}
.diagram-area .joint-svg-hit text:nth-of-type(2) {font-size:11px!important}
.diagram-area .drag-device text:first-of-type {font-size:17px!important;font-weight:850!important}
