#encaixe-page{gap:5px}
.encaixe-controls{display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;padding:5px 0;flex-shrink:0;font-size:12px}
.encaixe-controls .btn,.encaixe-view-tools .btn{font-size:11px;min-height:28px;height:28px;padding:4px 9px;border-radius:3px;box-shadow:none;white-space:nowrap}
.encaixe-folder{display:flex;align-items:center;gap:7px;min-width:230px;flex:1}
.encaixe-folder-name{max-width:360px;flex:1;min-width:80px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#35628d}
.encaixe-file-select{display:flex;align-items:center;gap:7px}
.encaixe-controls select,.encaixe-view-tools select{height:28px;border:1px solid #aec6e2;border-radius:3px;background:#fff;color:#173a67;padding:3px 6px;font:inherit;font-size:12px;min-width:0;max-width:280px}
.encaixe-file-select select{width:245px}
.encaixe-view-tools{display:flex;align-items:center;flex-wrap:wrap;gap:7px 12px;padding:6px 8px;border:1px solid #b6cde8;background:#eef5ff;flex-shrink:0;font-size:12px}
.encaixe-project-name{font-size:13px;color:#154f91}
.encaixe-project-count{font-size:11px;color:#45627f}
.encaixe-zoom{margin-left:auto;display:flex;align-items:center;gap:4px}
.encaixe-zoom label{margin-left:7px;display:flex;align-items:center;gap:6px;font-size:11px}
.encaixe-stage{position:relative;flex:1;min-height:180px;overflow:hidden;border:1px solid #a9c4e2;background-color:#fff;background-image:linear-gradient(#b4cbe02b 1px,transparent 1px),linear-gradient(90deg,#b4cbe02b 1px,transparent 1px);background-size:20px 20px}
.encaixe-svg{display:block;width:100%;height:100%;position:absolute;inset:0;touch-action:none;cursor:grab;user-select:none}
.encaixe-svg:active{cursor:grabbing}
.encaixe-boundary{fill:#fbfdff80;stroke:#a8b9c9;stroke-width:1;vector-effect:non-scaling-stroke;stroke-dasharray:5 4}
.encaixe-shape polygon{stroke-width:1;vector-effect:non-scaling-stroke;stroke-linejoin:round;cursor:pointer}
.encaixe-shape text{font-weight:650;pointer-events:none}
.encaixe-shape.selected polygon{stroke:#e05326;stroke-width:2.5;fill:#ffca854d}
.encaixe-shape.muted{opacity:.12}
.encaixe-unknown{fill:#fff1da;stroke:#bb7019;stroke-dasharray:5 3;stroke-width:1;vector-effect:non-scaling-stroke}
.encaixe-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;text-align:center;color:#426489;font-size:15px}
.encaixe-empty span{font-size:12px}
.encaixe-selection{padding:5px 8px;border:1px solid #c6d7eb;background:#f6faff;font-size:12px;min-height:28px;flex-shrink:0;overflow-wrap:anywhere}
.encaixe-result-tabs{display:flex;gap:3px;flex-shrink:0}
.encaixe-result-tabs button{padding:6px 12px;border:1px solid #b5cce7;border-radius:4px 4px 0 0;background:#edf4fd;color:#235079;font:inherit;font-size:12px;cursor:pointer}
.encaixe-result-tabs [aria-selected="true"]{background:#0d70d5;color:white;border-color:#0a64c4}
.encaixe-results{flex:0 1 180px;min-height:120px;max-height:210px}
.encaixe-grid{min-width:720px}
.encaixe-grid tfoot{position:sticky;bottom:0;background:#eaf3ff}
.encaixe-grid tfoot th{position:static}
.encaixe-swatch{display:inline-block;width:9px;height:9px;margin-right:7px;border-radius:2px}
.encaixe-message{padding:3px 2px;font-size:11px;line-height:1.4;color:#526d89;flex-shrink:0}
.encaixe-message.error{color:#a43934}
@media(max-height:720px){.encaixe-results{flex-basis:130px;min-height:95px;max-height:150px}.encaixe-stage{min-height:130px}.encaixe-project-count{font-size:10px}}
@media(max-width:1100px){.encaixe-folder{min-width:100%}.encaixe-folder-name{max-width:none}.encaixe-zoom{margin-left:0}.encaixe-view-tools{gap:6px}.encaixe-project-count{flex:1}}
@media(max-width:700px){.encaixe-controls{gap:5px}.encaixe-controls select{width:190px}.encaixe-folder{font-size:11px}.encaixe-zoom{flex-wrap:wrap}.encaixe-zoom label{margin-left:0}.encaixe-zoom select{max-width:180px}.encaixe-view-tools{padding:5px}.encaixe-project-count{flex-basis:100%}.encaixe-message{font-size:10px}.encaixe-selection{font-size:11px}.encaixe-results{min-height:100px;flex-basis:130px}.encaixe-stage{min-height:170px}#encaixe-page{overflow-y:auto}.encaixe-result-tabs button{font-size:11px}}
.encaixe-results{flex:0 1 auto;height:auto;min-height:100px;max-height:180px}
.encaixe-preview-only .encaixe-results,.encaixe-preview-only .encaixe-result-tabs,.encaixe-preview-only .encaixe-message{display:none}
@media(max-width:1100px){.encaixe-view-tools .encaixe-zoom{flex-wrap:wrap}}

/* Project library beside the drawing, with its commands on the active-tab row. */
.workspace-tabs.encaixe-tabs{height:37px;align-items:stretch;gap:0}
.encaixe-tab-tools{display:flex;align-items:center;gap:7px;flex:1;min-width:0;padding:0 0 3px 12px}
.encaixe-tab-tools>input{flex:1;min-width:120px;width:210px;height:27px;padding:3px 9px;border:1px solid #a8c3e4;border-radius:3px;background:#fff;font:inherit;font-size:12px;color:#173a67}
.encaixe-tab-tools .encaixe-folder-name{max-width:220px;min-width:0;flex:0 1 220px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.encaixe-tab-tools .btn{height:27px;min-height:27px;padding:3px 9px;box-shadow:none;border-radius:3px;font-size:11px;white-space:nowrap}
.encaixe-body{display:grid;grid-template-columns:210px minmax(0,1fr);gap:8px;flex:1;min-height:0;min-width:0}
.encaixe-view{display:flex;flex-direction:column;gap:5px;min-height:0;min-width:0}
.encaixe-files{border:1px solid #abc5e3;background:#fff;display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}
.encaixe-files-heading{display:flex;justify-content:space-between;padding:8px 9px;background:linear-gradient(#edf7ff,#d9e9fb);border-bottom:1px solid #b5cce7;font-size:12px;font-weight:600;color:#1c467b;flex-shrink:0}
.encaixe-file-count{font-size:11px;font-weight:400;color:#567393}
.encaixe-file-list{overflow:auto;flex:1;min-height:0;scrollbar-width:thin}
.encaixe-file-row{display:flex;align-items:center;gap:8px;width:100%;min-height:53px;padding:8px;border:0;border-bottom:1px solid #dce7f4;background:#fff;text-align:left;cursor:pointer;color:#214e80;font-family:inherit}
.encaixe-file-row:hover{background:#edf5ff}
.encaixe-file-row.selected{background:#d7eaff;box-shadow:inset 3px 0 #1473d1}
.encaixe-file-row:focus-visible{outline:2px solid #126dd0;outline-offset:-2px}
.encaixe-file-row>svg{width:21px;height:25px;flex:none;fill:none;stroke:#1769bd;stroke-width:1.7}
.encaixe-file-row>span{min-width:0;display:flex;flex-direction:column;gap:4px}
.encaixe-file-row strong{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.encaixe-file-row small{font-size:10px;color:#667e98;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.encaixe-files-empty{padding:20px 10px;text-align:center;font-size:12px;color:#6b8097;line-height:1.6}
.encaixe-view .encaixe-project-count{font-size:10px}
.encaixe-view .encaixe-view-tools{gap:4px 7px;padding:5px 7px}
.encaixe-view .encaixe-zoom{gap:3px;flex-wrap:wrap}
.encaixe-view .encaixe-view-tools .btn{padding:4px 7px;font-size:10px}
.encaixe-view .encaixe-zoom select{max-width:170px}
.order-project-status{flex:1 1 100%;font-size:11px;line-height:1.35;color:#517398;padding:1px 0 3px}
.order-project-status[data-tone="loaded"]{color:#197044}
.order-project-status[data-tone="notice"]{color:#946223}
@media(max-width:1100px){.encaixe-tab-tools .encaixe-folder-name{display:none}.encaixe-body{grid-template-columns:180px minmax(0,1fr)}}
@media(max-width:700px){.workspace-tabs.encaixe-tabs{flex-wrap:wrap;height:auto;min-height:35px}.encaixe-tab-tools{flex-basis:100%;padding:4px 0 5px;gap:4px}.encaixe-tab-tools>input{min-width:80px}.encaixe-tab-tools .btn{font-size:10px;padding:3px 6px}.encaixe-body{grid-template-columns:135px minmax(0,1fr);gap:5px}.encaixe-file-row{padding:7px 5px;gap:4px}.encaixe-file-row strong{font-size:11px}.encaixe-file-row>svg{width:16px}.encaixe-view .encaixe-zoom{margin-left:0}}
.invoice-lookup-status{grid-column:1/-1;font-size:11px;line-height:1.4;color:#946223;padding:2px 0}
#f-number:not([readonly]){background:#fffdf0;border-color:#a3c3ea}
