/* Quote Manager 3.0.31 screen layout. Scoped to drawing requests. */
#sdrApp {--navy:#233658;--mid-gray:#b3b2b2;--muted:#667085;--line:#b3b2b2;--card:#fff;}
#sdrApp .sdr-layout {display:grid;grid-template-columns:minmax(600px,1.18fr) minmax(430px,.82fr);gap:18px;align-items:start;margin-top:18px;}
#sdrApp .sdr-form-card,#sdrApp .sdr-preview {min-width:0;background:#fff;border:1px solid #b3b2b2;border-radius:16px;box-shadow:0 10px 28px rgba(16,24,40,.08);}
#sdrApp .sdr-form-card>.panel {border:0;border-radius:0;box-shadow:none;margin:0;padding:18px;border-bottom:1px solid #b3b2b2;}
#sdrApp .sdr-form-card>.panel:first-child {border-radius:16px 16px 0 0;}
#sdrApp .sdr-form-card>.panel>h2,#sdrApp .sdr-form-card>.panel>.section-head {margin:-18px -18px 16px;padding:10px 18px;border-radius:8px 8px 0 0;}
#sdrApp .sdr-form-card #openingList {padding:0;}
#sdrApp .sdr-form-card #openingList>.panel {padding:18px;margin:0;border:0;border-radius:0;box-shadow:none;border-bottom:1px solid #b3b2b2;}
#sdrApp .sdr-form-card #openingList>.panel>.section-head {margin:-18px -18px 16px;border-radius:8px 8px 0 0;}
#sdrApp .sdr-form-card .grid.three {grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;}
#sdrApp .sdr-form-card .opening details {margin:18px 0 0;padding:0 0 18px;}
#sdrApp .sdr-form-card .opening summary {margin:0 0 16px;padding:10px 18px;border-radius:8px 8px 0 0;}
#sdrApp .sdr-form-card .bottom-actions {padding:18px;}
#sdrApp .sdr-preview {position:sticky;top:12px;overflow:hidden;}
#sdrApp .sdr-preview-header {background:#233658;border-top:8px solid #b3b2b2;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:18px 22px;}
#sdrApp .sdr-preview-header img {width:210px;height:auto;max-width:48%;object-fit:contain;}
#sdrApp .sdr-preview-header>div {min-width:0;text-align:right;color:#fff;border-left:1px solid rgba(255,255,255,.35);padding-left:22px;}
#sdrApp .sdr-preview-header span {display:block;font-size:10px;letter-spacing:1.5px;color:#b3b2b2;}
#sdrApp .sdr-preview-header h2 {color:#fff;margin:2px 0;font-size:29px;line-height:1.15;}
#sdrApp .sdr-preview-header small {color:#b3b2b2;font-size:12px;}
#sdrApp #requestPreview {padding:18px 22px;max-height:calc(100vh - 210px);overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;color:#172033;}
#sdrApp #requestPreview .print-head {border-bottom:5px solid #233658;padding-bottom:12px;}
#sdrApp #requestPreview .print-head>span {display:none;}
#sdrApp #requestPreview h1 {font-size:23px;color:#233658;line-height:1.3;margin:0 0 6px;overflow-wrap:anywhere;}
#sdrApp #requestPreview .print-head p {font-size:13px;color:#667085;margin:0;line-height:1.6;}
#sdrApp #requestPreview .print-meta {font-size:12px;padding:10px 0;border-bottom:1px solid #b3b2b2;}
#sdrApp #requestPreview h2 {font-size:16px;color:#233658;background:#f2f2f2;margin:16px 0 8px;padding:8px 10px;border-bottom:1px solid #b3b2b2;line-height:1.4;overflow-wrap:anywhere;}
#sdrApp #requestPreview h3 {font-size:13px;color:#233658;border-bottom:1px solid #b3b2b2;padding-bottom:5px;margin:14px 0 5px;}
#sdrApp #requestPreview p {font-size:12px;line-height:1.6;overflow-wrap:anywhere;}
#sdrApp #requestPreview dl {margin:0;font-size:12px;}
#sdrApp #requestPreview dl div {grid-template-columns:minmax(0,.45fr) minmax(0,.55fr);gap:10px;border-bottom:1px solid #dce3ec;padding:7px 0;}
#sdrApp #requestPreview dl div:nth-child(even) {background:#f2f2f2;}
#sdrApp #requestPreview dt,#sdrApp #requestPreview dd {line-height:1.5;overflow-wrap:anywhere;min-width:0;}
#sdrApp #requestPreview .print-opening {margin:16px 0;}
/* Late theme protection, including controls and dropdown option text. */
@media screen {
 body.sdr-page {background:#eef0f3!important;margin:0!important;}
 #sdrApp {max-width:1500px!important;padding:18px!important;color:#172033!important;}
 #sdrApp .sdr-top {background:#233658!important;border:1px solid #b3b2b2!important;border-bottom:5px solid #b3b2b2!important;border-radius:16px!important;padding:14px 18px!important;}
 #sdrApp .sdr-top h1 {font-size:25px!important;color:#fff!important;margin:0!important;line-height:1.25!important;}
 #sdrApp .sdr-top small {display:block;margin-top:4px;color:#d9e2ea!important;font-size:13px;}
 #sdrApp .panel>h2,#sdrApp .panel>.section-head,#sdrApp .opening summary {background:#233658!important;color:#fff!important;font-size:17px!important;}
 #sdrApp .panel>.section-head h2 {color:#fff!important;}
 #sdrApp input,#sdrApp select,#sdrApp textarea {border:1px solid #b3b2b2!important;border-radius:9px!important;padding:10px!important;color:#344054!important;background:#fff!important;font:400 14px/1.4 Arial,Helvetica,sans-serif!important;margin:0!important;text-transform:none!important;box-shadow:none!important;}
 #sdrApp select,#sdrApp select option {color:#667085!important;font-weight:400!important;}
 #sdrApp label {font-size:12px!important;color:#344054!important;}
 #sdrApp .help {color:#98a2b3!important;font-size:12px!important;font-weight:400!important;}
 #sdrApp button {border-radius:10px!important;padding:11px 14px!important;background:#eef4ff!important;color:#233658!important;font-size:14px!important;line-height:1.3!important;}
 #sdrApp button.primary {background:#233658!important;color:#fff!important;}
 #sdrApp button[data-action="print"] {background:#b3b2b2!important;color:#233658!important;}
 #sdrApp button.danger {background:#fff!important;color:#9b2929!important;}
 #sdrApp button.link {background:transparent!important;border:0!important;padding:0!important;}
 #sdrApp .editor-tools {position:static;padding:10px 14px;border:1px solid #b3b2b2;background:#fff;border-radius:12px;}
}
#sdrApp [hidden],#sdrApp label[hidden] {display:none!important;}
@media(max-width:1100px) {
 #sdrApp .sdr-layout {grid-template-columns:minmax(0,1fr);}
 #sdrApp .sdr-preview {position:static;}
 #sdrApp #requestPreview {max-height:none;overflow:visible;}
 #sdrApp .sdr-top {flex-direction:column;align-items:flex-start;}
}
@media(max-width:700px) {
 #sdrApp {padding:8px!important;}
 #sdrApp .sdr-form-card .grid.three {grid-template-columns:minmax(0,1fr);}
 #sdrApp .sdr-preview-header {padding:14px;gap:12px;}
 #sdrApp .sdr-preview-header img {width:190px;}
 #sdrApp .sdr-preview-header>div {padding-left:12px;}
 #sdrApp .sdr-preview-header h2 {font-size:22px;}
 #sdrApp #requestPreview {padding:14px;}
}
@media print {
 #sdrApp .sdr-preview,#sdrApp .sdr-layout {display:none!important;}
}

/* Heading typography: override tight tracking inherited from WordPress themes. */
#sdrApp h1, #sdrApp h2, #sdrApp h3, #sdrApp h4,
#sdrApp summary, #sdrApp #jobHeading,
#sdrApp h1 *, #sdrApp h2 *, #sdrApp h3 *, #sdrApp h4 *,
#sdrApp summary *, #sdrApp #jobHeading * {
 letter-spacing:.025em!important;
 word-spacing:.05em!important;
 font-kerning:normal!important;
 font-stretch:normal!important;
 font-style:normal!important;
 font-feature-settings:normal!important;
 font-variation-settings:normal!important;
 line-height:1.35!important;
 white-space:normal!important;
}

