/* v1.9.263 – byggeveiviser. Påvirker ikke 3D/utskrift/symbolpaneler. */
#tegneplan-root #tp-bw-open {font:600 12px/1.2 inherit;border:1px solid #b7d1c5;background:#e8f5ef;color:#07583f;border-radius:7px;padding:9px 13px;cursor:pointer;white-space:nowrap;}
#tegneplan-root #tp-bw-views {font-size:12px;display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0;}
#tegneplan-root #tp-bw-views[hidden],#tp-building-wizard[hidden]{display:none!important;}
#tegneplan-root #tp-bw-views button {border:1px solid #c5d8d0;background:white;color:#14543d;border-radius:7px;padding:6px 11px;font:inherit;cursor:pointer;}
#tp-building-wizard {position:fixed;z-index:2147483647 !important;inset:0;display:flex;align-items:center;justify-content:center;font:13px/1.5 Arial,system-ui,sans-serif;color:#1b342b;}
#tp-building-wizard .tp-bw-backdrop {position:absolute;inset:0;background:rgba(11,28,23,.60);}
#tp-building-wizard .tp-bw-dialog {position:relative;display:flex;flex-direction:column;width:min(890px,calc(100vw - 32px));max-height:calc(100dvh - 32px);background:#fff;box-shadow:0 22px 70px rgba(0,0,0,.24);border-radius:12px;overflow:hidden;outline:none;}
#tp-building-wizard .tp-bw-dialog header {display:flex;justify-content:space-between;gap:24px;padding:21px 26px 16px;border-bottom:1px solid #dce7e0;}
#tp-building-wizard .tp-bw-dialog h2 {margin:0;font-size:23px;font-weight:650;color:#17372c;}
#tp-building-wizard .tp-bw-dialog header p {margin:4px 0 0;color:#62786e;font-size:12px;}
#tp-building-wizard .tp-bw-close {align-self:start;background:#f7faf8;border:1px solid #d7e3dc;padding:6px 10px;border-radius:6px;color:#315145;cursor:pointer;}
#tp-building-wizard .tp-bw-body {overflow:auto;padding:5px 26px 20px;display:grid;gap:10px;scrollbar-width:thin;}
#tp-building-wizard .tp-bw-body section {border-bottom:1px solid #e5ece8;padding:11px 0 15px;}
#tp-building-wizard .tp-bw-body h3 {font-size:14px;margin:0 0 12px;font-weight:700;}
#tp-building-wizard .tp-bw-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 14px;}
#tp-building-wizard .tp-bw-dialog label {display:flex;flex-direction:column;gap:4px;color:#3f584f;font-weight:600;font-size:11px;}
#tp-building-wizard .tp-bw-dialog input,#tp-building-wizard .tp-bw-dialog select {min-width:0;min-height:36px;box-sizing:border-box;border:1px solid #cbdcd4;border-radius:6px;background:white;color:#14362a;font-size:13px;padding:7px 9px;max-width:100%;}
#tp-building-wizard .tp-bw-dialog input:focus,#tp-building-wizard .tp-bw-dialog select:focus {outline:2px solid #87c1a9;outline-offset:0;}
#tp-building-wizard .tp-bw-note {font-size:11px;color:#66776d;margin:9px 0 0;}
#tp-building-wizard .tp-bw-floor {background:#f7faf8;border:1px solid #e2eae5;border-radius:8px;padding:12px 14px;margin-bottom:9px;}
#tp-building-wizard .tp-bw-floor-heading {display:flex;align-items:center;justify-content:space-between;margin:0 0 9px;}
#tp-building-wizard .tp-bw-floor-heading button {font-size:11px;border:none;background:transparent;color:#a43b32;cursor:pointer;}
#tp-building-wizard .tp-bw-deck {margin-top:10px;padding:11px;border-top:1px solid #dfe8e1;}
#tp-building-wizard .tp-bw-deck>label {max-width:360px;margin-bottom:10px;}
#tp-building-wizard .tp-bw-deck [hidden] {display:none!important;}
#tp-building-wizard .tp-bw-secondary {background:#fff;color:#14513a;border:1px solid #b7ccc1;padding:9px 13px;border-radius:7px;cursor:pointer;font-size:12px;font-weight:700;}
#tp-building-wizard .tp-bw-primary {background:#078154;color:white;border:1px solid #078154;padding:10px 16px;border-radius:7px;cursor:pointer;font-size:13px;font-weight:700;}
#tp-building-wizard .tp-bw-summary {background:#f8fbf9;padding:13px 15px!important;border:1px solid #dfebe4!important;border-radius:8px;}
#tp-building-wizard #tp-bw-footprint {font-weight:700;margin-bottom:5px;}
#tp-building-wizard #tp-bw-stack {display:grid;gap:4px;color:#344e42;font-size:12px;}
#tp-building-wizard .tp-bw-summary p {font-size:11px;margin:10px 0 0;color:#6c7d74;}
#tp-building-wizard .tp-bw-dialog footer {padding:13px 25px;border-top:1px solid #e1eae5;display:flex;justify-content:flex-end;align-items:center;gap:10px;}
#tp-building-wizard #tp-bw-error {flex:1;color:#b42318;font-size:12px;min-width:0;}
@media(max-width:640px) {#tp-building-wizard .tp-bw-grid{grid-template-columns:repeat(2,minmax(0,1fr));}#tp-building-wizard .tp-bw-dialog header{padding:16px;}#tp-building-wizard .tp-bw-body{padding:8px 16px;}#tp-building-wizard .tp-bw-dialog footer{padding:12px;}}
#tegneplan-root #tp-bw-views label {font-size:11px;display:flex;align-items:center;gap:5px;}
#tegneplan-root :is(#tp-bw-views,#tp-bw-plan-section) select {font-size:11px;color:#15553e;border:1px solid #cadbd2;border-radius:5px;background:#fff;padding:4px 5px;min-height:28px;max-width:190px;}
#tegneplan-root :is(#tp-bw-plan-section,#tp-bw-section-placement-tools,#tp-bw-saved-section-tools){display:flex;align-items:center;flex-wrap:wrap;gap:5px;min-width:0}
#tegneplan-root :is(#tp-bw-plan-section,#tp-bw-section-placement-tools,#tp-bw-saved-section-tools)[hidden]{display:none!important}
#tegneplan-root :is(#tp-bw-section-placement-tools,#tp-bw-saved-section-tools) label{display:flex;align-items:center;gap:5px;font-size:11px}
#tegneplan-root #tp-bw-show-saved-sections{width:15px;height:15px;min-height:0;margin:0;accent-color:#078154}
#tegneplan-root #tp-bw-place-section{white-space:nowrap}
#tegneplan-root .tp-preview3d .tp-3d-roof-plane {fill:#b89d8f!important;fill-opacity:.36!important;stroke:#74584c!important;}
#tegneplan-root .tp-preview3d .tp-3d-roof-plane-dark {fill:#ae8d80!important;fill-opacity:.28!important;}

#tp-building-wizard .tp-bw-topdeck-option{display:flex;flex-direction:row;align-items:center;gap:9px;font-size:12px}#tp-building-wizard .tp-bw-topdeck-option input{min-height:auto;width:17px;height:17px;flex:none}

/* v1.9.278 – kontroll for synlig bjelkelag i arbeidstegningen. */
#tegneplan-root #tp-bw-joist-tools{display:flex;align-items:center;flex-wrap:wrap;gap:5px 7px;border-left:1px solid #d2dfd7;padding-left:7px}
#tegneplan-root #tp-bw-joist-tools[hidden]{display:none!important}
#tegneplan-root #tp-bw-joist-tools .tp-bw-joist-check{flex-direction:row;align-items:center;gap:5px}
#tegneplan-root #tp-bw-joist-tools input[type="checkbox"]{width:15px;height:15px;margin:0;accent-color:#078154}
#tegneplan-root #tp-bw-joist-tools select{max-width:166px}
#tegneplan-root #tp-bw-joist-info{font:11px system-ui,sans-serif;color:#537164;white-space:nowrap}
#tp-building-wizard .tp-bw-axis-note{grid-column:1/-1;margin:0;font-size:11px;color:#416c57}

#tegneplan-root :is(#tp-bw-floor-extension,#tp-bw-refresh-section-decks)[hidden]{display:none!important}
#tegneplan-root :is(#tp-bw-floor-extension,#tp-bw-refresh-section-decks){white-space:nowrap}
#tegneplan-root #tp-bw-floor-extension-dialog{
  box-sizing:border-box;width:min(100% - 32px,420px);max-height:calc(100dvh - 32px);padding:0;
  border:1px solid #cbdcd4;border-radius:12px;background:#fff;color:#17372c;
  box-shadow:0 22px 70px rgba(0,0,0,.24);font:14px/1.5 system-ui,sans-serif;
}
#tp-bw-floor-extension-dialog::backdrop{background:rgba(11,28,23,.60)}
#tp-bw-floor-extension-dialog form{margin:0;padding:20px}
#tp-bw-floor-extension-dialog h2{margin:0;font:650 20px/1.3 system-ui,sans-serif;color:inherit}
#tp-bw-floor-extension-dialog [data-deck-name]{margin:4px 0 0;color:#416c57;font-weight:600}
#tp-bw-floor-extension-help{margin:12px 0;color:#415a50}
#tp-bw-floor-extension-dialog .tp-bw-extension-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#tp-bw-floor-extension-dialog label{display:grid;gap:4px;font-weight:600}
#tp-bw-floor-extension-dialog input{
  width:100%;min-width:0;min-height:38px;padding:6px 9px;box-sizing:border-box;
  border:1px solid #b7ccc1;border-radius:6px;background:#fff;color:#17372c;font:inherit;
}
#tp-bw-floor-extension-dialog :is(input,button):focus-visible{outline:2px solid #23835e;outline-offset:2px}
#tp-bw-floor-extension-dialog .tp-bw-extension-error:empty{margin:0}
#tp-bw-floor-extension-dialog .tp-bw-extension-error{margin:12px 0 0;color:#b42318}
#tp-bw-floor-extension-dialog footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:16px}
#tp-bw-floor-extension-dialog button{
  padding:8px 13px;min-height:38px;border:1px solid #b7ccc1;border-radius:7px;
  background:#fff;color:#14513a;cursor:pointer;font:600 14px/1.2 system-ui,sans-serif;
}
#tp-bw-floor-extension-dialog [data-deck-save]{background:#078154;border-color:#078154;color:#fff}
@media(max-width:360px){#tp-bw-floor-extension-dialog .tp-bw-extension-fields{grid-template-columns:1fr}}
@media print{#tegneplan-root #tp-bw-floor-extension-dialog{display:none!important}}
