.segment-tabs{display:flex;gap:10px;overflow:auto;margin:0 0 25px;padding:0 0 9px;border-bottom:1px solid #e6e7e8}.segment-tab-wrap{position:relative;flex:0 0 230px;border:1px solid #e2e4e6;border-radius:6px;background:white;display:flex}.segment-tab-wrap.selected{border-bottom:3px solid #d87522;background:#fffaf5}.segment-tab-wrap [role=tab]{border:0;background:transparent;text-align:left;display:block;flex:1;min-width:0;min-height:68px;padding:12px 10px 11px 14px;font-size:12px;overflow-wrap:anywhere}.segment-tab-wrap small{display:block;font-size:10px;margin-top:8px}.segment-tab-wrap small span{margin-left:10px;color:#ad6d3d}.segment-more{position:static;align-self:flex-start;flex:0 0 32px;margin:8px 4px 0 0;border:0!important;min-height:32px!important;padding:2px 5px!important;font-size:20px!important;background:transparent}.segment-add{align-self:center;border:1px solid #ddd;border-radius:50%;width:35px;height:35px;font-size:20px}.segment-context{font-size:11px;color:#929ca4;margin:0 0 5px}.job-options-button{float:right;border:0;background:transparent;min-width:36px;min-height:34px;font-size:21px;color:#858e94}.record-lines .section-head{align-items:center}.line-view-toggle{display:flex;gap:0;border:1px solid #d9dfe3;border-radius:5px;overflow:hidden}.line-view-toggle button{border:0;border-radius:0;font-size:10px;padding:6px 9px;min-height:30px}.line-view-toggle button.selected{background:#fff0e3;color:#a4612b}.scope-category{display:flex;justify-content:space-between;align-items:center;padding:14px 18px 8px;gap:20px}.scope-category h3{font-size:13px;margin:0}.scope-category .actions{margin:0;gap:6px}.scope-category .btn,.scope-category button{font-size:10px;min-height:29px;padding:5px 10px}.scope-category small{font-size:10px}.scope-description{display:flex;gap:12px;align-items:center;min-width:240px}.scope-description img{width:66px;height:58px;object-fit:contain}.scope-description small{display:block;font-size:10px;max-width:500px;margin-top:5px;line-height:1.5}.scope-description b{font-size:12px}.scope-empty{font-size:11px;color:#a0a6ab;margin:4px 18px 15px}.scope-totals{display:flex;justify-content:space-between;align-items:center;gap:20px;border-top:1px solid #e9e9e9;padding:20px 18px;font-size:12px}.scope-totals b{margin-left:12px}.scope-totals>span:first-child{font-size:10px;color:#929b9f}.scope-lock{background:#fbf8f2;color:#a08864;font-size:10px!important;margin:0!important;padding:10px 18px}.approved-door{display:flex;gap:15px;align-items:center;border-bottom:1px solid #eee;padding:15px 18px;font-size:12px}.approved-door>img{width:110px;max-height:80px;object-fit:contain}.approved-door>div{flex:1}.approved-door small{display:block;margin-top:7px;font-size:10px}.line-form-card{border:1px solid #e0e4e7;margin:0 18px 14px;border-radius:6px;padding:18px}.line-form-card>div:first-child{display:flex;gap:15px;align-items:center}.line-form-card img{width:80px;height:65px;object-fit:contain}.line-form-card h3{font-size:14px}.line-form-card p{font-size:11px;color:#7e8a93}.line-form-card>.text-button{font-size:11px}.item-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;border-top:1px solid #eee;padding-top:15px;font-size:10px;color:#949da4}.item-metrics b{display:block;font-size:13px;color:#51616c;margin-top:7px;font-weight:500}.scope-editor-tools{display:flex;gap:8px;flex-wrap:wrap}.scope-editor-rows{margin:18px 0}.scope-edit-row{display:grid;grid-template-columns:110px minmax(160px,1fr) 100px 125px 100px 35px;gap:10px;align-items:center;padding:14px 0;border-bottom:1px solid #e7e9eb}.scope-edit-row label{font-size:11px;margin:0}.scope-edit-row input,.scope-edit-row select{font-size:12px;min-height:37px;padding:8px}.scope-edit-row textarea{font-size:12px;min-height:60px}.scope-edit-row>strong{font-size:13px;font-weight:500;margin-top:20px}.scope-edit-row>button{min-height:30px;padding:4px 8px;border:0;font-size:20px}.scope-edit-row .line-description-field{grid-column:2/6}.scope-edit-row>small{grid-column:2/6;font-size:10px;color:#a29483}.draft-total{display:flex;justify-content:flex-end;align-items:center;gap:50px;font-size:15px;padding:20px 0}.annotation-help{font-size:10px!important;color:#a1a8ad;margin:10px 18px!important}.record-note{padding:13px 18px;border-top:1px solid #eceeef}.record-note>p{margin:0 0 10px;font-size:12px;line-height:1.65}.record-note small{font-size:10px}.record-note>button{float:right;font-size:10px;min-height:22px}.attachment-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:15px;padding:17px}.attachment-gallery>article{min-width:0;font-size:11px}.attachment-gallery b{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:9px;font-weight:500}.attachment-gallery small{display:block;font-size:9px;line-height:1.6;margin-top:5px}.attachment-gallery a{font-size:9px;display:block;margin-top:5px}.attachment-gallery>p{grid-column:1/-1;font-size:11px}.attachment-thumb{height:115px;width:100%;background:#f5f6f7;border:1px solid #e4e7e9;padding:5px;display:flex;align-items:center;justify-content:center}.attachment-thumb img{width:100%;height:100%;object-fit:contain}.attachment-thumb>span{font-size:38px;color:#b6bfc5}.file-viewer{text-align:center}.file-viewer>img{max-width:100%;max-height:62vh;object-fit:contain}.file-viewer .actions{justify-content:center}.file-viewer>p{font-size:11px;color:#8c979e}.notes-only .record-attachments,.files-only .record-notes{display:none}.catalog-tools{display:flex;gap:15px;margin:0 0 12px;align-items:center}.catalog-tools input{margin:0;flex:1;min-width:200px;font-size:13px}.catalog-tools select{max-width:250px;margin:0;font-size:13px}.catalog-caption{font-size:11px;color:#8f999f;margin:10px 0 20px}.catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:18px}.catalog-grid>article{border:1px solid #e2e5e8;border-radius:6px;background:white;padding:15px;min-width:0;display:flex;flex-direction:column}.catalog-grid img,.no-catalog-photo{width:100%;height:125px;object-fit:contain;background:white;margin-bottom:13px}.no-catalog-photo{display:grid;place-items:center;color:#b6bdc2;font-size:11px;border:1px solid #f1f2f3}.catalog-grid h3{font-size:13px;font-weight:500;line-height:1.5;min-height:40px;margin:0 0 9px}.catalog-grid small{font-size:10px;line-height:1.7;overflow-wrap:anywhere}.catalog-grid p{font-size:15px;margin:9px 0}.catalog-grid button{margin-top:13px;font-size:11px;min-height:32px}.catalog-id{font-size:9px!important;color:#a3a8ab}.invoice-preview-total{display:flex;justify-content:space-between;border-top:1px solid #ddd;border-bottom:1px solid #ddd;padding:20px 0;margin:18px 0;font-size:18px}.record-attachments input[type=file]{font-size:12px}#workAttachmentFile{min-height:45px}body[data-screen=pricebook] main{background:#fafafa}:root[data-theme=dark] body[data-screen=pricebook] main{background:var(--primary)}@media(max-width:1000px){.scope-edit-row{grid-template-columns:100px 1fr 90px 100px 80px 30px;gap:8px}.scope-category{flex-wrap:wrap}.line-view-toggle button{font-size:9px}.scope-description{min-width:190px}.scope-editor-rows{overflow:auto}.scope-edit-row{min-width:710px}}@media(max-width:700px){.segment-tab-wrap{flex-basis:200px}.scope-editor-rows{overflow:auto}.catalog-tools{flex-wrap:wrap}.catalog-tools input,.catalog-tools select{max-width:none;width:100%}.catalog-grid{grid-template-columns:1fr 1fr}.scope-totals{flex-direction:column;align-items:flex-end}.scope-edit-row{min-width:710px}.scope-category .actions{flex-wrap:wrap}.attachment-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.record-lines .section-head{flex-wrap:wrap;gap:15px}}

/* Keep the segment action visible beside the scrolling tabs, including the first segment. */
.segment-switcher{display:flex;align-items:flex-start;gap:12px;margin-bottom:25px}.segment-switcher .segment-tabs{flex:1;min-width:0;margin-bottom:0}.segment-switcher>.segment-add{flex:0 0 auto;align-self:flex-start;width:auto;height:auto;min-height:44px;border-radius:6px;padding:10px 16px;font-size:14px;white-space:nowrap}