#sdrApp .opening details .dimensions { margin:0 0 12px; }

/* Compact engineering sheet. Keep the roomy intake form unchanged. */
@media print {
 @page {size:letter portrait;margin:15mm 18mm;}
 html,body,body.sdr-page,#sdrApp {background:#fff!important;}
 #sdrApp #sdrPrint {font-family:Arial,sans-serif;font-size:12.5px;line-height:1.15;color:#233658;}
 #sdrApp #sdrPrint .print-head {border-bottom:2px solid #233658;padding-bottom:5px;}
 #sdrApp #sdrPrint .print-head span {font-size:10px;}
 #sdrApp #sdrPrint .print-head h1 {font-size:23px;margin:4px 0;line-height:1.15!important;}
 #sdrApp #sdrPrint p {font-size:12.5px;line-height:1.2;margin:4px 0;}
 #sdrApp #sdrPrint .print-meta {font-size:12px;line-height:1.2;margin:5px 0;}
 #sdrApp #sdrPrint h2 {font-size:14px;line-height:1.2!important;background:#e5e5e5;border-bottom:1px solid #b3b2b2;padding:4px 6px;margin:7px 0 4px;}
 #sdrApp #sdrPrint h3 {font-size:12.5px;line-height:1.2!important;background:#eee;border-bottom:1px solid #b3b2b2;padding:2px 5px;margin:0 0 2px;}
 #sdrApp #sdrPrint .print-opening {margin:8px 0 0;break-before:page;}
 #sdrApp #sdrPrint .print-opening.first-opening {break-before:auto;}
 #sdrApp #sdrPrint .dimensions {font-size:12.5px;line-height:1.2;padding:5px 6px;margin:4px 0 6px;border:1px solid #b3b2b2;border-radius:0;background:#f2f2f2;}
 #sdrApp #sdrPrint .print-specs {columns:auto;}
 #sdrApp #sdrPrint .print-spec-group {break-inside:avoid;margin:0 0 4px;}
 #sdrApp #sdrPrint dl {margin:0;}
 #sdrApp #sdrPrint dl div {grid-template-columns:34% minmax(0,1fr);column-gap:10px;padding:1px 5px;border-bottom:1px solid #ddd;line-height:1.12;break-inside:avoid;}
 #sdrApp #sdrPrint dt,#sdrApp #sdrPrint dd {font-size:12.5px;line-height:1.12;font-weight:400!important;min-width:0;overflow-wrap:anywhere;}
}

