:root { --ink:#16333d; --teal:#126b73; --pale:#e6f1f1; --line:#d5e2e4; --danger:#b8423c; }
.pressure-file .pressure-pdf-preview { display:block; width:100%; height:170px; border:1px solid var(--line); border-radius:8px; background:#fff; pointer-events:none; }
.pressure-pdf-fallback { display:grid; width:100%; height:100%; place-items:center; color:#a43434; background:linear-gradient(135deg,#fff 0%,#f5f8f8 100%); font-weight:800; }
.pressure-test-row { display:grid !important; grid-template-columns:repeat(3,max-content); align-items:center; justify-content:start; gap:8px !important; padding:8px !important; border:1px solid var(--line); border-radius:12px; background:#ffffffeb; box-shadow:0 7px 18px #1b485010; }
.pressure-test-row .pressure-test-open { grid-column:1 / -1; width:100%; border:0 !important; box-shadow:none !important; }
.pressure-test-row:has(.pressure-test-status.passed) { border:2px solid #0b8a5a; background:#e6f8ee; }
.pressure-test-row:has(.pressure-test-status.failed) { border:2px solid #d13e3e; background:#ffebeb; }
@media(max-width:700px){ .pressure-file .pressure-pdf-preview { height:145px; } .pressure-test-row { grid-template-columns:minmax(0,1fr) auto auto; padding:7px !important; } .pressure-test-row .pressure-test-open { grid-column:1 / -1; } .pressure-test-row .pressure-test-status-actions { justify-self:stretch; } }
* { box-sizing:border-box; } body { margin:0; min-height:100vh; font:16px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif; color:var(--ink); background-image:linear-gradient(105deg,#edf6f7a6 0%,#e5f1f29c 48%,#e7f3f4a6 100%),url("assets/ventilation-ductwork-background-v2.png?v=1"); background-position:center; background-size:cover; background-attachment:fixed; background-repeat:no-repeat; }
button,input { font:inherit; } button { cursor:pointer; border:0; border-radius:10px; padding:11px 15px; color:white; font-weight:700; background:var(--teal); } button:hover { filter:brightness(.94); } button.outline,.back { color:var(--teal); background:white; border:1px solid var(--line); } button.danger { background:var(--danger); } .shell { width:min(1050px,calc(100% - 32px)); margin:0 auto; padding:35px 0 65px; }
header,.view-title { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; } h1,h2,h3,p { margin:0; } h1 { font-size:clamp(2.2rem,6vw,3.8rem); letter-spacing:-.04em; } h2 { font-size:1.55rem; } #status { margin-top:4px; color:#527078; } .brand { display:flex; align-items:center; gap:16px; margin-bottom:2px; } a.brand { width:max-content; text-decoration:none; } a.brand:hover { filter:brightness(.94); } .brand img { width:250px; height:108px; object-fit:contain; } .header-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; } .eyebrow { font-weight:800; font-size:.76rem; letter-spacing:.11em; color:var(--teal); } .hidden { display:none !important; }
.direction-grid { margin-top:42px; display:grid; grid-template-columns:repeat(2,1fr); gap:20px; } .direction-card { min-height:230px; padding:30px; text-align:left; display:flex; flex-direction:column; align-items:flex-start; color:var(--ink); background:white; box-shadow:0 12px 28px #1b485015; } .direction-card[data-direction="sissepuhe"] { background:#eaf5fb; } .direction-card[data-direction="valjatomme"] { background:#fbeeee; } .direction-card .icon { font-size:3.4rem; color:var(--teal); line-height:1; } .direction-card strong { margin-top:28px; font-size:1.55rem; } .direction-card small { margin-top:4px; color:#668087; font-weight:500; }
.direction-card { position:relative; isolation:isolate; overflow:hidden; min-height:246px; border:1px solid var(--line); transition:transform .18s ease,box-shadow .18s ease; } .direction-card::before { content:""; position:absolute; z-index:-1; width:260px; height:260px; right:-112px; bottom:-144px; border:30px solid currentColor; border-radius:50%; opacity:.14; } .direction-card::after { content:"ÕHK"; position:absolute; right:24px; top:26px; color:currentColor; font-size:.74rem; font-weight:900; letter-spacing:.15em; opacity:.42; } .direction-card:hover { filter:none; transform:translateY(-4px); box-shadow:0 18px 34px #1b48502b; } .direction-card[data-direction="sissepuhe"] { color:#126987; background:linear-gradient(135deg,#ecf9ff,#d7f0fb 62%,#fff); border-color:#b8ddeb; } .direction-card[data-direction="valjatomme"] { color:#a5464a; background:linear-gradient(135deg,#fff2f1,#f9dddd 62%,#fff); border-color:#ecc6c4; } .direction-card .icon { display:grid; place-items:center; width:66px; height:66px; border-radius:50%; color:#fff; background:currentColor; box-shadow:0 8px 16px #1643452b; } .direction-card strong { color:var(--ink); }
.direction-card { display:grid; grid-template-columns:102px minmax(0,1fr); grid-template-rows:1fr auto; align-items:center; gap:20px; padding:26px 28px; text-align:left; } .direction-card::after { content:"ÕHUVOOL"; } .direction-marker { position:absolute; top:22px; right:23px; padding:5px 8px; border:1px solid currentColor; border-radius:5px; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:.67rem; font-weight:900; letter-spacing:.12em; line-height:1; } .direction-visual { position:relative; display:grid; place-items:center; width:102px; height:102px; border:2px solid currentColor; border-radius:12px; background:linear-gradient(145deg,#ffffffd9,#ffffff55); box-shadow:inset 0 0 0 5px #ffffff73,0 10px 19px #1643451f; } .direction-visual::before,.direction-visual::after { content:""; position:absolute; background:currentColor; opacity:.24; } .direction-visual::before { width:1px; height:100%; left:50%; } .direction-visual::after { width:100%; height:1px; top:50%; } .direction-fan { position:relative; z-index:1; width:55px; height:55px; border:3px solid currentColor; border-radius:50%; background:#ffffffb8; box-shadow:inset 0 0 0 7px #ffffffaa; } .direction-fan::after { content:""; position:absolute; top:19px; left:19px; width:11px; height:11px; border-radius:50%; background:currentColor; } .direction-fan i { position:absolute; top:23px; left:26px; width:23px; height:9px; border-radius:12px 12px 12px 2px; background:currentColor; transform-origin:2px 50%; } .direction-fan i:nth-child(2) { transform:rotate(90deg); } .direction-fan i:nth-child(3) { transform:rotate(180deg); } .direction-fan i:nth-child(4) { transform:rotate(270deg); } .direction-flow { position:absolute; z-index:2; display:grid; gap:6px; right:-16px; top:28px; } .direction-flow i { display:block; width:31px; height:3px; border-radius:5px; background:currentColor; box-shadow:6px 0 0 -1px currentColor; } .direction-flow i:nth-child(2) { width:23px; } .direction-flow i:nth-child(3) { width:16px; } .direction-card[data-direction="valjatomme"] .direction-flow { left:-16px; right:auto; transform:scaleX(-1); } .direction-card-label { align-self:end; min-width:0; } .direction-card strong { display:block; margin:0; color:var(--ink); font-size:1.62rem; letter-spacing:-.025em; } .direction-card small { display:block; margin-top:7px; color:#46666f; font-size:.88rem; font-weight:650; line-height:1.35; }
.direction-card { display:flex; align-items:center; min-height:188px; gap:23px; padding:24px 26px; } .direction-card::before { width:150px; height:150px; right:-55px; bottom:-77px; border-width:20px; } .direction-card::after { display:none; } .direction-visual { flex:0 0 auto; display:flex; flex-direction:column; align-items:center; justify-content:space-between; width:94px; height:120px; padding:11px; border:0; border-radius:10px; color:#fff; background:linear-gradient(155deg,#1c738f,#0a425b); box-shadow:inset 0 1px #ffffff55,0 10px 20px #123d4d2b; } .direction-visual::before { inset:9px; width:auto; height:auto; left:9px; border:1px solid #ffffff45; background:repeating-linear-gradient(90deg,transparent 0 9px,#ffffff1c 10px 11px); opacity:1; } .direction-visual::after { display:none; } .direction-card[data-direction="valjatomme"] .direction-visual { background:linear-gradient(155deg,#bd5957,#762d38); } .direction-code { position:relative; z-index:1; align-self:stretch; padding-bottom:7px; border-bottom:1px solid #ffffff55; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:.67rem; font-weight:900; letter-spacing:.16em; text-align:center; } .direction-arrow { position:relative; z-index:1; margin-bottom:2px; color:#fff; font-size:3.35rem; font-weight:300; line-height:.9; text-shadow:0 2px 7px #001c2b4d; } .direction-card-label { align-self:center; display:flex; flex:1; flex-direction:column; align-items:flex-start; min-width:0; } .direction-card small { order:-1; margin:0 0 6px; color:#527078; font-size:.72rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; } .direction-card strong { margin:0; font-size:1.62rem; } .direction-card em { display:inline-flex; gap:8px; margin-top:14px; color:currentColor; font-size:.79rem; font-style:normal; font-weight:850; letter-spacing:.02em; } .direction-card em b { transition:transform .18s ease; } .direction-card:hover em b { transform:translateX(4px); }
.direction-visual { display:grid; place-items:center; width:142px; height:128px; padding:0; color:#126987; background:transparent; box-shadow:none; } .direction-card[data-direction="valjatomme"] .direction-visual { color:#a5464a; background:transparent; } .direction-visual::before,.direction-visual::after { display:none; } .vent-diagram { display:block; width:100%; height:100%; overflow:visible; } .duct-line { stroke:#58747c; stroke-width:12; stroke-linecap:round; stroke-linejoin:round; } .duct-joint { stroke:#f7fbfc; stroke-width:2; opacity:.85; } .diffuser { fill:#f9fcfc; stroke:currentColor; stroke-width:3; stroke-linejoin:round; } .grille { stroke:#58747c; stroke-width:2; stroke-linecap:round; } .air-arrow { stroke:currentColor; stroke-width:3.5; stroke-linecap:round; } .direction-card:hover .vent-diagram { filter:drop-shadow(0 7px 6px #16333d22); }
.direction-visual { position:relative; display:block; width:180px; height:145px; overflow:visible; } .duct-asset { display:block; width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 8px 7px #16333d24); }
.favorite-devices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-top:24px; } .favorite-group { padding:18px; border:1px solid var(--line); border-radius:14px; background:#ffffffd9; } .favorite-group h2 { font-size:1rem; } .favorite-buttons { display:grid; gap:8px; margin-top:12px; } .favorite-buttons button { padding:10px 12px; color:var(--ink); background:#f4f9f9; border:1px solid var(--line); text-align:left; } .favorite-buttons button:hover { background:#e6f5f4; }
.tools-view { margin-top:28px; } .tools-view .eyebrow { margin-bottom:10px; } .start-description { margin-top:6px; color:#527078; } .home-tools { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:20px; } .tool-card { position:relative; isolation:isolate; width:100%; min-height:210px; padding:22px; display:grid; grid-template-columns:122px minmax(0,1fr); gap:20px; overflow:hidden; text-align:left; color:var(--ink); border:1px solid var(--line); box-shadow:0 14px 30px #1b485020; transition:transform .18s ease,box-shadow .18s ease; } .tool-card:hover { filter:none; transform:translateY(-3px); box-shadow:0 20px 34px #1b485030; } .tool-card::after { content:""; position:absolute; z-index:-1; width:190px; height:190px; border-radius:50%; opacity:.5; right:-73px; bottom:-91px; } .pressure-tool { background:linear-gradient(135deg,#f4efff,#e4edff 58%,#fafdff); border-color:#cbd9ef; } .pressure-tool::after { background:#a797e7; } .vent-tool { background:linear-gradient(135deg,#e8f8f4,#def4fb 58%,#fafdff); border-color:#bddfe0; } .vent-tool::after { background:#72c8ba; } .tool-visual { position:relative; align-self:center; display:block; width:122px; height:122px; border-radius:20px; overflow:hidden; box-shadow:inset 0 1px #fff8,0 8px 18px #16333d1c; } .pressure-visual { background:radial-gradient(circle at 50% 40%,#ffffff 0 37%,#e6ddff 38% 40%,#b9a8e4 41% 43%,#6e5aa6 44% 46%,#554286 47% 100%); } .gauge { position:absolute; width:72px; height:72px; top:17px; left:25px; border:5px solid #503d82; border-radius:50%; background:conic-gradient(from 220deg,#ef7676 0 19deg,#f6be70 20deg 39deg,#ffffff 40deg 143deg,#bfc3dc 144deg 220deg,#ef7676 221deg 240deg,#fff 241deg 360deg); box-shadow:0 2px 6px #291d4b55; } .gauge::after { content:""; position:absolute; width:8px; height:8px; top:27px; left:27px; border-radius:50%; background:#503d82; } .gauge-needle { position:absolute; z-index:1; width:3px; height:24px; left:31px; top:10px; border-radius:8px; background:#d63f54; transform:rotate(43deg); transform-origin:50% 87%; } .pressure-pipe { position:absolute; width:82px; height:34px; left:20px; bottom:11px; border:9px solid #d9ddef; border-top:0; border-radius:0 0 17px 17px; box-shadow:inset 0 -3px #a89bd0; } .pressure-label { position:absolute; right:9px; top:7px; color:#fff; font-size:.66rem; font-weight:900; letter-spacing:.06em; } .vent-visual { background:radial-gradient(circle at 35% 39%,#fff 0 26%,#e0f7f0 27% 31%,#8acfc2 32% 35%,#2e807b 36% 100%); } .vent-fan { position:absolute; top:22px; left:20px; width:72px; height:72px; border:4px solid #276d70; border-radius:50%; background:#c2ece3; box-shadow:0 2px 7px #1643454d; } .vent-fan::after { content:""; position:absolute; width:13px; height:13px; top:26px; left:26px; border-radius:50%; background:#276d70; } .vent-fan i { position:absolute; width:26px; height:12px; left:34px; top:29px; border-radius:14px 14px 14px 2px; background:#398e89; transform-origin:left center; } .vent-fan i:nth-child(2) { transform:rotate(120deg); } .vent-fan i:nth-child(3) { transform:rotate(240deg); } .airflow { position:absolute; top:27px; right:8px; display:grid; gap:8px; } .airflow i { display:block; width:27px; height:4px; border-radius:8px; background:#e8fffb; box-shadow:7px 0 #e8fffb; } .airflow i:nth-child(2) { width:20px; } .airflow i:nth-child(3) { width:14px; } .tool-copy { align-self:stretch; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; min-width:0; } .tool-card strong { font-size:1.36rem; } .tool-card small { display:block; margin-top:5px; color:#486a72; font-weight:550; line-height:1.35; } .tool-action { display:inline-flex; gap:9px; margin-top:16px; color:var(--teal); font-size:.82rem; font-weight:800; } .pressure-tool .tool-action { color:#53408a; } .tool-action b { font-size:1rem; line-height:.8; transition:transform .18s ease; } .tool-card:hover .tool-action b { transform:translateX(4px); }
#devices-view,#sizes-view,#table-view { margin-top:36px; } .view-title { margin-bottom:22px; align-items:center; } .view-title > div { flex:1; } .view-actions { display:flex; flex:initial !important; gap:8px; } .table-heading { display:flex; align-items:center; gap:10px; } .size-nav { min-width:36px; min-height:36px; padding:5px 10px; border-radius:50%; font-size:1.2rem; line-height:1; } .size-nav:disabled { cursor:default; opacity:.32; } .device-grid,.size-grid,.column-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px; } .device-grid button,.size-grid button { min-height:96px; background:white; color:var(--ink); border:1px solid var(--line); text-align:left; font-size:1.15rem; } .device-grid button.device-with-image { display:flex; align-items:center; gap:10px; } .device-grid button.device-with-image strong { min-width:0; overflow-wrap:anywhere; line-height:1.2; } .device-thumbnail { width:56px; height:56px; flex:0 0 auto; object-fit:contain; border:1px solid var(--line); border-radius:8px; background:#f5fafa; } .size-grid button { text-align:center; font-size:1.35rem; } .device-manage-card,.size-manage-card,.column-manage-card { min-height:96px; padding:14px; border:1px solid var(--line); border-radius:10px; background:#fff; display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:7px; } .device-manage-card .device-thumbnail { margin:auto; } .device-manage-card strong,.size-manage-card strong,.column-manage-card strong { width:100%; text-align:center; font-size:1.05rem; } .device-manage-card button,.size-manage-card button,.column-manage-card button { min-height:0; padding:7px 9px; font-size:.8rem; } .add-size { margin-top:14px; }
#pressure-objects-view { margin-top:36px; } .pressure-object-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:14px; } .pressure-object-card { min-height:140px; padding:20px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius:10px; text-align:left; box-shadow:0 10px 25px #1b485012; } .pressure-object-card strong { font-size:1.2rem; } .pressure-object-card small { margin-top:6px; color:#527078; font-weight:500; } .pressure-object-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:18px; } .pressure-object-actions button { padding:8px 10px; font-size:.82rem; } .pressure-object-empty { padding:22px; border:1px dashed var(--line); border-radius:12px; color:#527078; background:#ffffffd9; }
#duct-area-view { margin-top:36px; } .duct-calculator-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; } .duct-calculator-card { padding:24px; border:1px solid var(--line); border-radius:15px; background:#ffffffeb; box-shadow:0 10px 25px #1b485012; } .duct-calculator-card h3 { font-size:1.35rem; } .duct-description { min-height:44px; margin:6px 0 20px; color:#527078; } .duct-calculator-card label { display:block; margin-top:13px; font-weight:700; } .measure-input { display:flex; align-items:center; margin-top:6px; border:1px solid var(--line); border-radius:9px; overflow:hidden; background:#fff; } .measure-input:focus-within { border-color:var(--teal); box-shadow:0 0 0 2px #b8dddd; } .measure-input input { width:100%; min-width:0; padding:12px; border:0; outline:0; } .measure-input span { align-self:stretch; display:flex; align-items:center; padding:0 12px; color:#527078; background:#f4f9f9; border-left:1px solid var(--line); font-weight:700; } .duct-formula { margin-top:20px; color:#527078; font-size:.9rem; } .duct-result { display:block; margin-top:8px; padding:14px; border-radius:10px; color:var(--teal); background:#e6f1f1; font-size:1.28rem; font-weight:800; }
.duct-test-card { padding:24px; border:1px solid var(--line); border-radius:15px; background:#ffffffeb; box-shadow:0 10px 25px #1b485012; } .duct-test-name { display:block; max-width:470px; font-weight:700; } .duct-test-name input { display:block; width:100%; margin-top:6px; padding:12px; border:1px solid var(--line); border-radius:9px; outline:0; } .duct-test-name input:focus { border-color:var(--teal); box-shadow:0 0 0 2px #b8dddd; } .duct-test-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:24px; } .duct-test-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; } .duct-test-actions button { padding:9px 11px; font-size:.85rem; } .duct-rows { display:grid; gap:12px; margin-top:14px; } .duct-row { padding:16px; border:1px solid var(--line); border-radius:12px; background:#fff; } .duct-row-header { display:flex; align-items:center; justify-content:space-between; gap:12px; } .duct-row-header > div { display:flex; align-items:center; gap:8px; } .duct-row select { padding:9px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:#fff; font:inherit; } .duct-row-remove { padding:9px 10px; font-size:.82rem; } .duct-row-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:14px; } .duct-field { display:block; font-size:.88rem; font-weight:700; } .duct-row-result { display:block; margin-top:14px; color:var(--teal); font-size:1.1rem; font-weight:800; } .duct-total { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:18px; padding:18px; border-radius:11px; color:var(--teal); background:#e6f1f1; font-size:1.08rem; font-weight:800; } .duct-total output { font-size:1.45rem; }
.pressure-images-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; } .pressure-images-heading h3 { margin:0; } .pressure-image-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; } .pressure-images-heading button { padding:8px 11px; font-size:.85rem; } .pressure-images-note { margin:8px 0 12px; color:#527078; font-size:.9rem; } .pressure-images { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:10px; margin-bottom:22px; } .pressure-image { position:relative; margin:0; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:#f5fafa; } .pressure-image img { display:block; width:100%; height:120px; object-fit:cover; } .pressure-image button { position:absolute; top:7px; right:7px; padding:5px 7px; font-size:.75rem; }
.device-image-panel { width:min(100%,360px); margin:-8px 0 18px; padding:10px; border:1px solid var(--line); border-radius:12px; background:#fff; box-shadow:0 6px 18px #1b485010; } .device-image-panel img { display:block; width:100%; max-height:260px; object-fit:contain; }
.speed-calculator-card { width:min(100%,560px); padding:28px; border:1px solid var(--line); border-radius:15px; background:#ffffffeb; box-shadow:0 10px 25px #1b485012; } .airflow-meter-image { display:block; width:250px; max-width:100%; height:190px; margin:0 auto 22px; object-fit:contain; mix-blend-mode:multiply; } .speed-calculator-card label { display:block; margin-top:20px; font-weight:750; } .speed-formula { margin:0; padding:12px 14px; border-radius:10px; color:var(--teal); background:#e6f1f1; font-size:1.04rem; font-weight:800; } .speed-input { display:flex; align-items:center; margin-top:7px; border:1px solid var(--line); border-radius:9px; overflow:hidden; background:#fff; } .speed-input:focus-within { border-color:var(--teal); box-shadow:0 0 0 2px #b8dddd; } .speed-input input { width:100%; min-width:0; padding:13px; border:0; outline:0; font:inherit; } .speed-input span { align-self:stretch; display:flex; align-items:center; padding:0 13px; color:#527078; background:#f4f9f9; border-left:1px solid var(--line); font-weight:750; } .speed-calculator-card output { display:block; min-height:52px; margin-top:16px; padding:14px; border-radius:10px; color:var(--teal); background:#e6f1f1; font-size:1.25rem; font-weight:850; } .speed-calculator-card > button { margin-top:14px; }
.table-card { background:white; border-radius:15px; overflow:hidden; box-shadow:0 10px 25px #1b485012; } .table-note { padding:16px 20px; color:#527078; background:#f5fafa; font-size:.9rem; } .column-manager { padding:10px; background:#f5fafa; border-top:1px solid var(--line); } .column-manage-card { min-height:62px; } .column-manager > button { margin-top:8px; } .table-scroll { overflow:auto; } table { border-collapse:collapse; min-width:610px; width:100%; font-size:.92rem; } th,td { padding:5px 9px; border-bottom:1px solid var(--line); text-align:left; } th { background:#e9f3f3; color:#315860; font-size:.7rem; text-transform:uppercase; letter-spacing:.035em; } tbody tr:nth-child(even) td { background:#f4f9f9; } td.editable { padding:0; cursor:text; } .cell-input { display:block; width:100%; min-width:120px; padding:5px 9px; border:2px solid transparent; outline:0; color:var(--ink); background:transparent; } .cell-input:hover:not(:disabled) { background:#e6f5f4; } .cell-input:focus { border-color:var(--teal); background:#fff; box-shadow:inset 0 0 0 1px #b8dddd; } .cell-input:disabled { opacity:1; cursor:default; } .empty-row { color:#688087; text-align:center; padding:16px; } .table-actions { display:flex; justify-content:space-between; gap:10px; padding:10px; } .admin-col { width:84px; } .row-delete { padding:4px 8px; font-size:.75rem; }
dialog { width:min(430px,calc(100% - 32px)); padding:0; border:0; border-radius:14px; box-shadow:0 20px 55px #001b2260; } dialog::backdrop { background:#092d3560; } dialog form { padding:24px; } dialog input { width:100%; margin-top:17px; padding:12px; border:1px solid var(--line); border-radius:8px; } menu { margin:20px 0 0; padding:0; display:flex; justify-content:flex-end; gap:8px; } .search-panel { padding:22px; } .search-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; } .search-heading button { padding:7px 10px; font-size:.85rem; } .search-results { display:grid; gap:8px; margin-top:16px; max-height:55vh; overflow:auto; } .search-results p { color:#527078; } .search-result { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:12px 14px; color:var(--ink); background:#f5fafa; border:1px solid var(--line); text-align:left; } .search-result small { color:#527078; font-weight:600; } .history-totals { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:14px 0; } .history-total { padding:11px 12px; border:1px solid var(--line); border-radius:9px; background:#f5fafa; } .history-total small { display:block; color:#527078; font-weight:700; } .history-total strong { display:block; margin-top:4px; color:var(--teal); font-size:1.16rem; } #duct-tests-dialog { width:min(900px,calc(100vw - 48px)); max-height:calc(100vh - 48px); } .duct-tests-panel { padding:28px; } .duct-tests-panel h3 { font-size:1.45rem; } .duct-tests-results { display:grid; gap:12px; max-height:calc(100vh - 180px); margin-top:20px; overflow:auto; } .duct-tests-results > p { color:#527078; } .saved-duct-test { border:1px solid var(--line); border-radius:10px; background:#f9fcfc; } .saved-duct-test summary { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px 18px; cursor:pointer; } .saved-duct-test summary span { color:var(--teal); font-size:1.08rem; font-weight:800; } .saved-duct-test p { padding:0 18px 12px; color:#527078; font-size:.95rem; } .saved-duct-rows { display:grid; gap:7px; margin:0; padding:0 18px 12px 38px; color:#315860; font-size:.95rem; } .saved-duct-test-delete { margin:0 18px 18px; padding:8px 11px; font-size:.84rem; }
.pressure-test-list { display:grid; gap:10px; max-width:720px; } .pressure-test-empty { padding:20px; border:1px dashed var(--line); border-radius:12px; color:#527078; background:#ffffffd9; } .pressure-test-row { display:flex; align-items:stretch; gap:9px; } .pressure-test-open { flex:1; display:grid; grid-template-columns:minmax(100px,auto) 1fr auto; align-items:center; gap:14px; padding:16px 18px; color:var(--ink); background:#ffffffeb; border:1px solid var(--line); box-shadow:0 7px 18px #1b485010; text-align:left; } .pressure-test-open:hover { background:#f3fbfb; } .pressure-test-open strong { color:var(--teal); font-size:1.08rem; } .pressure-test-open span { color:#527078; font-size:.91rem; font-weight:550; } .pressure-test-open b { color:var(--teal); font-size:1.25rem; } .pressure-test-delete { align-self:center; padding:8px 10px; font-size:.8rem; } .duct-row-compact { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 16px; } .duct-row-summary { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; min-width:0; } .duct-row-summary strong { color:var(--teal); } .duct-row-summary span { overflow:hidden; color:#527078; font-size:.92rem; font-weight:550; text-overflow:ellipsis; white-space:nowrap; } .duct-row-summary output { color:var(--teal); font-size:1.04rem; font-weight:800; white-space:nowrap; } .duct-row-actions { display:flex; flex:0 0 auto; gap:7px; } .duct-row-edit { padding:8px 10px; font-size:.82rem; }
.pressure-test-comment { align-self:center; padding:8px 10px; font-size:.8rem; } .pressure-comment-panel { padding:24px; } .pressure-comment-panel label { display:block; margin-top:18px; font-weight:700; } .pressure-comment-panel textarea { display:block; width:100%; min-height:150px; margin-top:7px; padding:11px; border:1px solid var(--line); border-radius:9px; color:var(--ink); background:#fff; font:inherit; line-height:1.45; resize:vertical; } .pressure-comment-panel textarea:focus { outline:0; border-color:var(--teal); box-shadow:0 0 0 2px #b8dddd; } .pressure-comment-panel textarea:disabled { color:#315860; background:#f4f9f9; opacity:1; }
@media(max-width:700px){
  .home-tools { grid-template-columns:1fr; }
  body { font-size:15px; background-attachment:scroll; }
  .shell { width:min(100% - 20px,1050px); padding:14px 0 36px; }
  header { display:block; }
  header .outline { padding:8px 9px; font-size:.8rem; }
  .header-actions { margin-top:14px; justify-content:flex-start; }
  .brand img { width:180px; height:76px; }
  h1 { font-size:2.45rem; }
  .direction-grid { grid-template-columns:1fr; gap:12px; margin-top:24px; }
  .favorite-devices { grid-template-columns:1fr; gap:12px; margin-top:16px; }
  .direction-card { min-height:116px; padding:20px; }
  .direction-card strong { margin-top:9px; font-size:1.35rem; }
  .direction-card .icon { font-size:2.35rem; }
  .direction-card { grid-template-columns:78px minmax(0,1fr); min-height:136px; gap:16px; padding:18px; } .direction-visual { width:78px; height:78px; } .direction-fan { transform:scale(.72); } .direction-flow { right:-13px; top:22px; transform:scale(.8); transform-origin:right center; } .direction-card[data-direction="valjatomme"] .direction-flow { left:-13px; right:auto; transform:scaleX(-1) scale(.8); transform-origin:left center; } .direction-marker { top:12px; right:13px; padding:4px 6px; font-size:.57rem; } .direction-card::after { display:none; } .direction-card strong { margin:0; font-size:1.32rem; } .direction-card small { margin-top:4px; font-size:.78rem; }
  .direction-card { display:flex; min-height:126px; gap:15px; padding:16px; } .direction-visual { width:70px; height:92px; padding:9px; } .direction-code { padding-bottom:5px; font-size:.56rem; } .direction-arrow { font-size:2.65rem; } .direction-card-label { align-self:center; } .direction-card small { margin:0 0 4px; font-size:.62rem; } .direction-card strong { font-size:1.27rem; } .direction-card em { margin-top:9px; font-size:.7rem; }
  .direction-visual { width:96px; height:96px; padding:0; }
  .direction-visual { width:126px; height:108px; }
  #devices-view,#sizes-view,#table-view,#duct-area-view,#pressure-objects-view { margin-top:24px; }
  .tools-view { margin-top:20px; }
  .tool-card { width:100%; min-height:138px; padding:16px; grid-template-columns:90px minmax(0,1fr); gap:14px; } .tool-visual { width:90px; height:90px; border-radius:16px; transform:scale(.74); transform-origin:left center; margin-right:-23px; } .tool-card strong { font-size:1.2rem; } .tool-card small { font-size:.87rem; } .tool-action { margin-top:9px; }
  .pressure-test-open { grid-template-columns:1fr auto; gap:5px 10px; padding:14px; } .pressure-test-open strong { grid-column:1; } .pressure-test-open span { grid-column:1; } .pressure-test-open b { grid-column:2; grid-row:1 / span 2; }
  .pressure-test-row { flex-wrap:wrap; } .pressure-test-comment { align-self:auto; } .pressure-test-delete { align-self:auto; }
  .duct-row-compact { align-items:flex-start; flex-direction:column; gap:10px; } .duct-row-summary { width:100%; grid-template-columns:1fr auto; gap:4px 10px; } .duct-row-summary strong { grid-column:1; } .duct-row-summary span { grid-column:1; } .duct-row-summary output { grid-column:2; grid-row:1 / span 2; align-self:center; } .duct-row-actions { align-self:flex-end; }
  .view-title { gap:12px; flex-wrap:wrap; align-items:flex-start; }
  .view-title > div { order:-1; flex-basis:calc(100% - 116px); }
  .view-actions { width:100%; flex-wrap:wrap; }
  .view-actions button { padding:8px 10px; font-size:.8rem; }
  .table-heading { gap:6px; }
  .table-heading h2 { min-width:0; overflow-wrap:anywhere; font-size:1.28rem; }
  .size-nav { min-width:30px; min-height:30px; padding:4px 8px; font-size:1rem; }
  .device-grid,.size-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .pressure-object-grid { grid-template-columns:1fr; gap:10px; }
  .device-grid button,.size-grid button { min-height:76px; padding:10px; font-size:1rem; }
  .size-grid button { font-size:1.08rem; }
  .device-grid button.device-with-image { gap:7px; }
  .device-thumbnail { width:42px; height:42px; }
  .device-image-panel { width:100%; margin:0 0 12px; }
  .duct-calculator-grid { grid-template-columns:1fr; gap:12px; }
  .duct-calculator-card { padding:18px; }
  .duct-description { min-height:0; }
  .duct-test-card { padding:18px; }
  .duct-test-heading,.duct-row-header,.duct-total { align-items:flex-start; flex-direction:column; }
  .duct-row-header > div { width:100%; justify-content:space-between; }
  .duct-row-fields { grid-template-columns:1fr; gap:10px; }
  .duct-total output { font-size:1.3rem; }
  .device-image-panel img { max-height:190px; }
  .table-card { border-radius:11px; }
  .table-scroll { overflow-x:hidden; }
  table { min-width:0; width:100%; table-layout:fixed; font-size:.82rem; }
  th,td { padding:5px 5px; overflow-wrap:anywhere; word-break:break-word; }
  th { font-size:.62rem; letter-spacing:.015em; }
  .cell-input { min-width:0; padding:5px; font-size:.82rem; }
  .admin-col { width:58px; }
  .row-delete { padding:4px 5px; font-size:.66rem; }
  .table-actions { padding:8px; }
  .table-actions button { padding:8px 9px; font-size:.78rem; }
  .column-manager { padding:8px; }
  .column-grid { grid-template-columns:1fr; }
  .device-manage-card,.size-manage-card,.column-manage-card { min-height:76px; padding:9px; }
  dialog form,.search-panel { padding:18px; }
}
@media print { @page { size:A4 portrait; margin:10mm; } body { min-height:0; background:#fff; font-size:8pt; } .shell { width:100%; margin:0; padding:0; } header,#directions,#devices-view,#sizes-view,.back,.view-actions,.table-note,.column-manager,.table-actions,.admin-col,.size-nav { display:none !important; } #table-view { display:block !important; margin:0; } .view-title { display:block; margin:0 0 5mm; } .view-title > div { display:block; } .table-heading { display:block; } .table-heading h2 { font-size:16pt; } .eyebrow { font-size:8pt; } .device-image-panel { width:35mm; margin:0 0 4mm; padding:0; border:0; box-shadow:none; } .device-image-panel img { max-height:32mm; } .table-card { border-radius:0; box-shadow:none; overflow:visible; } .table-scroll { overflow:visible; } table { min-width:0; width:100%; font-size:8pt; } th,td { padding:1.6mm 2.5mm; } th { background:#e9f3f3 !important; -webkit-print-color-adjust:exact; print-color-adjust:exact; } tbody tr:nth-child(even) td { background:#f4f9f9 !important; -webkit-print-color-adjust:exact; print-color-adjust:exact; } td.editable { padding:0; } .cell-input { min-width:0; padding:1.6mm 2.5mm; border:0; background:transparent; font-size:8pt; } }

.device-grid button:has(.airflow-thumbnail) { gap:4px; } .device-grid button:has(.airflow-thumbnail) .airflow-thumbnail { width:42px; height:42px; } .device-grid button:has(.airflow-thumbnail) strong { overflow:visible; white-space:nowrap; font-size:.98rem; }

.pressure-test-open { grid-template-columns:minmax(100px,auto) 1fr auto auto; } .pressure-test-status { display:inline-flex; align-items:center; width:max-content; padding:5px 8px; border-radius:999px; color:#61777c; background:#eef3f3; font-size:.72rem; font-style:normal; font-weight:800; white-space:nowrap; } .pressure-test-status.passed { color:#176850; background:#dff5e9; } .pressure-test-status.failed { color:#a43434; background:#fde4e2; } .pressure-test-status-select { align-self:center; padding:8px 9px; border:1px solid var(--line); border-radius:8px; color:var(--ink); background:#fff; font:inherit; font-size:.8rem; font-weight:700; } @media(max-width:700px){ .pressure-test-open { grid-template-columns:1fr auto; } .pressure-test-open strong,.pressure-test-open span,.pressure-test-open .pressure-test-status { grid-column:1; } .pressure-test-open b { grid-column:2; grid-row:1 / span 3; } }
.pressure-test-open:has(.pressure-test-status.passed) strong,.pressure-test-open:has(.pressure-test-status.passed) span { color:#176850; } .pressure-test-open:has(.pressure-test-status.failed) strong,.pressure-test-open:has(.pressure-test-status.failed) span { color:#a43434; }
.pressure-test-open:has(.pressure-test-status.passed) { border:2px solid #0b8a5a; background:#e6f8ee; box-shadow:0 7px 18px #08794b24; } .pressure-test-open:has(.pressure-test-status.passed):hover { background:#d7f3e4; } .pressure-test-open:has(.pressure-test-status.failed) { border:2px solid #d13e3e; background:#ffebeb; box-shadow:0 7px 18px #bd242424; } .pressure-test-open:has(.pressure-test-status.failed):hover { background:#ffe0e0; } .pressure-test-status.passed { border:1px solid #07804f; color:#07583a; background:#c9f1dc; } .pressure-test-status.failed { border:1px solid #bd2727; color:#8f1a1a; background:#ffd1d1; }
@media(max-width:700px){ .pressure-test-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:6px; align-items:stretch; } .pressure-test-row .pressure-test-open { grid-column:1 / -1; min-height:0; padding:11px 13px; } .pressure-test-row .pressure-test-comment,.pressure-test-row .pressure-test-status-select,.pressure-test-row .pressure-test-delete { align-self:stretch; margin:0; padding:7px 8px; font-size:.71rem; white-space:nowrap; } .pressure-test-row .pressure-test-status-select { width:110px; } .pressure-test-row:not(:has(.pressure-test-status-select)) .pressure-test-comment { grid-column:1 / -1; } }
.pressure-test-status-actions { display:flex; align-items:center; gap:4px; } .pressure-test-status-button { padding:8px 9px; border:1px solid var(--line); border-radius:8px; color:#527078; background:#fff; font:inherit; font-size:.78rem; font-weight:800; white-space:nowrap; } .pressure-test-status-button.passed.active { border-color:#07804f; color:#07583a; background:#c9f1dc; } .pressure-test-status-button.failed.active { border-color:#bd2727; color:#8f1a1a; background:#ffd1d1; } @media(max-width:700px){ .pressure-test-row:has(.pressure-test-status-actions) .pressure-test-comment { grid-column:auto; } .pressure-test-row .pressure-test-status-actions { align-self:stretch; gap:3px; } .pressure-test-row .pressure-test-status-button { min-height:0; padding:7px 6px; font-size:.66rem; } }
.pressure-image img { cursor:zoom-in; } #pressure-image-viewer { width:min(1000px,calc(100vw - 24px)); max-width:none; max-height:calc(100vh - 24px); } .pressure-image-viewer-panel { padding:18px; } .pressure-image-viewer-stage { display:flex; align-items:center; justify-content:center; min-height:52vh; max-height:calc(100vh - 190px); margin-top:14px; overflow:auto; border:1px solid var(--line); border-radius:10px; background:#f4f9f9; touch-action:pan-x pan-y; } .pressure-image-viewer-stage img { display:block; max-width:100%; max-height:calc(100vh - 220px); object-fit:contain; transform-origin:center; transition:transform .16s ease; } .pressure-image-viewer-panel menu { align-items:center; } .pressure-image-viewer-panel menu output { min-width:48px; color:#527078; text-align:center; font-size:.86rem; font-weight:800; } .pressure-image-viewer-panel menu button { min-width:42px; } @media(max-width:700px){ .pressure-image-viewer-panel { padding:14px; } .pressure-image-viewer-stage { min-height:48vh; max-height:calc(100vh - 165px); } .pressure-image-viewer-stage img { max-height:calc(100vh - 195px); } }
.pressure-file { display:flex; flex-direction:column; align-items:flex-start; gap:8px; min-height:120px; padding:14px; border:1px solid var(--line); border-radius:10px; background:#f5fafa; } .pressure-file strong { overflow-wrap:anywhere; } .pressure-file small { color:#527078; font-size:.82rem; } .pressure-file button { padding:7px 9px; font-size:.78rem; } .pressure-test-files { margin-top:24px; padding-top:20px; border-top:1px solid var(--line); } @media (min-width:701px){ .camera-only { display:none !important; } }
