:root{font:15px/1.5 Inter,"Segoe UI",system-ui,sans-serif;color:#172941;background:#f4f7fb;--nav:#102235;--blue:#185cd9;--muted:#566980;--line:#dce5ef;--card:#fff}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #3575ee;outline-offset:2px}button{color:inherit}h1,h2,h3,p{margin:0}svg{width:20px;height:20px;display:block;flex:none}button [data-icon],span[data-icon]{display:inline-flex;align-items:center;justify-content:center}
.shell{min-height:100vh;display:grid;grid-template-columns:242px minmax(0,1fr)}.sidebar{background:var(--nav);color:#eef5fd;position:sticky;top:0;height:100vh;padding:28px 19px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;background:none;border:0;text-align:left;color:white;font-weight:850;font-size:22px;letter-spacing:-.7px;padding:0 5px}.brand b{color:#7ab2ff}.brand small{display:block;font-size:8px;letter-spacing:1.55px;color:#b1c3d8}.brand-mark{background:#2368e6;width:40px;height:40px;border-radius:11px;color:white}.brand-mark svg{width:25px;height:25px}.side-rule{border-top:1px solid #2b3b4d;margin:30px 0 22px}.nav-label{font-size:10px;font-weight:750;letter-spacing:1.2px;color:#a4b7ce;margin:0 10px 10px}.nav-item{width:100%;display:flex;align-items:center;gap:10px;color:#e9f3ff;background:#223b58;border:1px solid #2a4665;border-radius:8px;padding:10px 12px;font-weight:650;font-size:13px;text-align:left}.nav-item svg{color:#8bb9fb;width:17px}.side-bottom{margin-top:auto;display:flex;gap:11px;align-items:center;border-top:1px solid #2b3b4d;padding:18px 4px 0;font-size:12px;font-weight:650}.side-bottom small{display:block;color:#a4b7ce;font-weight:400}.mini-mark{width:32px;height:32px;border-radius:8px;background:#213a54;color:#9cc5ff}.mini-mark svg{width:16px}
.topbar{height:65px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px;padding:0 34px;font-size:14px;font-weight:700}.top-icon{color:var(--blue)}.top-icon svg{width:17px}.top-context{margin-left:auto;color:var(--muted);font-size:12px;font-weight:550}main{max-width:1380px;margin:auto;padding:30px 34px 55px}.hero{background:radial-gradient(ellipse at 95% 12%,#284f85 0,transparent 62%),#132b46;border-radius:15px;padding:30px 30px 31px;color:white;display:flex;align-items:center;justify-content:space-between;gap:20px;position:relative;overflow:hidden}.hero::after{content:"";position:absolute;width:275px;height:275px;border:1px solid #709bce38;right:-60px;top:-180px;border-radius:50%;box-shadow:0 0 0 26px #709bce16,0 0 0 53px #709bce12;pointer-events:none}.hero>*{position:relative;z-index:1}.eyebrow{font-size:11px;color:#a9ceff;letter-spacing:1.75px;font-weight:750;margin-bottom:5px}h1{font-size:clamp(26px,3vw,37px);line-height:1.14;letter-spacing:-1.2px}.hero p{color:#c6d7ed;margin-top:9px;font-size:14px}.btn{border:1px solid var(--line);border-radius:8px;padding:9px 13px;background:white;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;white-space:nowrap;font-size:13px;min-height:39px}.btn svg{width:16px;height:16px}.btn:hover,.type-option:hover,.icon-btn:hover{background:#edf4ff}.primary{background:#1f64df;border-color:#1f64df;color:#fff}.primary:hover{background:#154fb8}.hero .primary{background:#fff;color:#174caa;border-color:white;box-shadow:0 3px 8px #0b1c3490}.hero .primary:hover{background:#e8f1ff}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0 23px}.stat,.panel,.form-card{background:#fff;border:1px solid var(--line);border-radius:12px}.stat{padding:14px 15px;display:flex;text-align:left;align-items:center;gap:12px}.stat:hover,.stat.active{border-color:#83a9ec}.stat strong{display:block;font-size:24px;letter-spacing:-.6px;line-height:1.15}.stat small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.tile-icon{width:39px;height:39px;border-radius:9px;flex:none}.blue{background:#e9f1ff;color:#215dd3}.amber{background:#fff1d9;color:#93600f}.violet{background:#eeeaff;color:#6645b5}.teal{background:#def4ed;color:#11715d}
.panel-head,.card-head{padding:20px 22px;display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap}h2{font-size:20px;letter-spacing:-.4px}.sub{color:var(--muted);font-size:13px;margin-top:3px}.filters{display:flex;gap:8px;flex-wrap:wrap}.search{display:flex;align-items:center;border:1px solid #ccd8e6;border-radius:8px;padding:0 10px;gap:7px;color:#61748a;background:white}.search svg{width:16px}.search input{border:0;padding:8px 0;width:178px;background:none}.search input:focus-visible{outline:none}.search:focus-within{outline:2px solid #3575ee}.filters select{width:auto}.scroll-table{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left}thead{background:#f1f5fa;color:#4e627b}th{font-weight:700;font-size:12px;padding:10px 14px;white-space:nowrap}td{border-top:1px solid #e5edf5;padding:12px 14px;font-size:13px}.overview th:first-child,.overview td:first-child{padding-left:22px}.project-link{border:0;background:none;text-align:left;padding:0;color:#154eaf;font-weight:750;overflow-wrap:anywhere}.project-link:hover{text-decoration:underline}.status{display:inline-block;padding:3px 9px;border-radius:30px;font-size:11px;font-weight:750}.actions{display:flex;gap:4px;justify-content:flex-end}.icon-btn{display:inline-flex;justify-content:center;align-items:center;border:1px solid transparent;background:none;border-radius:7px;min-width:33px;min-height:33px;color:#395571}.icon-btn svg{width:16px;height:16px}.empty{padding:42px 18px;text-align:center;border-top:1px solid var(--line)}.empty .tile-icon{margin:0 auto 12px;width:46px;height:46px}.empty .btn{margin-top:15px}.footer-count{border-top:1px solid var(--line);padding:10px 22px;color:var(--muted);font-size:12px}
.editor-top{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;flex-wrap:wrap;margin:13px 0 22px}.editor-top p{color:var(--muted);margin-top:7px}.editor-actions{display:flex;flex-wrap:wrap;gap:8px}.back{padding:0;border:0;color:#164da9;background:none;display:flex;gap:7px;align-items:center;font-weight:700;font-size:13px}.back svg{width:16px}.form-card{margin:0 0 17px;overflow:hidden}.card-head{justify-content:flex-start}.card-head .tile-icon{width:34px;height:34px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0 22px 22px;gap:14px}label{font-size:12px;font-weight:700}label input,label select,label textarea{display:block;margin-top:5px}input,select,textarea{width:100%;border:1px solid #ccd8e6;border-radius:7px;min-height:37px;padding:7px 9px;background:white;color:#16283e}textarea{resize:vertical;min-height:80px}.notes{display:block;padding:0 22px 20px}.measurement{min-width:770px}.measurement td{padding:4px 7px}.measurement th{padding:8px 7px}.measurement th:first-child,.measurement td:first-child{padding-left:19px}.measurement input{min-height:32px;padding:5px 7px;font-size:13px}.measurement td:nth-child(2){width:23%}.measurement td:nth-child(3),.measurement td:nth-child(4){width:14%}.measurement td:nth-child(6){width:13%}.measurement tfoot{background:#eaf2ff;color:#194885;font-weight:750}.measurement output{font-variant-numeric:tabular-nums}.error{background:#fff1ee;color:#883225;padding:10px 15px;border-radius:8px;margin-bottom:12px}.error button{margin:5px 7px 0 0}.save-info{color:var(--muted);margin:0 0 12px;font-size:13px}
dialog{border:1px solid var(--line);border-radius:15px;padding:22px;width:min(460px,calc(100% - 26px));color:#172941;box-shadow:0 15px 60px #10223545}dialog::backdrop{background:#1128408a}.dialog-head{display:flex;justify-content:space-between;align-items:center}dialog p{color:var(--muted);font-size:14px;margin:2px 0 16px}.type-option{width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;text-align:left;border:1px solid var(--line);border-radius:9px;background:white;padding:11px;margin-top:8px}.type-option small{display:block;color:var(--muted);font-size:12px}#toast:empty{display:none}#toast{position:fixed;right:24px;bottom:22px;background:#132b46;color:#fff;padding:10px 16px;border-radius:8px;z-index:2}#print-report{display:none}
@media(max-width:1050px){.shell{grid-template-columns:190px minmax(0,1fr)}main,.topbar{padding-left:20px;padding-right:20px}.sidebar{padding-inline:12px}.stat{gap:7px;padding:11px 8px}.stat small{font-size:11px}}
@media(max-width:730px){.shell{display:block}.sidebar{height:auto;position:static;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:9px 14px;gap:10px}.brand{font-size:17px}.brand-mark{width:32px;height:32px}.brand small{font-size:6px}.side-rule,.nav-label,.side-bottom,.top-context{display:none}.nav-item{padding:6px 8px;font-size:11px}.topbar{height:41px}main{padding:14px 12px 35px}.hero{padding:19px;align-items:flex-start;flex-direction:column;gap:12px}.stats{grid-template-columns:repeat(2,1fr);gap:8px;margin:12px 0}.grid{grid-template-columns:repeat(2,minmax(0,1fr));padding-inline:13px}.panel-head,.card-head{padding:14px}.overview{min-width:650px}}
@media print{
@page{size:A4;margin:12mm}
:root,body{background:white;color:#152840;font-size:10pt}.shell,#toast,dialog{display:none!important}#print-report{display:block}.print-head{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid #1d55a4;padding-bottom:3mm;margin-bottom:3mm}.print-brand{font-size:17pt;font-weight:850;color:#194b92}.print-head small{display:block;color:#415874}.print-title{font-size:16pt;line-height:1.15;margin:3mm 0}.print-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5mm;margin:0 0 3mm}
.print-meta-field{border:1px solid #9aabc0;border-radius:1.2mm;padding:1mm 2mm;break-inside:avoid;overflow-wrap:anywhere}
.print-meta-field dt{font-size:8pt;font-weight:800;color:#293d56;line-height:1.2;padding-bottom:.5mm;border-bottom:1px solid #d2dbe6}
.print-meta-field dd{margin:.6mm 0 0;font-size:10pt;line-height:1.25;font-weight:400}.print-section h3{margin:2mm 0 1mm;break-after:avoid;font-size:10pt}.print-section thead{display:table-header-group}.print-section th,.print-section td{font-size:8pt;line-height:1.15;padding:1mm 1.5mm;border:1px solid #c8d4e2;white-space:normal;overflow-wrap:anywhere}.print-section table{table-layout:fixed}.print-section tr{break-inside:avoid}.print-section th:first-child{width:5%}.print-section th:nth-child(2){width:19%}.print-section th:nth-child(5){width:10%}.print-section th:nth-child(7){width:24%}.print-section tfoot{font-weight:bold}.print-notes{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:3mm}.signature{margin-top:4mm;break-inside:avoid;border:1px solid #9bb0c9;border-radius:2mm;padding:2mm 3mm;min-height:31mm;width:100%;font-size:9pt}.signature small{color:#4c5c70}
}
fieldset{border:0;margin:0;padding:0;min-width:0}button.stat[aria-pressed=true]{background:#f6faff}
.photo-field{padding:0 22px 20px}.photo-field input{max-width:400px}.photo-field input::file-selector-button{background:#e9f1ff;border:0;border-radius:4px;padding:4px 8px;color:#154eaf;margin-right:8px;cursor:pointer}.installation-image{display:block;max-width:min(100%,420px);max-height:280px;object-fit:contain;margin:10px 0;border:1px solid var(--line);border-radius:7px}
@media print{.print-photo{break-inside:avoid;margin-top:4mm}.print-photo img{display:block;max-width:100%;max-height:65mm;object-fit:contain;margin-top:1mm}}
.sidebar-logo{display:block;width:158px;height:auto;max-width:100%;border-radius:8px;background:#fff}
.form-branding{background:#fff;border:1px solid var(--line);border-top:3px solid var(--blue);border-radius:12px;padding:13px 20px;margin-bottom:17px}
.company-header{display:flex;align-items:center;justify-content:space-between;gap:10px 24px;width:100%;flex-wrap:wrap}
.company-logo{width:148px;height:auto;max-width:100%}
.company-details{display:grid;gap:1px;text-align:right;color:var(--muted);font-size:13px}
.company-details strong{font-size:15px;color:#172941}
.company-details a{color:#154eaf;text-decoration:none}
.company-details a:hover{text-decoration:underline}
@media(max-width:730px){.sidebar-logo{width:75px;border-radius:5px}}
@media(max-width:500px){.company-details{text-align:left}.company-logo{width:112px}}
@media print{
  .print-head{padding-bottom:2mm;margin-bottom:2mm}
  .print-head .company-header{flex-wrap:nowrap}
  .print-head .company-logo{width:32mm}
  .print-head .company-details{font-size:8pt;text-align:right;line-height:1.2;gap:.4mm}
  .print-head .company-details strong{font-size:10pt}
  .print-head .company-details a{color:inherit}
}
.icon-btn[data-action="delete"]{color:#a22e24}.icon-btn[data-action="delete"]:hover{background:#fff0ed}
nav .nav-item+button{margin-top:6px}.machine h3{font-size:16px;padding:10px 20px}.check-row{display:grid;grid-template-columns:135px minmax(0,1fr) minmax(120px,25%);gap:10px;align-items:center;padding:10px 20px;border-top:1px solid var(--line)}.check-row input[type=checkbox]{display:inline;width:17px;min-height:0;height:17px;vertical-align:middle}.heat-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:15px;padding:12px 20px}.heat-photo img{display:block;max-width:100%;max-height:200px}.machine .photo-field{margin-top:10px}
@media(max-width:730px){.check-row{grid-template-columns:1fr}.sidebar nav{display:flex;gap:4px}.sidebar nav .nav-item{width:auto;margin:0}}
@media print{.machine{overflow:visible;border:0}.machine .card-head,.machine .grid,.machine .photo-field,.machine h3{padding:2mm 0}.machine .check-row{grid-template-columns:23mm 1fr 35mm;font-size:9pt;padding:1mm;break-inside:avoid}.heat-photos{display:block;padding:0}.heat-photo{display:inline-block;width:47%;vertical-align:top;padding:2mm;break-inside:avoid}.heat-photo img{max-height:50mm}.machine h2,.machine h3{break-after:avoid}}
.nav-item:not([aria-current]){background:transparent;border-color:transparent}.nav-item:hover{background:#294462}
.eco-section{padding:0 20px 20px}.eco-section details{border-top:1px solid var(--line)}.eco-section summary{cursor:pointer;padding:10px 0;font-weight:650}.eco-section .grid{padding:0 0 14px}.eco-section .btn{margin-top:10px}@media print{.eco-section{padding:0}.eco-section .print-meta{margin-bottom:2mm}}