#sdrApp .measurement-input {display:flex;align-items:center;gap:9px;}
#sdrApp .measurement-input input {flex:1;min-width:0;}
#sdrApp .measurement-input>span {font-size:14px;font-weight:400;color:#667085;}
#sdrApp .panel-reference {margin:0 0 14px;}
#sdrApp .panel-reference img {display:block;width:auto;max-width:150px;max-height:120px;object-fit:contain;border:1px solid #b3b2b2;border-radius:5px;}
#sdrApp .panel-reference figcaption {font-size:11px;color:#667085;margin-top:4px;overflow-wrap:anywhere;}
#sdrApp .interior-tools {margin-bottom:14px;}
@media print {#sdrApp #sdrPrint .panel-reference {margin:3px 0;}#sdrApp #sdrPrint .panel-reference img {max-width:75px;max-height:60px;}#sdrApp #sdrPrint .panel-reference figcaption {font-size:9px;}}

#sdrApp .frame-measurements {display:flex;align-items:center;gap:12px;flex-wrap:nowrap;}
#sdrApp .frame-measurements>label {flex:1;min-width:0;}
#sdrApp .frame-measurements>label>span {display:none;}
#sdrApp .frame-measurements .measurement-input {gap:6px;}
#sdrApp .frame-measurements>span {font-size:18px;color:#667085;}

/* Clearer label/value alignment and row tracking in preview and print. */
#sdrApp #requestPreview dl div {grid-template-columns:minmax(0,.38fr) minmax(0,.62fr);column-gap:10px;padding:6px 7px;}
#sdrApp #requestPreview dl div:nth-child(even),#sdrApp #sdrPrint dl div:nth-child(even) {background:#f0f0f0;}
@media print {
 #sdrApp #sdrPrint {-webkit-print-color-adjust:exact;print-color-adjust:exact;}
 #sdrApp #sdrPrint dl div:nth-child(odd) {background:#fff;}
}

#sdrApp #requestPreview dl {font-size:13px;}

/* Matching section bars in the preview and printed request. */
#sdrApp #requestPreview h2,#sdrApp #requestPreview h3,
#sdrApp #sdrPrint h2,#sdrApp #sdrPrint h3 {
 background:#233658!important;color:#fff!important;border-color:#233658!important;
 padding:4px 6px;-webkit-print-color-adjust:exact;print-color-adjust:exact;
}
#sdrApp #requestPreview h2 *,#sdrApp #requestPreview h3 *,
#sdrApp #sdrPrint h2 *,#sdrApp #sdrPrint h3 * {color:#fff!important;}

