.selection-cad-dialog .portal-content{display:flex;flex-direction:column;gap:10px;min-height:0;padding:16px}
.selection-cad-caption{margin:0;font-size:13px;color:#345746}
.selection-cad-canvas{position:relative;flex:1;min-height:260px;background:#f1f5f3;border:1px solid #dce6df;border-radius:10px;overflow:hidden}
.selection-cad-canvas>canvas,.selection-cad-canvas>svg{display:block;max-width:100%;outline-offset:-3px;touch-action:none}
.selection-cad-annotations{position:absolute;inset:0;pointer-events:none;overflow:hidden;color:#173f2b}
.selection-cad-annotations svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.selection-cad-annotations line{stroke:#236246;stroke-width:1.5;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 0 #fff)}
.selection-cad-annotation{position:absolute;display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border:1px solid #9bb9a8;border-radius:6px;background:#fffffff2;box-shadow:0 2px 8px #173f2b1f;font-size:11px;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums}
.selection-cad-annotation b{color:#236246;font-size:12px}.selection-cad-annotation strong{font-weight:600;color:#173f2b}
.selection-cad-annotation-note{position:absolute;right:10px;bottom:9px;padding:4px 7px;border-radius:5px;background:#173f2bb8;color:#fff;font-size:10px;letter-spacing:.01em}
.selection-cad-dialog footer{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.selection-cad-dialog footer button{min-height:40px;padding:8px 16px;border:1px solid #bdd0c3;border-radius:7px;background:#fff;color:#244b38;font:inherit;font-size:14px}
.selection-cad-dialog footer button.primary{background:#215b3c;color:#fff}
.selection-cad-dialog footer button:disabled{opacity:.5}
@media(max-width:640px){.selection-cad-canvas{min-height:210px}.selection-cad-caption{font-size:12px}.selection-cad-annotation{gap:3px;padding:3px 5px;font-size:10px}.selection-cad-annotation b{font-size:11px}.selection-cad-annotation-note{display:none}}
.selection-cad-tasks .portal-content{overflow:auto}
.selection-cad-list{display:flex;flex-direction:column;gap:8px}
.selection-cad-item{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px;border:1px solid #d9dfdc;border-radius:6px;font-size:13px;overflow-wrap:anywhere}
.selection-cad-item span{flex:1 1 200px}
.selection-cad-item .selection-cad-preparation{flex-basis:100%;margin:0;padding-top:8px;border-top:1px solid #d9dfdc;line-height:1.6}
.selection-cad-item a.workspace-button{display:inline-flex;align-items:center;text-decoration:none}
.selection-cad-progress-dialog .portal-content{padding:24px;gap:20px;background:#fff}
.selection-cad-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 20px;padding:20px 24px;border:1px solid #dce7e0;border-radius:10px;background:#f7faf8;color:#244b38}
.selection-cad-progress strong{font-size:16px}.selection-cad-progress>span{font-size:14px;color:#526a5d}
.selection-cad-progress progress{grid-column:1/-1;width:100%;height:10px;accent-color:#236246}
.selection-cad-progress[data-result=warning]{background:#faf9f6;border-color:#e2d6bf;color:#8a642d}
.selection-cad-progress[data-result=warning] progress{accent-color:#8a642d}
.selection-cad-progress[data-result=warning] progress::-webkit-progress-value{background:#8a642d}
.selection-cad-progress[data-result=warning] progress::-moz-progress-bar{background:#8a642d}
.selection-cad-progress-dialog .selection-cad-item{padding:16px;font-size:14px;gap:12px;line-height:1.6}
.selection-cad-item[data-state=failed],.selection-cad-item[data-state=unconfirmed]{background:#faf9f6;border-color:#e2d6bf}
.selection-cad-item[data-state=failed] .selection-cad-item-state,.selection-cad-item[data-state=unconfirmed] .selection-cad-item-state{color:#8a642d}
.selection-cad-item[data-state=running]{background:#f0f7f3;border-color:#b6d1c0}
@media(max-width:800px){.selection-cad-progress-dialog .portal-content{padding:20px;gap:16px}.selection-cad-progress{padding:16px;grid-template-columns:minmax(0,1fr)}.selection-cad-progress-dialog .selection-cad-item{padding:12px}}
.selection-cad-item input[type=checkbox]{width:18px;height:18px;accent-color:#215b3c}
.selection-cad-item label{display:flex;align-items:center;gap:6px}
.selection-cad-tasks .workspace-button{min-height:40px;padding:8px 16px;font-family:inherit;font-size:14px;line-height:1.4}
.selection-cad-tasks h3{font-size:14px;margin:12px 0 0}
.selection-cad-pdf.portal-dialog{width:min(960px,calc(100vw - 48px));height:auto;max-height:calc(100dvh - 48px)}
.selection-cad-pdf .portal-content{gap:24px;padding:24px;background:#fff}
.selection-cad-pdf .portal-note{margin:0;font-size:13px;line-height:1.7;color:#63786e}
.selection-cad-upload{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 24px;align-items:center;padding:20px 24px;border:1px solid #dce7e0;border-radius:10px;background:#f7faf8}
.selection-cad-upload h3,.selection-cad-review h3{margin:0;font-size:16px;color:#244b38}
.selection-cad-upload>.workspace-button{grid-column:2;grid-row:1/3}
.selection-cad-file-name{grid-column:1/-1;min-width:0;margin:8px 0 0;padding-top:12px;border-top:1px solid #e2ebe5;color:#536d60;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.selection-cad-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:160px;padding:24px;text-align:center;color:#62776b}
.selection-cad-empty strong{font-size:16px;font-weight:600;color:#415e4e}.selection-cad-empty p{margin:0;font-size:14px;line-height:1.7}
.selection-cad-review{display:flex;flex-direction:column;gap:12px}.selection-cad-review[hidden],.selection-cad-empty[hidden]{display:none}
.selection-cad-pdf .selection-cad-list{gap:12px}
.selection-cad-page{display:grid;grid-template-columns:minmax(140px,1fr) auto;gap:12px 20px;padding:20px;font-size:14px;border-color:#dce7e0;border-radius:10px;background:#fff}
.selection-cad-page label{gap:10px;cursor:pointer;font-weight:600}.selection-cad-page input[type=checkbox]{flex:none;margin:0}
.selection-cad-page>span{grid-column:1;line-height:1.7;color:#526c5d}.selection-cad-page>.workspace-button{grid-column:2;grid-row:1/4;align-self:center}
.selection-cad-page.is-unavailable{background:#faf9f6}.selection-cad-page.is-unavailable label{cursor:default}.selection-cad-page.is-unavailable>span{color:#946b32}
.selection-cad-pdf>.portal-status{padding:12px 24px;font-size:14px;line-height:1.7;border-top:1px solid #e5ece7}
.selection-cad-pdf>footer{padding:16px 24px;gap:12px}
.selection-cad-pdf .workspace-button:focus-visible,.selection-cad-page input:focus-visible{outline:2px solid #267351;outline-offset:3px}
@media(max-width:800px){.selection-cad-pdf.portal-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}.selection-cad-pdf .portal-content{padding:20px;gap:20px}.selection-cad-upload{padding:16px;gap:12px;grid-template-columns:minmax(0,1fr)}.selection-cad-upload>.workspace-button{grid-column:1;grid-row:auto;justify-self:start}.selection-cad-file-name{grid-column:1}.selection-cad-page{grid-template-columns:minmax(0,1fr);padding:16px}.selection-cad-page>.workspace-button{grid-column:1;grid-row:auto;justify-self:start}.selection-cad-pdf>footer,.selection-cad-pdf>.portal-status{padding:12px 20px}}
.selection-cad-batch.portal-dialog{width:min(1200px,calc(100vw - 48px));height:min(880px,calc(100dvh - 48px))}
.selection-cad-batch .portal-content{padding:24px;gap:20px;background:#fff}
.selection-cad-batch .portal-note{margin:0;color:#63786e;font-size:13px;line-height:1.7}
.selection-cad-batch-filters{display:grid;grid-template-columns:minmax(180px,1fr) minmax(340px,1.4fr) auto;align-items:end;gap:16px}
.selection-cad-filter-field{display:flex;flex-direction:column;min-width:0;gap:8px;color:#526a5d;font-size:13px}
.selection-cad-batch-filters input{box-sizing:border-box;width:100%;min-width:0;height:40px;margin:0;padding:8px 12px;border:1px solid #cbd9d0;border-radius:7px;background:#fff;color:#294736;font-family:inherit;font-size:14px;line-height:1.4}
.selection-cad-date-range,.selection-cad-filter-actions{display:flex;align-items:center;gap:12px}.selection-cad-date-range input{flex:1}.selection-cad-date-range>span{flex:none;color:#7c8b82}
.selection-cad-batch .workspace-button:focus-visible,.selection-cad-batch input:focus-visible,.selection-cad-recent summary:focus-visible{outline:2px solid #267351;outline-offset:3px}
.selection-cad-batch .selection-cad-drawing-table{flex:1 1 260px;min-height:220px;margin:0}
.selection-cad-batch .business-table :is(th,td){font-size:14px;padding:10px 16px}.selection-cad-batch .business-table th{height:24px}.selection-cad-batch .business-table td{height:32px}
.selection-cad-drawing-table th:first-child{width:68px}.selection-cad-drawing-table th:last-child{width:80px}.selection-cad-drawing-table :is(th,td):first-child{text-align:center}
.selection-cad-batch input[type=checkbox]{width:18px;height:18px;margin:0;accent-color:#236246;vertical-align:middle;cursor:pointer}
.selection-cad-batch .business-table tbody tr.is-selected{background:#edf6f0}
.selection-cad-batch .business-table .selection-cad-table-message{height:120px;white-space:normal;text-align:center;color:#708278;font-size:14px;line-height:1.7}
.selection-cad-batch .selection-cad-pager{padding:12px 16px;font-size:13px;gap:12px;flex-wrap:wrap}
.selection-cad-pager .business-pagination{gap:8px}
.selection-cad-recent{flex:none;border-top:1px solid #e1e9e4;padding-top:16px}.selection-cad-recent summary{cursor:pointer;color:#365947;font-size:14px;line-height:24px}.selection-cad-recent[open] summary{margin-bottom:12px}.selection-cad-recent>.business-table-scroll{max-height:260px;border:1px solid #dfe5e1;border-radius:8px}.selection-cad-recent table{min-width:640px}.selection-cad-recent th:nth-child(1){width:34%}.selection-cad-recent th:nth-child(2){width:28%}
.selection-cad-batch>.portal-status{padding:10px 24px;font-size:13px;line-height:1.7;border-top:1px solid #e5ece7}
.selection-cad-batch>footer{gap:16px;padding:16px 24px;align-items:center;flex-wrap:wrap}.selection-cad-selection-summary{margin-right:auto;color:#526a5d;font-size:14px}
@media(max-width:1000px){.selection-cad-batch-filters{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}.selection-cad-filter-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:800px){.selection-cad-batch.portal-dialog{width:calc(100vw - 24px);height:calc(100dvh - 24px)}.selection-cad-batch .portal-content{padding:20px;gap:16px}.selection-cad-batch-filters{grid-template-columns:minmax(0,1fr);gap:12px}.selection-cad-filter-actions{grid-column:1;justify-content:flex-start}.selection-cad-batch>.portal-status,.selection-cad-batch>footer{padding:12px 20px}.selection-cad-batch .business-table :is(th,td){padding:10px 12px}.selection-cad-batch .selection-cad-drawing-table{min-height:220px;flex-basis:220px}.selection-cad-drawing-table td.primary-cell{white-space:normal;overflow-wrap:anywhere}.selection-cad-drawing-table th:first-child{width:56px}.selection-cad-drawing-table th:last-child{width:64px}}
