/* DISAYM Estudio — bricks visual layer. Calculation engine unchanged. */
.calc-page .brick-area .section-heading{max-width:920px}.calc-page .brick-area .section-heading h2{font-size:clamp(32px,4.7vw,48px);line-height:1.1;color:#183b29;letter-spacing:-.035em}.calc-page .brick-area .section-heading h2 em{font-style:normal;color:#64896d}
.calc-page .brick-area .brick-layout{grid-template-columns:minmax(270px,.72fr) minmax(0,1.28fr);align-items:start;gap:18px}
.calc-page .brick-area .brick-form{position:sticky;top:78px}
.calc-page .brick-area .brick-result{min-width:0}
.br-studio-heading{display:flex;gap:14px;align-items:center;justify-content:space-between}.br-studio-heading h3{font-size:clamp(20px,2.7vw,26px);margin:6px 0 15px}.br-studio-heading .eyebrow{margin:0;font-size:10px}
.br-studio-live{display:flex;align-items:center;gap:7px;font-size:10px;color:#577962;white-space:nowrap}.br-studio-live span{width:6px;height:6px;border-radius:50%;background:#4eac6d}
.br-studio{overflow:hidden;border:1px solid #d8e8dc;border-radius:17px;background:#f9fbf8}
.br-studio-tabs{display:flex;gap:4px;overflow-x:auto;padding:8px;background:#edf3ed}.br-studio-tabs button{flex:1;white-space:nowrap;background:transparent;color:#4b6b58;border:0;border-radius:8px;padding:10px 9px;font-size:12px;font-weight:700;cursor:pointer}.br-studio-tabs button[aria-pressed=true]{background:#fff;color:#1b5e3c;box-shadow:0 2px 8px #1c4f3120}.br-studio-tabs button:focus-visible{outline:2px solid #42875a;outline-offset:1px}
.br-studio-stage{background:#d6dfd7;min-width:0}.br-studio-stage canvas{display:block;width:100%;height:auto;aspect-ratio:30 / 19;object-fit:contain;touch-action:auto}.br-studio-stage.br-draggable canvas{cursor:grab;touch-action:none}.br-studio-stage.br-dragging canvas{cursor:grabbing}
.br-studio-caption{display:flex;gap:10px;justify-content:space-between;align-items:center;padding:9px 12px;background:#f8fbf9;font-size:11px;color:#637668}.br-studio-caption button{border:0;background:transparent;color:#217145;cursor:pointer;font-weight:750;font-size:11px}
.br-photo-panel{padding:15px;border-top:1px solid #dce8df}.br-photo-panel[hidden]{display:none!important}
.br-upload{display:block;border:1px dashed #a0c8ae;border-radius:10px;background:#fff;padding:10px;font-size:12px;font-weight:750;color:#276a42;cursor:pointer}.br-upload input{display:block;margin-top:7px;max-width:100%;font-size:12px}
.br-photo-reset{border:0;background:transparent;color:#7b4e40;font-size:11px;margin-top:8px;cursor:pointer}.br-photo-panel p{font-size:11px;line-height:1.5;color:#677668}
.br-photo-sliders{display:grid;grid-template-columns:1fr 1fr;gap:14px}.br-photo-sliders label{display:block;font-size:11px;font-weight:700;color:#375d44}.br-photo-sliders input{width:100%;accent-color:#216a40;margin-top:7px}
.br-quantities-heading{margin-top:24px}.br-quantities-heading h3{margin-bottom:15px}
.br-tech-guidance{border:1px solid #cfe3d5;background:linear-gradient(130deg,#f4faf5,#fff);border-radius:15px;padding:17px;margin-top:20px}.br-tech-guidance h4{font-size:18px;color:#214c33;margin:7px 0 15px}.br-tech-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.br-tech-grid>div{border-top:1px solid #d5e6d8;padding-top:10px}.br-tech-grid strong{color:#1d5134;font-size:12px}.br-tech-grid p,.br-tech-source{font-size:11px;line-height:1.58;color:#526d5b;margin:5px 0 12px}.br-tech-source a{color:#1f7344}
@media(max-width:1030px){.calc-page .brick-area .brick-layout{grid-template-columns:1fr}.calc-page .brick-area .brick-form{position:static}}
@media(max-width:580px){.br-studio-live{display:none}.br-studio-tabs button{font-size:11px}.br-tech-grid{grid-template-columns:1fr}.br-photo-sliders{grid-template-columns:1fr}.br-studio-caption{font-size:10px}.calc-page .brick-area .brick-result{padding:13px}}
@media print{.br-studio,.br-tech-guidance{display:none!important}.dsy-report-sketch img{max-width:100%;width:100%;height:auto;max-height:205px;object-fit:contain;display:block}}

/* Action hierarchy and accessible secondary PDF control */
.calc-page .brick-area .actions button.secondary{background:#f4faf5!important;color:#18583a!important;border:1px solid #a6ceb1!important}
.calc-page .brick-area .actions button.secondary:hover{background:#e4f4e9!important}
.calc-page .brick-area .actions button:focus-visible{outline:3px solid #5eac72;outline-offset:2px}
.calc-page .brick-area .section-heading{margin-top:6px}
@media print{.dsy-report-sketch img{max-width:100%!important;height:auto!important;max-height:230px!important;object-fit:contain!important;display:block}}

/* Shared commercial hierarchy: same principle as WPC, Wallpanel and Arkodeck. */
.calc-page .brick-area .actions.br-commercial-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-top:18px}
.calc-page .brick-area .actions.br-commercial-actions>button.br-primary-quote{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;text-align:left;background:#194d35!important;color:#fff!important;border:1px solid #194d35!important;border-radius:10px;padding:14px 19px;font-size:15px;font-weight:750}
.calc-page .brick-area .actions.br-commercial-actions>button.br-primary-quote:hover{background:#123b2a!important}
.calc-page .brick-area .actions.br-commercial-actions .br-secondary-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;min-height:36px}
.calc-page .brick-area .actions.br-commercial-actions .br-secondary-actions button{background:transparent!important;color:#42634f!important;font-size:12px!important;font-weight:600!important;border:1px solid transparent!important;padding:8px 11px!important}
.calc-page .brick-area .actions.br-commercial-actions .br-secondary-actions button:hover{background:#eef6f0!important;border-color:#cee1d2!important}
.calc-page .brick-area .actions.br-commercial-actions>.dsy-project-add-button{align-self:flex-end;min-height:42px!important;padding:10px 15px!important;background:#edf7f0!important;border:1px solid #a4d1b1!important;color:#1d633b!important;font-size:12px!important}
.calc-page .brick-area .actions.br-commercial-actions button:disabled{opacity:.5!important;cursor:not-allowed!important}
.br-openings{background:#f7faf7;border:1px solid #d9e8dc;border-radius:13px;padding:13px;margin:10px 0 19px}
.calc-page .brick-area .brick-form .br-openings-toggle{display:flex;flex-direction:row;align-items:flex-start;gap:11px;margin:0;cursor:pointer}
.br-openings-toggle input{width:17px!important;height:17px!important;min-height:17px!important;flex:0 0 17px;accent-color:#216d42;margin:2px 0 0}
.br-openings-toggle span{display:flex;flex-direction:column;gap:4px}
.br-openings-toggle strong{font-size:13px;color:#244d36}
.br-openings-toggle small{font-size:11px;line-height:1.5;font-weight:400;color:#617866}
#br-openings-panel[hidden]{display:none!important}
.br-openings-head{display:flex;justify-content:space-between;align-items:center;gap:9px;margin:14px 0 10px}
.br-openings-head strong{font-size:12px;color:#224a34}
.br-openings-head button,.br-remove-opening{background:#fff;color:#19623d;border:1px solid #bddbc7;border-radius:8px;padding:8px 9px;font-size:11px;cursor:pointer;font-weight:700}
.br-opening-card{background:#fff;border:1px solid #d4e4d8;border-radius:10px;padding:11px;margin:9px 0}
.br-opening-card-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:11px}.br-opening-card-title strong{color:#214d35;font-size:12px}
.br-remove-opening{color:#9b3a3a;border-color:#e7d4d4}
.br-opening-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.calc-page .brick-area .brick-form .br-opening-input{margin:0;font-size:11px;min-width:0}
.calc-page .brick-area .brick-form .br-opening-input input,.calc-page .brick-area .brick-form .br-opening-input select{min-height:37px;padding:7px 9px;font-size:12px}
.br-openings-summary{font-size:12px;font-weight:750;line-height:1.5;color:#245b3a;margin:10px 0 6px}
@media(max-width:580px){.calc-page .brick-area .actions.br-commercial-actions .br-secondary-actions{justify-content:stretch}.calc-page .brick-area .actions.br-commercial-actions .br-secondary-actions button{flex:1}.calc-page .brick-area .actions.br-commercial-actions>.dsy-project-add-button{align-self:stretch}.br-opening-fields{gap:7px}.br-openings{padding:10px}}

.br-openings-add-actions{display:flex;flex-wrap:wrap;gap:6px}.br-openings-head{flex-wrap:wrap}.br-openings-add-actions button{white-space:nowrap}@media(max-width:580px){.br-openings-head{align-items:flex-start;flex-direction:column}.br-openings-add-actions{width:100%}.br-openings-add-actions button{flex:1}}

/* Keep the calculator aligned while complex opening cards expand. */
.calc-page .brick-area .brick-form{position:static!important;top:auto!important}

/* Compact a facade report containing multiple openings: avoid a footer-only second page. */
@media print{
  @page{size:A4;margin:11mm 13mm 12mm}
  .brick-studio-page.dsy-report-print-mode .dsy-report-heading{margin-bottom:8px;padding-bottom:7px}
  .brick-studio-page.dsy-report-print-mode .dsy-report-band{margin-bottom:10px;padding:10px 14px}
  .brick-studio-page.dsy-report-print-mode .dsy-report h2{margin:8px 0 4px}
  .brick-studio-page.dsy-report-print-mode .dsy-report-metric{padding:8px;min-height:42px}
  .brick-studio-page.dsy-report-print-mode .dsy-report-sketch{padding:5px}
  .brick-studio-page.dsy-report-print-mode .dsy-report-sketch img{max-height:160px!important}
  .brick-studio-page.dsy-report-print-mode .dsy-report-table th,.brick-studio-page.dsy-report-print-mode .dsy-report-table td{padding:3px 6px}
  .brick-studio-page.dsy-report-print-mode .dsy-report-footer{margin-top:7px;padding-top:5px}
  .brick-studio-page.dsy-report-print-mode .dsy-report>p{line-height:1.4;margin:5px 0}
}