#sdrApp .photo-section>label {margin-bottom:12px;}
#sdrApp .photo-gallery {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:12px 0;}
#sdrApp .request-photo {margin:0;padding:10px;border:1px solid #b3b2b2;min-width:0;break-inside:avoid;}
#sdrApp .request-photo>img {display:block;width:auto;max-width:100%;height:110px;object-fit:contain;margin:0 auto 8px;}
#sdrApp .request-photo figcaption {font-size:12px;overflow-wrap:anywhere;line-height:1.3;margin-bottom:8px;}
#sdrApp .request-photo label {font-weight:400;margin:8px 0;}
#sdrApp .request-photo .photo-print-choice {display:flex;flex-direction:row;align-items:center;gap:8px;}
#sdrApp .photo-print-choice input {width:auto;}
#sdrApp .milling-reference img {max-width:130px;max-height:110px;}
@media(max-width:560px){#sdrApp .photo-gallery{grid-template-columns:1fr;}}
@media print{
 #sdrApp #sdrPrint .photo-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:4px 0;}
 #sdrApp #sdrPrint .request-photo{padding:5px;}
 #sdrApp #sdrPrint .request-photo>img{height:75px;max-height:75px;}
 #sdrApp #sdrPrint .request-photo figcaption{font-size:10px;line-height:1.2;margin:2px 0;}
 #sdrApp #sdrPrint .milling-reference img{max-width:75px;max-height:60px;}
}

@media print {#sdrApp #sdrPrint .print-photo-group {break-inside:auto;}}

#sdrApp .milling-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px}
#sdrApp .milling-choice{position:relative;display:flex;align-items:center;gap:7px;padding:8px;border:1px solid #b3b2b2;border-radius:5px;cursor:pointer;font-weight:400;text-align:center}
#sdrApp .milling-choice:has(input:checked){border:2px solid #233658;background:#f2f4f7;padding:7px}
#sdrApp .milling-choice input{width:auto;align-self:flex-start}
#sdrApp .milling-choice img{max-width:100%;height:95px;object-fit:contain}
#sdrApp .milling-choice span{font-size:12px}
#sdrApp .custom-milling-upload{padding:12px;border:1px solid #b3b2b2;background:#f8f9fa}
#sdrApp .custom-milling-upload button{margin-top:10px}
@media(max-width:700px){#sdrApp .milling-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

#sdrApp .panel-material-field{display:flex;flex-direction:column;gap:10px}
#sdrApp .opening select:disabled,#sdrApp .opening textarea:disabled{background:#f1f1f1;color:#888;cursor:not-allowed}

/* Drawing request output: compact header and panel-specific references. */
#sdrApp .print-header-line{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:10px;line-height:1.3;}
#sdrApp .print-header-line>span{font-size:10px;letter-spacing:0;font-weight:400;}
#sdrApp .print-requested{text-align:right;max-width:42%;overflow-wrap:anywhere;}
#sdrApp .frame-dimension-bar{display:flex;align-items:baseline;justify-content:space-between;gap:12px;}
#sdrApp .frame-dimension-bar .frame-dimension-value{font-weight:700!important;}
#sdrApp .print-panel-columns{display:grid;grid-template-columns:minmax(0,62fr) minmax(0,38fr);gap:14px;align-items:start;}
#sdrApp .print-panel-data,#sdrApp .print-panel-images{min-width:0;}
#sdrApp .print-panel-images{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;}
#sdrApp .print-panel-images .panel-reference,#sdrApp .print-panel-images .request-photo{margin:0;padding:4px;}
#sdrApp .print-panel-images img{display:block;max-width:100%;width:auto;height:auto;max-height:130px;object-fit:contain;margin:0 auto;}
#sdrApp .print-panel-images figcaption{font-size:10px;line-height:1.2;margin:3px 0;color:#233658;}
#sdrApp #requestPreview .print-panel-data dl div{grid-template-columns:minmax(0,45fr) minmax(0,55fr);gap:8px;}
@media(max-width:560px){#sdrApp #requestPreview .print-header-line{flex-wrap:wrap;}#sdrApp #requestPreview .print-requested{max-width:100%;}#sdrApp #requestPreview .print-panel-columns{grid-template-columns:minmax(0,1fr);}}
@media print{
 #sdrApp #sdrPrint .print-panel-data dl div{grid-template-columns:minmax(0,45fr) minmax(0,55fr);column-gap:8px;}
 #sdrApp #sdrPrint .print-panel-images img{max-width:100%;max-height:115px;height:auto;}
 #sdrApp #sdrPrint .print-panel-images figcaption{font-size:10px;}
 #sdrApp #sdrPrint .print-panel-group{break-inside:auto;}
 #sdrApp #sdrPrint .print-panel-columns{break-inside:auto;}
 #sdrApp #sdrPrint .print-panel-images figure{break-inside:avoid;}
}
#sdrApp .print-panel-images:has(figure:nth-child(2)){grid-template-columns:repeat(2,minmax(0,1fr));}
@media print{
 #sdrApp #sdrPrint .print-panel-images img{max-height:95px;}
 #sdrApp #sdrPrint .print-panel-group{break-inside:avoid;}
}

/* Compact references without changing the editable upload cards. */
#sdrApp #requestPreview .milling-reference img,
#sdrApp #sdrPrint .milling-reference img{max-width:min(130px,100%);max-height:60px;width:auto;height:auto;}
#sdrApp #requestPreview .milling-reference figcaption,
#sdrApp #sdrPrint .milling-reference figcaption{font-size:9px;}
#sdrApp #requestPreview .request-photo,
#sdrApp #sdrPrint .request-photo{border:0;background:transparent;padding:0;}
@media print{
 html,body.sdr-page{height:auto!important;min-height:0!important;margin:0!important;padding:0!important;}
 body.sdr-page> :not(#sdrApp):not(:has(#sdrApp)){display:none!important;}
 body.sdr-page :has(#sdrApp){height:auto!important;min-height:0!important;margin:0!important;padding:0!important;}
 #sdrApp,#sdrApp #sdrPrint{height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;}
 #sdrApp #sdrPrint .print-opening:last-child,
 #sdrApp #sdrPrint .print-spec-group:last-child,
 #sdrApp #sdrPrint .photo-gallery:last-child{margin-bottom:0!important;padding-bottom:0!important;}
 #sdrApp #sdrPrint .print-photo-group .photo-gallery{margin-top:2px;gap:5px;}
 #sdrApp #sdrPrint .request-photo figcaption{margin-bottom:0;}
}

/* One notes section and balanced milling illustrations. */
#sdrApp .frame-dimension-bar{justify-content:flex-start;gap:18px;}
#sdrApp #requestPreview .milling-reference img,
#sdrApp #sdrPrint .milling-reference img{max-width:min(160px,100%);max-height:70px;border:0;border-radius:0;box-shadow:none;}
#sdrApp .print-panel-images{align-self:stretch;align-content:center;}
#sdrApp .print-panel-images .milling-reference{align-self:center;display:flex;align-items:center;justify-content:center;}
#sdrApp .photo-section{margin-top:12px;}
@media print{#sdrApp #sdrPrint .print-notes-group{break-inside:auto;}#sdrApp #sdrPrint .print-notes-group .photo-gallery{margin-top:3px;}}

#sdrApp .fullpage-toggle{display:flex;flex-direction:row;align-items:center;gap:8px;margin-top:8px;font-weight:400;}
#sdrApp .fullpage-toggle input{width:auto;min-height:0;}
#sdrApp .reference-reminder{font-size:10px;color:#667085;}
#sdrApp .print-reference-page{break-before:page;break-inside:avoid;height:245mm;display:flex;flex-direction:column;gap:8px;margin:0;padding:0;box-sizing:border-box;}
#sdrApp .reference-page-head{flex:0 0 auto;}
#sdrApp .reference-page-head h2{margin:0 0 4px;}
#sdrApp .reference-page-image{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;}
#sdrApp .reference-page-image img,#sdrApp .reference-page-image canvas{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;}
@media print{
 #sdrApp #sdrPrint .reference-reminder{font-size:10px;line-height:1.2;margin:3px 0;}
 #sdrApp #sdrPrint .reference-page-head h2{margin:0 0 4px;}
 #sdrApp #sdrPrint .reference-page-head p{font-size:10px;line-height:1.2;margin:2px 0;}
}
#sdrApp .reference-page-image img{width:100%;height:100%;object-fit:contain;}

#sdrApp #estimateReviewResults input[type="checkbox"]{width:auto;min-height:0;}
#sdrApp #estimateReviewResults td{white-space:pre-wrap;overflow-wrap:anywhere;}

/* Keep panel value columns aligned with the rest of the request. */
#sdrApp #requestPreview .print-panel-group,
#sdrApp #sdrPrint .print-panel-group{container-type:inline-size;}
#sdrApp .print-panel-columns:has(>.print-panel-images:empty){grid-template-columns:minmax(0,1fr);}
#sdrApp .print-panel-images:empty{display:none;}
#sdrApp #requestPreview .print-panel-data dl div{grid-template-columns:calc((100cqw - 24px)*.38) minmax(0,1fr);column-gap:10px;}
@media print{
 #sdrApp #sdrPrint .print-panel-data dl div{grid-template-columns:calc((100cqw - 10px)*.34) minmax(0,1fr);column-gap:10px;}
}
