#mgufh2-app{--mg-navy:#15354c;--mg-teal:#087f87;--mg-orange:#eb7c2a;--mg-ink:#263c4b;--mg-muted:#61727f;--mg-line:#dce5eb;--mg-light:#f3f7f9;font:15px/1.55 Arial,Helvetica,sans-serif;color:var(--mg-ink);background:var(--mg-light);min-height:100vh}#mgufh2-app *{box-sizing:border-box}#mgufh2-app [hidden]{display:none!important}#mgufh2-app button,#mgufh2-app input,#mgufh2-app select,#mgufh2-app textarea{font:inherit}#mgufh2-app button,#mgufh2-app a{ -webkit-tap-highlight-color:transparent}#mgufh2-app a{color:var(--mg-teal)}#mgufh2-app button{cursor:pointer}#mgufh2-app button:disabled{cursor:not-allowed;opacity:.5}#mgufh2-app :focus-visible{outline:3px solid #f2a76e;outline-offset:3px}#mgufh2-app h1,#mgufh2-app h2,#mgufh2-app h3,#mgufh2-app p{margin-top:0}#mgufh2-app h1{font-size:clamp(29px,4vw,42px);line-height:1.15;color:var(--mg-navy);letter-spacing:-1px;margin-bottom:15px}#mgufh2-app h2{color:var(--mg-navy);font-size:22px;line-height:1.3}#mgufh2-app h3{font-size:16px;line-height:1.35;color:var(--mg-navy)}#mgufh2-app main{max-width:1260px;margin:0 auto;padding:0 28px 55px}.mgufh2-header{max-width:1260px;margin:auto;min-height:104px;padding:24px 28px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--mg-line)}.mgufh2-logo{font-size:24px;font-weight:800;line-height:1.1;letter-spacing:-.8px;color:var(--mg-navy)!important;text-decoration:none;white-space:nowrap}.mgufh2-logo span{color:var(--mg-orange)}.mgufh2-logo small{display:block;font-size:9px;letter-spacing:2px;font-weight:600;margin-top:8px}.mgufh2-header nav{display:flex;gap:23px;align-items:center;flex-wrap:wrap}.mgufh2-header nav a{font-size:13px;font-weight:700;color:var(--mg-navy)!important;text-decoration:none;padding:7px 0;border-bottom:2px solid transparent}.mgufh2-header nav a[aria-current=page]{color:var(--mg-teal)!important;border-color:var(--mg-orange)}.mgufh2-hero{padding:42px 0 26px;display:flex;justify-content:space-between;align-items:center;gap:30px}.mgufh2-eyebrow{font-size:10px;font-weight:700;letter-spacing:2.4px;color:var(--mg-teal);display:block;margin-bottom:13px}.mgufh2-hero p{font-size:16px;color:var(--mg-muted);max-width:700px;margin-bottom:0}.mgufh2-button{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--mg-teal);border-radius:7px;background:var(--mg-teal);color:#fff!important;font-weight:700;font-size:13px;text-decoration:none;line-height:1.25;min-height:43px;padding:11px 18px;text-align:center}.mgufh2-button:hover{background:#066b72;border-color:#066b72}.mgufh2-secondary{background:#fff;color:var(--mg-navy)!important;border-color:#bfd0da}.mgufh2-secondary:hover{background:#eaf1f5;border-color:#a5bdcb}.mgufh2-text-link,.mgufh2-text-button{border:0;background:transparent;color:var(--mg-teal)!important;font-size:13px;font-weight:700;text-decoration:underline;padding:6px 0}.mgufh2-rates{display:flex;flex-wrap:wrap;gap:10px 28px;align-items:center;padding:14px 19px;border:1px solid var(--mg-line);border-left:3px solid var(--mg-orange);border-radius:6px;background:#fff;font-size:13px;margin-bottom:24px}.mgufh2-rates small{margin-left:auto;font-size:11px;color:var(--mg-muted)}.mgufh2-rates b{color:var(--mg-navy);font-variant-numeric:tabular-nums}.mgufh2-filters{display:grid;grid-template-columns:1.5fr 1fr 1fr auto;gap:15px;align-items:end;background:#fff;border:1px solid var(--mg-line);border-radius:9px;padding:20px}.mgufh2-filters label,.mgufh2-grid label,.mgufh2-picker label,.mgufh2-flat-heading label,.mgufh2-settings label{font-size:12px;color:var(--mg-muted);font-weight:700;display:flex;flex-direction:column;gap:6px}#mgufh2-app input,#mgufh2-app select,#mgufh2-app textarea{display:block;width:100%;border:1px solid #c8d5dd;border-radius:6px;background:#fff;color:var(--mg-ink);padding:10px 11px;min-height:42px;font-size:14px}#mgufh2-app textarea{resize:vertical}#mgufh2-app select{padding-right:26px}#mgufh2-app input[type=checkbox]{width:18px;min-height:18px;height:18px;accent-color:var(--mg-teal)}.mgufh2-catalog-meta{display:flex;justify-content:space-between;gap:20px;font-size:12px;margin:23px 0 14px;color:var(--mg-muted)}.mgufh2-catalog-meta p{margin:0}.mgufh2-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.mgufh2-product{background:#fff;border:1px solid var(--mg-line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column}.mgufh2-product-photo{display:block;height:180px;width:100%;padding:23px;object-fit:contain;background:#fff}.mgufh2-no-image{display:flex;align-items:center;justify-content:center;color:#8c9ba5;font-size:12px;background:#f7f9fa}.mgufh2-product-body{padding:17px 18px 18px;flex:1;display:flex;flex-direction:column;border-top:1px solid #eef3f5}.mgufh2-brand{font-size:10px;font-weight:700;color:var(--mg-teal);letter-spacing:.6px;margin-bottom:8px}.mgufh2-product h2{font-size:15px;line-height:1.45;margin-bottom:8px}.mgufh2-product p{font-size:11px;line-height:1.4;color:var(--mg-muted);margin-bottom:16px}.mgufh2-product-price{margin-top:auto;display:flex;flex-direction:column;gap:3px}.mgufh2-product-price strong{font-size:20px;line-height:1.3;color:var(--mg-navy);font-variant-numeric:tabular-nums}.mgufh2-product-price span,.mgufh2-tl-reference{font-size:10px;color:var(--mg-muted)}.mgufh2-tl-reference{margin-top:6px}.mgufh2-product-link{font-size:11px;text-decoration:none;margin-top:18px;display:flex;justify-content:space-between;gap:10px;font-weight:700}.mgufh2-more{text-align:center;margin-top:26px}.mgufh2-footnote{font-size:11px;color:var(--mg-muted);margin:30px 0 0;max-width:850px}.mgufh2-empty{padding:35px 0;color:var(--mg-muted);grid-column:1/-1}.mgufh2-section{border:1px solid var(--mg-line);background:#fff;border-radius:10px;padding:26px;margin:22px 0}.mgufh2-section-heading{display:flex;gap:14px;align-items:flex-start;margin-bottom:23px}.mgufh2-section-heading>span{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:8px;background:#edf4f6;color:var(--mg-teal);font-size:11px;font-weight:800}.mgufh2-section-heading h2{font-size:21px;margin-bottom:5px}.mgufh2-section-heading p{font-size:12px;color:var(--mg-muted);margin-bottom:0}.mgufh2-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.mgufh2-wide{grid-column:1/-1}.mgufh2-project-options{grid-template-columns:1fr 1fr 1fr;padding-top:22px;margin-top:23px;border-top:1px solid var(--mg-line)}.mgufh2-check{flex-direction:row!important;align-items:center;gap:9px!important;font-weight:400!important;font-size:13px!important}.mgufh2-flat{border:1px solid var(--mg-line);border-radius:7px;background:#fbfcfd;padding:19px;margin-bottom:17px}.mgufh2-flat-heading{display:grid;grid-template-columns:2fr 1fr auto;gap:16px;align-items:end;margin-bottom:17px}.mgufh2-remove{border:0;background:transparent;color:#a34d39;font-size:11px;padding:8px 0}.mgufh2-room,.mgufh2-room-labels{display:grid;grid-template-columns:2fr 1fr 1.35fr 35px;gap:12px;align-items:center}.mgufh2-room{margin-bottom:11px}.mgufh2-room-labels{font-size:10px;font-weight:700;letter-spacing:.3px;color:var(--mg-muted);margin-bottom:8px}.mgufh2-help{font-size:11px;color:var(--mg-muted);margin:13px 0 0}.mgufh2-control-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.mgufh2-control{display:flex;gap:16px;border:1px solid var(--mg-line);border-radius:8px;padding:16px;min-width:0}.mgufh2-control-photo{width:90px;flex:none;display:flex;align-items:flex-start;justify-content:center;padding-top:8px}.mgufh2-control-photo img,.mgufh2-control-photo .mgufh2-no-image{width:90px;height:90px;object-fit:contain}.mgufh2-control-photo>span{font-size:11px;color:var(--mg-muted)}.mgufh2-control-content{min-width:0;flex:1}.mgufh2-control-content h3{margin-bottom:12px;font-size:14px}.mgufh2-picker{display:grid;grid-template-columns:1fr;gap:9px}.mgufh2-picker label{font-size:10px}.mgufh2-picker select{font-size:12px!important;min-height:37px!important;padding:7px 27px 7px 9px!important}.mgufh2-selected-price{font-size:15px;font-weight:700;color:var(--mg-navy);margin:13px 0 0}.mgufh2-selected-price small{font-size:10px;color:var(--mg-muted);font-weight:400}.mgufh2-manifold-options{grid-column:1/-1;border-top:1px solid var(--mg-line);padding-top:20px;margin-top:4px}.mgufh2-manifold-options>summary{cursor:pointer;color:var(--mg-navy);font-weight:700;font-size:14px;padding-bottom:13px}.mgufh2-manifold-options>.mgufh2-control-grid{margin-top:16px}.mgufh2-notice{padding:14px 17px;margin-bottom:18px;border:1px solid #a9d5d2;background:#effaf7;color:#14644d;border-radius:6px;font-size:13px}.mgufh2-notice.is-error,.mgufh2-missing{background:#fff5ed;border:1px solid #efc7a8;color:#884f27}.mgufh2-missing{padding:15px 18px;border-radius:6px;font-size:12px;margin-bottom:20px}.mgufh2-missing ul{margin:8px 0 0;padding-left:18px}.mgufh2-loading{font-size:13px;color:var(--mg-teal);padding:12px 0}.mgufh2-project-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:23px}.mgufh2-project-stats span{font-size:11px;color:var(--mg-muted);border:1px solid var(--mg-line);border-radius:6px;padding:11px 16px}.mgufh2-project-stats strong{display:block;font-size:20px;color:var(--mg-navy)}.mgufh2-table-scroll{overflow:auto}.mgufh2-lines{width:100%;border-collapse:collapse;font-size:12px}.mgufh2-lines th{text-align:left;padding:12px 10px;background:#edf3f6;border-bottom:2px solid #cedce4;color:var(--mg-navy);font-size:11px;font-weight:700}.mgufh2-lines th small{font-size:9px;font-weight:400}.mgufh2-lines td{padding:13px 10px;border-bottom:1px solid #e5edf1;vertical-align:top}.mgufh2-lines td:first-child{width:48%}.mgufh2-lines td strong{font-weight:600}.mgufh2-lines td small{display:block;font-size:10px;color:var(--mg-muted);margin-top:4px}.mgufh2-lines td:not(:first-child),.mgufh2-lines th:not(:first-child){text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.mgufh2-total-block{margin:22px 0 24px auto;max-width:450px}.mgufh2-total-block>div{display:flex;justify-content:space-between;gap:20px;padding:9px 0;font-size:13px}.mgufh2-total-block .mgufh2-grand{background:var(--mg-navy);color:#fff;padding:16px 18px;border-radius:7px;margin-top:9px;align-items:center}.mgufh2-grand span{font-size:11px;font-weight:700}.mgufh2-grand strong{font-size:22px;font-variant-numeric:tabular-nums}.mgufh2-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px}.mgufh2-settings{background:#fff;border:1px solid var(--mg-line);border-radius:7px;padding:14px 18px;font-size:12px}.mgufh2-settings summary{cursor:pointer;color:var(--mg-navy);font-weight:700}.mgufh2-settings>div{display:flex;align-items:end;gap:16px;margin-top:16px}.mgufh2-settings label{max-width:170px}.mgufh2-settings p{color:var(--mg-muted);margin-bottom:0}.mgufh2-archive-heading{display:flex;justify-content:space-between;align-items:center}.mgufh2-archive-list{margin:15px 0}.mgufh2-archive-list>button{width:100%;display:flex;justify-content:space-between;gap:20px;align-items:center;border:0;border-top:1px solid var(--mg-line);padding:15px 0;background:transparent;text-align:left;color:var(--mg-ink)}.mgufh2-archive-list small{display:block;color:var(--mg-muted);font-size:11px;margin-top:4px}.mgufh2-dialog{border:0;padding:0;max-width:1000px;width:calc(100% - 32px);max-height:94vh;border-radius:10px;box-shadow:0 15px 80px #00182955}.mgufh2-dialog::backdrop{background:#0d293cbb}.mgufh2-dialog-tools{display:flex;gap:12px;align-items:center;position:sticky;top:0;background:#edf3f6;padding:14px 20px;z-index:2}.mgufh2-dialog-tools strong{margin-right:auto;font-size:13px}.mgufh2-paper{background:#fff;padding:40px;color:#263c4b}.mgufh2-paper-header{display:flex;justify-content:space-between;align-items:start;border-bottom:3px solid #15354c;padding-bottom:22px;margin-bottom:24px;gap:20px}.mgufh2-paper-header>div:last-child{text-align:right;font-size:12px}.mgufh2-paper-header small{display:block;font-size:11px;margin-top:6px}.mgufh2-paper-customer{font-size:12px;margin-bottom:24px}.mgufh2-paper-customer>strong,.mgufh2-paper-customer>span{display:block;margin-bottom:5px}.mgufh2-paper-customer p{margin-top:6px}.mgufh2-paper-scope{font-size:10px;margin:18px 0;color:#61727f}.mgufh2-proposal-notes{font-size:12px;padding-top:15px;border-top:1px solid #dce5eb}.mgufh2-proposal-notes h3{font-size:13px}.mgufh2-signatures{display:flex;justify-content:space-between;gap:40px;border-top:1px solid #dce5eb;padding-top:30px;margin-top:30px;font-size:11px}.mgufh2-signatures>div{width:40%}.mgufh2-signatures strong{display:block;color:#15354c;font-size:12px;padding-top:9px}.mgufh2-paper footer{font-size:10px;text-align:center;margin-top:40px;color:#61727f}.mgufh2-error-text{color:#a44730!important}
@media(max-width:1050px){.mgufh2-products{grid-template-columns:repeat(3,minmax(0,1fr))}.mgufh2-hero{align-items:start}.mgufh2-hero>.mgufh2-button{max-width:210px}.mgufh2-control-photo{width:65px}.mgufh2-control-photo img,.mgufh2-control-photo .mgufh2-no-image{width:65px;height:75px}.mgufh2-control{gap:12px;padding:13px}}
@media(max-width:760px){#mgufh2-app main{padding:0 16px 35px}.mgufh2-header{padding:20px 16px;align-items:start;flex-direction:column;gap:18px;min-height:0}.mgufh2-header nav{gap:19px}.mgufh2-hero{padding:30px 0 22px;flex-direction:column;gap:18px}.mgufh2-hero>.mgufh2-button{max-width:none}.mgufh2-hero p{font-size:14px}.mgufh2-rates{gap:8px 20px;padding:12px 14px}.mgufh2-rates small{flex-basis:100%;margin:0}.mgufh2-filters{grid-template-columns:1fr 1fr;padding:15px}.mgufh2-filters>label:first-child{grid-column:1/-1}.mgufh2-filters>button{grid-column:1/-1}.mgufh2-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.mgufh2-product-photo{height:150px;padding:18px}.mgufh2-product-body{padding:14px}.mgufh2-product h2{font-size:13px}.mgufh2-product-price strong{font-size:17px}.mgufh2-section{padding:20px 16px}.mgufh2-section-heading h2{font-size:19px}.mgufh2-grid{gap:14px}.mgufh2-project-options{grid-template-columns:1fr 1fr}.mgufh2-project-options>.mgufh2-check{grid-column:1/-1}.mgufh2-flat{padding:14px}.mgufh2-flat-heading{grid-template-columns:1.6fr 1fr;gap:12px}.mgufh2-flat-heading>.mgufh2-remove{grid-column:1/-1;text-align:right;padding:0}.mgufh2-room,.mgufh2-room-labels{grid-template-columns:1.4fr .8fr 1.2fr 26px;gap:7px}#mgufh2-app .mgufh2-room input,#mgufh2-app .mgufh2-room select{font-size:12px;padding:9px 7px;min-height:38px}.mgufh2-control-grid{grid-template-columns:1fr}.mgufh2-control-photo{width:70px}.mgufh2-control-photo img,.mgufh2-control-photo .mgufh2-no-image{width:70px;height:80px}.mgufh2-project-stats{grid-template-columns:1fr 1fr;gap:9px}.mgufh2-grand strong{font-size:19px}.mgufh2-actions{justify-content:stretch}.mgufh2-actions>.mgufh2-button{flex:1}.mgufh2-settings>div{flex-wrap:wrap}.mgufh2-settings p{flex-basis:100%}.mgufh2-dialog{width:calc(100% - 16px)}.mgufh2-dialog-tools{padding:11px;gap:8px}.mgufh2-dialog-tools strong{display:none}.mgufh2-paper{padding:24px 17px}.mgufh2-paper .mgufh2-logo{font-size:20px}.mgufh2-lines{font-size:11px}.mgufh2-lines td,.mgufh2-lines th{padding:11px 8px}}
@media(max-width:420px){.mgufh2-products{grid-template-columns:1fr}.mgufh2-product{display:grid;grid-template-columns:110px 1fr}.mgufh2-product-photo{height:160px;padding:14px}.mgufh2-product-body{border-top:0;border-left:1px solid #eef3f5}.mgufh2-product h2{font-size:13px}.mgufh2-product-link{font-size:10px;margin-top:12px}.mgufh2-grid{grid-template-columns:1fr}.mgufh2-wide{grid-column:auto}.mgufh2-project-options{grid-template-columns:1fr}.mgufh2-project-options>.mgufh2-check{grid-column:auto}.mgufh2-room,.mgufh2-room-labels{grid-template-columns:1.2fr .8fr 1fr 24px;gap:5px}.mgufh2-room select{max-width:110px}.mgufh2-header nav a{font-size:12px}.mgufh2-header nav{gap:15px}}
#mgufh2-print-root{display:none;--mg-navy:#15354c;--mg-teal:#087f87;--mg-orange:#eb7c2a;--mg-ink:#263c4b;--mg-muted:#61727f;--mg-line:#dce5eb;--mg-light:#f3f7f9}#mgufh2-print-root *{box-sizing:border-box}
@media print{@page{size:A4;margin:12mm}body.mgufh2-printing{margin:0!important;background:#fff!important}body.mgufh2-printing>*{display:none!important}body.mgufh2-printing>#mgufh2-print-root{display:block!important;position:static;width:100%;margin:0;padding:0;background:#fff;color:#263c4b}body.mgufh2-printing .mgufh2-paper{padding:0;font:10px/1.4 Arial,sans-serif}body.mgufh2-printing .mgufh2-table-scroll{overflow:visible}body.mgufh2-printing .mgufh2-lines{font-size:10px}body.mgufh2-printing .mgufh2-lines td,body.mgufh2-printing .mgufh2-lines th{padding:7px 6px}body.mgufh2-printing .mgufh2-lines thead{display:table-header-group}body.mgufh2-printing .mgufh2-lines tr{break-inside:avoid}body.mgufh2-printing .mgufh2-total-block,body.mgufh2-printing .mgufh2-signatures{break-inside:avoid}body.mgufh2-printing .mgufh2-rates{padding:9px 12px;margin-bottom:14px}body.mgufh2-printing .mgufh2-paper-header{margin-bottom:17px;padding-bottom:15px}body.mgufh2-printing .mgufh2-paper footer{margin-top:24px}body.mgufh2-printing dialog::backdrop{display:none}}

/* Labeled room fields with comfortable touch targets on phones. */
.mgufh2-room>label{min-width:0}.mgufh2-mobile-label{display:none}
@media(max-width:760px){
 #mgufh2-app .mgufh2-flat{padding:12px}
 #mgufh2-app .mgufh2-flat-heading{grid-template-columns:minmax(0,1fr);gap:12px}
 #mgufh2-app .mgufh2-flat-heading>label{min-width:0}
 #mgufh2-app .mgufh2-flat-heading input{font-size:16px;min-height:48px}
 #mgufh2-app .mgufh2-room-labels{display:none}
 #mgufh2-app .mgufh2-room{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:12px;margin:0 0 14px;padding:14px 10px;border:1px solid #d6e3e9;border-radius:10px;background:#fff}
 #mgufh2-app .mgufh2-room>label{display:flex;flex-direction:column;gap:6px;min-width:0}
 #mgufh2-app .mgufh2-room-name{grid-column:1/-1}
 #mgufh2-app .mgufh2-mobile-label{display:block;font-size:12px;font-weight:700;color:var(--mg-muted)}
 #mgufh2-app .mgufh2-room input,#mgufh2-app .mgufh2-room select{width:100%;max-width:none;min-width:0;min-height:48px;font-size:16px;padding:11px 9px}
 #mgufh2-app .mgufh2-room input[data-room-field="area"]{font-weight:700;border-color:#64aab0;background:#f3fbfb}
 #mgufh2-app .mgufh2-room>.mgufh2-remove{grid-column:1/-1;justify-self:end;min-width:80px;min-height:44px;padding:8px 12px;border:1px solid #ead4cc;border-radius:7px;font-size:14px}
 #mgufh2-app .mgufh2-flat-heading>.mgufh2-remove{min-height:44px;padding:8px 12px;font-size:14px}
 #mgufh2-app [data-action="add-room"],#mgufh2-app [data-action="add-flat"]{min-height:48px;padding:10px 14px;font-size:15px}
}

@media(max-width:480px){#mgufh2-app main{padding-right:12px;padding-left:12px}#mgufh2-app .mgufh2-section{padding:18px 12px}#mgufh2-app .mgufh2-flat{padding:10px}#mgufh2-app .mgufh2-room{grid-template-columns:minmax(0,1fr)}#mgufh2-app .mgufh2-room>label{grid-column:1/-1}}

/* Mobile quote rows: quantity, unit price and amount remain visible together. */
@media screen and (max-width:600px) {
  #mgufh2-app #mgufh2-lines .mgufh2-table-scroll { overflow:visible; min-width:0; }
  #mgufh2-app #mgufh2-lines .mgufh2-lines,
  #mgufh2-app #mgufh2-lines .mgufh2-lines tbody { display:block; width:100%; min-width:0; }
  #mgufh2-app #mgufh2-lines .mgufh2-lines thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; border:0; }
  #mgufh2-app #mgufh2-lines .mgufh2-lines tbody tr { display:block; min-width:0; margin-bottom:14px; padding:10px 12px; border:1px solid #dce5eb; border-radius:9px; background:#fff; }
  #mgufh2-app #mgufh2-lines .mgufh2-lines td { width:auto; min-width:0; padding:9px 0; font-size:14px; line-height:1.45; white-space:normal; overflow-wrap:anywhere; }
  #mgufh2-app #mgufh2-lines .mgufh2-lines td:first-child { display:block; width:auto; text-align:left; padding-top:2px; padding-bottom:12px; }
  #mgufh2-app #mgufh2-lines .mgufh2-lines td:first-child strong { font-size:14px; line-height:1.45; }
  #mgufh2-app #mgufh2-lines .mgufh2-lines td small { font-size:12px; line-height:1.45; }
  #mgufh2-app #mgufh2-lines .mgufh2-lines td:not(:first-child) { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; text-align:right; white-space:normal; font-variant-numeric:tabular-nums; }
  #mgufh2-app #mgufh2-lines .mgufh2-lines td:not(:first-child)::before { color:#61727f; font-size:12px; font-weight:400; text-align:left; font-variant-numeric:normal; }
  #mgufh2-app #mgufh2-lines .mgufh2-lines td:nth-child(2)::before { content:"Miktar"; }
  #mgufh2-app #mgufh2-lines .mgufh2-lines td:nth-child(3)::before { content:"Birim fiyat · KDV dahil"; }
  #mgufh2-app #mgufh2-lines .mgufh2-lines td:nth-child(4)::before { content:"Tutar · KDV dahil"; }
  #mgufh2-app #mgufh2-lines .mgufh2-lines td:last-child { border-bottom:0; font-weight:700; }
}

/* Compact, horizontal material sheet: the table scrolls, not the whole page. */
#mgufh2-controls,#mgufh2-manifold-choice,#mgufh2-manifold-prices,.mgufh2-material-details,#mgufh2-lines{min-width:0;max-width:100%;box-sizing:border-box}
.mgufh2-sheet-scroll{width:100%;max-width:100%;overflow:auto;border:1px solid #bdd2dc;border-radius:5px;background:#fff}
.mgufh2-sheet-lines{width:100%;min-width:680px;border-collapse:collapse;table-layout:fixed;font:11px/1.35 Arial,sans-serif;color:#244858}
.mgufh2-sheet-lines th,.mgufh2-sheet-lines td{box-sizing:border-box;border:1px solid #ccdde5;padding:5px 6px;vertical-align:middle;overflow-wrap:anywhere}
.mgufh2-sheet-lines thead th{background:#e9f2f6;color:#175369;font-size:10px;font-weight:700;line-height:1.3;text-align:left}
.mgufh2-sheet-lines tbody tr:nth-child(even){background:#f6fafc}
.mgufh2-sheet-lines .mgufh2-sheet-number{text-align:center;color:#668392}
.mgufh2-sheet-lines .mgufh2-sheet-name{font-weight:600;text-align:left;white-space:normal}
.mgufh2-sheet-lines .mgufh2-sheet-amount{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.mgufh2-sheet-lines .mgufh2-sheet-total{font-weight:700;color:#134e65}
.mgufh2-sheet-lines small{display:block;font-size:9px;color:#6b8592;line-height:1.35;margin-top:3px}
.mgufh2-sheet-lines tr[data-excluded=true]{color:#84949b;background:#f5f5f5}
.mgufh2-material-sheet h3{font-size:12px;margin:10px 0 7px;color:#174d63}
.mgufh2-sheet-system{font-size:11px;line-height:1.5;margin:10px 0;padding:8px 10px;background:#eef6f8;border:1px solid #d3e3e9}
.mgufh2-material-details>h3{font-size:13px;margin-bottom:8px}
.mgufh2-sheet-scroll:focus-visible{outline:2px solid #168197;outline-offset:2px}
@media screen and (max-width:700px){.mgufh2-sheet-scroll:after{content:'Tabloyu yana kaydırabilirsiniz';display:block;position:sticky;left:0;width:100%;box-sizing:border-box;padding:5px 8px;color:#5c7987;font:10px/1.4 Arial;background:#f3f8fa}}
@media print{
 .mgufh2-sheet-scroll{overflow:visible!important;border:0!important;border-radius:0!important}
 .mgufh2-sheet-lines{width:100%!important;min-width:0!important;font-size:8px!important;line-height:1.3!important;table-layout:fixed!important}
 .mgufh2-sheet-lines th,.mgufh2-sheet-lines td{padding:4px 5px!important;border:1px solid #bdcfd8!important}
 .mgufh2-sheet-lines thead{display:table-header-group!important}
 .mgufh2-sheet-lines thead th{font-size:7.5px!important;background:#e8f1f5!important;print-color-adjust:exact}
 .mgufh2-sheet-lines tbody tr{break-inside:avoid}
 .mgufh2-sheet-lines tbody tr:nth-child(even){background:#f4f8fa!important;print-color-adjust:exact}
 .mgufh2-sheet-lines small{font-size:7px!important}
 .mgufh2-sheet-scroll:after{display:none!important}
 .mgufh2-sheet-system{font-size:9px!important;padding:5px 7px!important}
}

/* Dense Excel-style sheets, same grid in preparation and PDF. */
.mgufh2-sheet-lines{font-size:10px;line-height:1.2}
.mgufh2-sheet-lines th,.mgufh2-sheet-lines td{padding:3px 5px;border-color:#a9c1cd}
.mgufh2-sheet-lines thead th{font-size:9px;line-height:1.2;background:#e5eef3}
.mgufh2-sheet-lines small{font-size:8px;margin-top:1px}
.mgufh2-proposal-rooms{margin:8px 0}
.mgufh2-proposal-rooms h3{font:700 10px/1.3 Arial;color:#174d63;margin:5px 0}
.mgufh2-room-sheet-scroll{max-width:100%;overflow:auto;margin:4px 0}
.mgufh2-room-sheet{width:auto;border-collapse:collapse;table-layout:fixed;font:9px/1.2 Arial;color:#244858}
.mgufh2-room-sheet th,.mgufh2-room-sheet td{min-width:65px;border:1px solid #9eb7c2;padding:3px 5px;white-space:normal;text-align:right}
.mgufh2-room-sheet thead th{background:#e5eef3;text-align:center;font-weight:700}
.mgufh2-room-sheet :is(th,td):first-child{min-width:20px;text-align:center}
.mgufh2-room-sheet :is(th,td):nth-child(2){min-width:105px;text-align:left}
@media print{
 .mgufh2-sheet-lines{font-size:7.25px!important;line-height:1.18!important}
 .mgufh2-sheet-lines th,.mgufh2-sheet-lines td{padding:2.5px 4px!important}
 .mgufh2-sheet-lines thead th{font-size:7px!important;line-height:1.15!important}
 .mgufh2-room-sheet-scroll{overflow:visible!important}
 .mgufh2-room-sheet{font-size:7.5px!important}
 .mgufh2-room-sheet th,.mgufh2-room-sheet td{padding:2.5px 4px!important;min-width:47px!important}
 .mgufh2-room-sheet :is(th,td):first-child{min-width:15px!important}
 .mgufh2-room-sheet :is(th,td):nth-child(2){min-width:85px!important}
}
