*{box-sizing:border-box}body{margin:0;background:#f4f5f6;color:#24272b;font:16px/1.45 system-ui,-apple-system,Segoe UI,sans-serif}header{background:#292d31;color:#fff;padding:14px max(18px,calc((100vw - 1100px)/2));display:flex;justify-content:space-between;align-items:center;gap:12px}.brand{display:flex;align-items:center;gap:12px}.brand b{letter-spacing:.04em}.brand small{display:block;color:#d4d7da;font-size:11px}.mark{background:#e87524;color:white;border-radius:8px;font-weight:800;padding:10px}main{max-width:1100px;margin:28px auto;padding:0 18px}.panel{background:white;border:1px solid #e0e2e4;border-radius:14px;padding:22px;margin:18px 0;box-shadow:0 4px 16px #20252b0a}.narrow{max-width:480px;margin:60px auto}.muted{color:#70777e}.notice{font-size:12px;color:#7a5a36;background:#fff5e9;padding:10px;border-radius:8px}h1{font-size:26px;margin:0 0 6px}h2{font-size:20px;margin:0}h3{font-size:17px;margin:22px 0 10px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:18px 0}.tabs{display:flex;gap:8px;border-bottom:1px solid #ddd;padding-bottom:10px}.tab{background:transparent;color:#4c5359}.tab.active{background:#292d31;color:white}button{border:0;border-radius:9px;padding:11px 16px;background:#e87524;color:white;font-weight:650;cursor:pointer}button.secondary{background:#eceff1;color:#333}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.part-card{background:white;border:1px solid #e1e3e5;border-radius:12px;padding:16px}.part-card h3{margin:0 0 6px}.status{font-size:12px;color:#8b551f;background:#fff1e5;padding:4px 8px;border-radius:20px;display:inline-block}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.wide{grid-column:1/-1}label{display:block;font-weight:600;font-size:14px;margin:10px 0}input,select,textarea{display:block;width:100%;margin-top:6px;border:1px solid #cfd3d6;border-radius:8px;padding:11px;font:inherit;background:white}textarea{resize:vertical}.line-row{display:grid;grid-template-columns:1fr 100px 120px 42px;gap:8px;margin:8px 0}.line-row input{min-width:0}.line-row button{padding:8px}.signature-block{margin:22px 0}.signature-block canvas{width:100%;height:160px;border:2px dashed #b9bec3;border-radius:10px;background:#fff;touch-action:none}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-top:12px}.topgap{margin-top:20px}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-top:18px}.photo-card{background:white;padding:10px;border:1px solid #ddd;border-radius:10px}.photo-card img{width:100%;height:150px;object-fit:cover;border-radius:7px}.photo-card small{display:block;color:#697078;margin-top:5px}footer{text-align:center;color:#8a9095;font-size:12px;padding:30px}@media(max-width:620px){.form-grid{grid-template-columns:1fr}.wide{grid-column:auto}.line-row{grid-template-columns:1fr 75px 90px 38px}.section-head{align-items:flex-start;flex-direction:column}header{padding:12px 16px}}
.brand-logo{width:150px;height:auto;border-radius:5px;background:white}.login-logo{display:block;width:220px;max-width:100%;margin:0 auto 22px}@media(max-width:620px){.brand-logo{width:105px}.brand b{font-size:12px}.brand small{font-size:10px}}

.active-work{margin:12px 0;padding:12px 14px;background:#fff5e9;border:1px solid #e8c29f;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.active-work[hidden],button[hidden]{display:none!important}.active-work span{display:block;margin-top:4px;overflow-wrap:anywhere}.erp-work-list{display:grid;gap:8px;margin:12px 0}.erp-work-option{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px solid #ddd;border-radius:9px}.erp-work-option[aria-current=true]{border:2px solid #e87524;background:#fff5e9}.erp-work-option span{display:block;font-size:13px;color:#596067;margin-top:4px}.erp-work-option button{flex-shrink:0}@media(max-width:520px){.erp-work-option{align-items:flex-start;flex-direction:column}.erp-work-option button{width:100%}}

.erp-quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;flex-basis:100%}.erp-quick-actions button{min-height:48px;font-size:15px}.erp-quick-actions button:disabled{opacity:.55;cursor:wait}#erpQuickStatus{width:100%;margin:0;font-size:13px}#partForm,#photoForm{scroll-margin-top:12px}

.users-dialog{border:1px solid #d5d9dc;border-radius:12px;width:min(620px,94vw);max-height:88vh;overflow:auto;padding:20px;color:#292d31}.users-dialog::backdrop{background:#0007}.users-list{display:grid;gap:8px;margin:12px 0}.users-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #ddd;border-radius:8px;padding:12px;overflow-wrap:anywhere}.users-row small{display:block;color:#596067;margin-top:3px}.users-row button{flex-shrink:0}.users-dialog button:disabled{opacity:.55;cursor:wait}#usersForm{border-top:1px solid #ddd;padding-top:10px}
.scan-panel{border:1px solid #e8c29f;background:#fff9f3}.scan-panel .actions{flex-wrap:wrap}.scan-panel #scanReviewStatus{font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere}.scan-panel details{margin:12px 0}.scan-panel summary{cursor:pointer;font-weight:600}.scan-panel button:disabled{opacity:.55;cursor:not-allowed}.scan-panel textarea{min-height:110px}.erp-quick-actions #erpQuickScan{grid-column:1/-1}
.part-groups{display:flex;flex-direction:column;gap:12px;margin:12px 0}.part-group{border:1px solid #dfe1e3;background:#fff;border-radius:12px;overflow:hidden}.part-group>summary{cursor:pointer;display:flex;align-items:center;gap:10px;padding:16px;list-style:none;color:#292d31}.part-group>summary::-webkit-details-marker{display:none}.part-group>summary:before{content:'›';font-size:25px;line-height:1;color:#e87524;transform:rotate(0deg);transition:transform .12s}.part-group[open]>summary:before{transform:rotate(90deg)}.part-group-count{margin-left:auto;background:#eceff1;color:#292d31;border-radius:20px;min-width:32px;text-align:center;padding:4px 10px;font-size:14px;font-weight:650}.part-group-body{padding:0 12px 12px}.group-toolbar{margin-bottom:8px}.group-erp-info{display:block;color:#656b72;margin:6px 0}.status.erp-received{background:#e8f4eb;color:#23613b}.part-group[data-group="sent"] .part-group-count{background:#e8f4eb;color:#23613b}

.share-dialog{width:min(480px,94vw);max-height:90vh;overflow:auto;border:1px solid #e0e2e4;border-radius:14px;padding:20px;color:#24272b}.share-dialog .section-head{margin:0 0 12px}.share-dialog::backdrop{background:#292d3170}.share-options{display:grid;gap:10px}.share-options button{text-align:left;min-height:48px}.share-options button span{display:inline-block;width:25px}.share-options button:disabled{opacity:.5;cursor:default}#shareFallback{padding:10px;border:1px solid #ddd;border-radius:8px;margin-top:12px}#shareFallbackLink{color:#8b451b;font-weight:650}
.password-field{margin:10px 0}.password-field>label{margin:0 0 6px}.password-wrap{position:relative}.password-wrap>input{margin-top:0;padding-right:56px;min-height:44px}.password-wrap>button.password-toggle{position:absolute;right:2px;top:50%;transform:translateY(-50%);width:44px;height:44px;display:grid;place-items:center;padding:0;background:transparent;color:#4c5359;border-radius:8px;cursor:pointer}.password-toggle:focus-visible{outline:2px solid #e87524;outline-offset:-3px}.password-toggle[aria-pressed=false] .password-slash{display:none}.password-toggle[aria-pressed=true]{color:#a8490a}

/* Desglose de mediciones */
.line-row{padding:12px;border:1px solid #dce0e3;border-radius:10px;background:#fafafa;align-items:center}.measure-controls{grid-column:1/-1;min-width:0}.measure-mode-wrap{max-width:320px}.measure-entry{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(70px,1fr) 36px;gap:6px;align-items:end;margin:8px 0}.measure-entry label{min-width:0;font-size:12px}.measure-entry input{width:100%;min-width:0;padding:8px}.measure-subtotal{align-self:center;font-size:13px;color:#292d31;overflow-wrap:anywhere}.measure-status{display:block;margin-top:8px}.line-row .qty[readonly]{background:#fff0e4;font-weight:700;color:#9b4510}.measure-entry [hidden],.measure-panel[hidden],.measure-mode-wrap[hidden]{display:none!important}@media(max-width:600px){.line-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 38px}.line-row .desc{grid-column:1/-1}.measure-entry{grid-template-columns:repeat(3,minmax(0,1fr)) 34px}.measure-subtotal{grid-row:2;grid-column:1/4}.measure-remove{grid-row:1;grid-column:4}.measure-entry label{font-size:12px}}

/* Orden de cálculo: unidades, dimensiones, resultado, total. */
.line-row{grid-template-columns:minmax(0,1fr) minmax(78px,115px) 40px}.line-row .desc{grid-column:1}.line-row .remove-line{grid-column:3}.measure-total{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,135px);align-items:center;gap:8px;font-weight:650;margin:4px 0 0}.measure-total .qty{margin:0}.measure-entry .measure-count{font-weight:650}.measure-entry label{margin:0}.measure-entry .measure-remove{padding:8px;min-height:40px}.measure-entry .measure-subtotal{font-weight:650}.measure-entry .measure-width-label[hidden]{display:none!important}@media(max-width:600px){.line-row{grid-template-columns:minmax(0,1fr) 40px}.line-row .desc{grid-column:1/-1}.line-row .unit{grid-column:1}.line-row .remove-line{grid-column:2}.measure-entry{grid-template-columns:repeat(3,minmax(0,1fr)) 34px}}

/* V13.1 — iconografía vectorial bicolor, sin cambiar funciones. */
.app-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}
button{font-family:inherit;min-height:44px;transition:background .15s,box-shadow .15s}
button:focus-visible,summary:focus-visible{outline:3px solid #337db3;outline-offset:3px}
button:disabled{opacity:.55;cursor:not-allowed}
.tabs{gap:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:0;padding:0;margin:16px 0}
.tab,.erp-quick-actions button,.app-toolbar button{background:#fff;color:#203a55;border:1px solid #dce5ed;box-shadow:0 3px 9px #223a5010;border-radius:13px;font-size:15px;text-align:left;justify-content:flex-start;min-height:56px}
.tab.active{background:#e8f2fb;color:#123e65;border-color:#94bad9;box-shadow:inset 0 0 0 1px #94bad9}
.erp-quick-actions button{min-height:58px}.app-toolbar #logoutBtn{color:#57616d;min-height:44px;font-size:13px}
.share-options button{background:#fff;color:#203a55;border:1px solid #dce5ed;border-radius:12px;min-height:56px}
.part-group>summary:before{content:'';flex:0 0 32px;width:32px;height:32px;background:center/28px no-repeat;transform:none!important}
.part-group>summary:after{content:'';width:8px;height:8px;border-right:2px solid #556c82;border-bottom:2px solid #556c82;transform:rotate(45deg);margin:0 3px 4px 2px;transition:transform .15s}
.part-group[open]>summary:after{transform:rotate(225deg);margin-bottom:0;margin-top:4px}
.part-group>summary{min-height:58px;padding:12px}.part-group-count{flex-shrink:0}
@media(max-width:620px){main{margin:16px auto;padding:0 12px}.app-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.app-toolbar #erpCatalog{grid-column:1/-1}.app-toolbar button{padding:9px;min-width:0}.tabs .tab{padding:10px;min-height:62px}.erp-quick-actions button{padding:10px}.panel{padding:16px}.section-head .actions{width:100%}.section-head .actions button{flex:1 1 140px}.part-card .actions button{flex:1 1 120px}.brand{min-width:0}.brand b,.brand small{overflow-wrap:anywhere}#userBadge{font-size:11px;max-width:95px;overflow-wrap:anywhere}}

button[data-tab="parts"]{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
button[data-tab="parts"]::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%224.5%22%20width%3D%2214%22%20height%3D%2217%22%20rx%3D%222.5%22%20fill%3D%22%23dbe9f5%22%2F%3E%3Cpath%20d%3D%22M9%204.5V3.8A1.8%201.8%200%200%201%2010.8%202h2.4A1.8%201.8%200%200%201%2015%203.8v.7%22%2F%3E%3Cpath%20d%3D%22m8%2010%201.4%201.4L12%208.8m-4%207%201.4%201.4L12%2014.6%22%20stroke%3D%22%23e87524%22%2F%3E%3Cpath%20d%3D%22M14%2010h2m-2%206h2%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

#erpQuickPhoto,#takePhotoBtn,#scanCamera{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
#erpQuickPhoto::before,#takePhotoBtn::before,#scanCamera::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%208a2%202%200%200%201%202-2h3l1.5-2h5L16%206h3a2%202%200%200%201%202%202v10a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2Z%22%20fill%3D%22%23dbe9f5%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2213%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M17.5%209h1%22%20stroke%3D%22%23e87524%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

#erpCatalog,#erpChoosePart,#erpChoosePhoto,#erpUsePart,#erpUsePhoto,#newSite{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
#erpCatalog::before,#erpChoosePart::before,#erpChoosePhoto::before,#erpUsePart::before,#erpUsePhoto::before,#newSite::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2021v-9l9-7%209%207v9H3Z%22%20fill%3D%22%23dbe9f5%22%2F%3E%3Cpath%20d%3D%22M9%2021v-6h6v6M2%2012l10-8%2010%208%22%2F%3E%3Cpath%20d%3D%22M6%204h3m-1.5-1.5v3%22%20stroke%3D%22%23e87524%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

#usersOpen,#usersNew{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
#usersOpen::before,#usersNew::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%227%22%20r%3D%223%22%20fill%3D%22%23dbe9f5%22%2F%3E%3Cpath%20d%3D%22M6%2020v-3a6%206%200%200%201%2012%200v3H6Z%22%20fill%3D%22%23dbe9f5%22%2F%3E%3Cpath%20d%3D%22M4%2013a4%204%200%200%200-2%203v2m18-5a4%204%200%200%201%202%203v2%22%20stroke%3D%22%23e87524%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

#erpQuickPart,#newPartBtn,#addLine,.measure-add{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
#erpQuickPart::before,#newPartBtn::before,#addLine::before,.measure-add::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%225%22%20fill%3D%22%23dbe9f5%22%2F%3E%3Cpath%20d%3D%22M12%207v10M7%2012h10%22%20stroke%3D%22%23e87524%22%20stroke-width%3D%222.5%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

#erpQuickScan,#scanStart,#scanChoose,#scanNative,#scanHandwriting{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
#erpQuickScan::before,#scanStart::before,#scanChoose::before,#scanNative::before,#scanHandwriting::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%203H5a2%202%200%200%200-2%202v3m13-5h3a2%202%200%200%201%202%202v3M3%2016v3a2%202%200%200%200%202%202h3m13-5v3a2%202%200%200%201-2%202h-3%22%2F%3E%3Cpath%20d%3D%22M8%208h8M8%2016h8%22%2F%3E%3Cpath%20d%3D%22M3%2012h18%22%20stroke%3D%22%23e87524%22%20stroke-width%3D%222.5%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

#localSync,#usersReload,#partGroupRefresh,button[onclick^="retryArchive"]{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
#localSync::before,#usersReload::before,#partGroupRefresh::before,button[onclick^="retryArchive"]::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%208a8%208%200%200%200-14-2L3%209m0%200V4m0%205h5m-4%207a8%208%200%200%200%2014%202l3-3m0%200v5m0-5h-5%22%2F%3E%3Cpath%20d%3D%22M10%2012h4%22%20stroke%3D%22%23e87524%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

#localStorageCheck{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
#localStorageCheck::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%2018a4%204%200%201%201%200-8%206%206%200%200%201%2011-2%205%205%200%201%201%202%2010H6Z%22%20fill%3D%22%23dbe9f5%22%2F%3E%3Cpath%20d%3D%22M12%2017v-6m-3%203%203-3%203%203%22%20stroke%3D%22%23e87524%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

#localPersist{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
#localPersist::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%208%203v6c0%204-3%207-8%2010-5-3-8-6-8-10V6l8-3Z%22%20fill%3D%22%23dbe9f5%22%2F%3E%3Cpath%20d%3D%22m8%2012%203%203%205-6%22%20stroke%3D%22%23e87524%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

#backupExport{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
#backupExport::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%227%22%20width%3D%2216%22%20height%3D%2214%22%20rx%3D%222%22%20fill%3D%22%23dbe9f5%22%2F%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%225%22%20rx%3D%221.5%22%2F%3E%3Cpath%20d%3D%22M9%2012h6%22%20stroke%3D%22%23e87524%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

#shareDownload{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
#shareDownload::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2015v4a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2v-4%22%2F%3E%3Cpath%20d%3D%22M12%203v12m-5-5%205%205%205-5%22%20stroke%3D%22%23e87524%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

#backupImport{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
#backupImport::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2015v4a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2v-4%22%2F%3E%3Cpath%20d%3D%22M12%2015V3m-5%205%205-5%205%205%22%20stroke%3D%22%23e87524%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

#logoutBtn{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
#logoutBtn::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10%204H5v16h5m4-8H8%22%2F%3E%3Cpath%20d%3D%22m16%207%205%205-5%205m5-5h-7%22%20stroke%3D%22%23e87524%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

button[onclick^="printPart"],button[onclick^="showScanOriginals"],#scanPreview{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
button[onclick^="printPart"]::before,button[onclick^="showScanOriginals"]::before,#scanPreview::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%203h8l5%205v13H6Z%22%20fill%3D%22%23dbe9f5%22%2F%3E%3Cpath%20d%3D%22M14%203v6h5M9%2013h7M9%2017h7%22%2F%3E%3Cpath%20d%3D%22M9%2013h3%22%20stroke%3D%22%23e87524%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

button[onclick^="signSaved"],#paperSig{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
button[onclick^="signSaved"]::before,#paperSig::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%204h13v6M4%204v16h16v-6%22%2F%3E%3Cpath%20d%3D%22m8%2015%202.5-.5L20%205l-2-2-9.5%209.5L8%2015Z%22%20fill%3D%22%23fbe3d3%22%20stroke%3D%22%23e87524%22%2F%3E%3Cpath%20d%3D%22M7%2018h10%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}
.part-group[data-group="pending"]>summary:before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%204h13v6M4%204v16h16v-6%22%2F%3E%3Cpath%20d%3D%22m8%2015%202.5-.5L20%205l-2-2-9.5%209.5L8%2015Z%22%20fill%3D%22%23fbe3d3%22%20stroke%3D%22%23e87524%22%2F%3E%3Cpath%20d%3D%22M7%2018h10%22%2F%3E%3C%2Fsvg%3E")}

#loginBtn,#usersSave,#partForm button[type="submit"],#photoForm button:not([type]){display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
#loginBtn::before,#usersSave::before,#partForm button[type="submit"]::before,#photoForm button:not([type])::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%20fill%3D%22%23dbe9f5%22%2F%3E%3Cpath%20d%3D%22m7.5%2012%203%203%206-7%22%20stroke%3D%22%23e87524%22%20stroke-width%3D%222.5%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}
.part-group[data-group="signed"]>summary:before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%20fill%3D%22%23dbe9f5%22%2F%3E%3Cpath%20d%3D%22m7.5%2012%203%203%206-7%22%20stroke%3D%22%23e87524%22%20stroke-width%3D%222.5%22%2F%3E%3C%2Fsvg%3E")}

#erpPhotos,button[onclick^="prepareERPPart"]{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
#erpPhotos::before,button[onclick^="prepareERPPart"]::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%204l18%208-18%208%204-8-4-8Z%22%20fill%3D%22%23dbe9f5%22%2F%3E%3Cpath%20d%3D%22M7%2012h14%22%20stroke%3D%22%23e87524%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}
.part-group[data-group="sent"]>summary:before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%204l18%208-18%208%204-8-4-8Z%22%20fill%3D%22%23dbe9f5%22%2F%3E%3Cpath%20d%3D%22M7%2012h14%22%20stroke%3D%22%23e87524%22%2F%3E%3C%2Fsvg%3E")}

button[onclick^="shareArchivedPart"]{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
button[onclick^="shareArchivedPart"]::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m7%2011%2010-5M7%2013l10%205%22%2F%3E%3Ccircle%20cx%3D%225%22%20cy%3D%2212%22%20r%3D%223%22%20fill%3D%22%23dbe9f5%22%2F%3E%3Ccircle%20cx%3D%2219%22%20cy%3D%225%22%20r%3D%223%22%20fill%3D%22%23fbe3d3%22%20stroke%3D%22%23e87524%22%2F%3E%3Ccircle%20cx%3D%2219%22%20cy%3D%2219%22%20r%3D%223%22%20fill%3D%22%23fbe3d3%22%20stroke%3D%22%23e87524%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

#shareWhatsApp{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
#shareWhatsApp::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20.5%2011.5a8.5%208.5%200%200%201-13%207.3L3%2020l1.3-4.4A8.5%208.5%200%201%201%2020.5%2011.5Z%22%20fill%3D%22%23e2f5e8%22%20stroke%3D%22%23197c47%22%2F%3E%3Cpath%20d%3D%22M9%208c0%204%203%207%207%207l1-2-3-1-1%201-3-3%201-1-1-3-2%201%22%20stroke%3D%22%23197c47%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

#shareEmail{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
#shareEmail::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222.5%22%20fill%3D%22%23dbe9f5%22%2F%3E%3Cpath%20d%3D%22m4%207%208%206%208-6%22%20stroke%3D%22%23e87524%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

#locBtn{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
#locBtn::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M19%2010c0%205-7%2011-7%2011S5%2015%205%2010a7%207%200%201%201%2014%200Z%22%20fill%3D%22%23dbe9f5%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%222.5%22%20stroke%3D%22%23e87524%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

button[onclick^="showHistory"]{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
button[onclick^="showHistory"]::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2011a8%208%200%201%201%202%206m-2-6V5m0%206h6%22%2F%3E%3Cpath%20d%3D%22M12%207v5l3%202%22%20stroke%3D%22%23e87524%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

button[onclick^="editPart"]{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
button[onclick^="editPart"]::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%204h10M4%204v16h16v-8%22%2F%3E%3Cpath%20d%3D%22m8%2015%203-.6L21%205l-2-2L9%2012l-1%203Z%22%20fill%3D%22%23fbe3d3%22%20stroke%3D%22%23e87524%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

button[data-tab="photos"],#choosePhotoBtn{display:inline-flex;align-items:center;gap:8px;justify-content:center;vertical-align:middle}
button[data-tab="photos"]::before,#choosePhotoBtn::before{content:"";display:inline-block;flex:0 0 27px;width:27px;height:27px;background:#fff url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23245986%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%223%22%20fill%3D%22%23dbe9f5%22%2F%3E%3Ccircle%20cx%3D%228%22%20cy%3D%228%22%20r%3D%222%22%20stroke%3D%22%23e87524%22%2F%3E%3Cpath%20d%3D%22m4%2018%206-6%204%204%203-3%204%204%22%2F%3E%3C%2Fsvg%3E") center/23px no-repeat;border-radius:7px}

.tabs .tab,.erp-quick-actions button,.app-toolbar button,.share-options button{justify-content:flex-start}.tabs .tab::before,.erp-quick-actions button::before,.app-toolbar button::before,.share-options button::before{flex-basis:36px;width:36px;height:36px;background-color:#edf4fa;background-size:28px;border-radius:10px}.tabs .tab.active::before{background-color:#fff}.share-options #shareWhatsApp::before{background-color:#e2f5e8}.measure-remove,.remove-line{font-size:20px;line-height:1;min-height:38px}.password-toggle{min-height:44px}.line-row button.measure-add{justify-content:flex-start}button[hidden]{display:none!important}

section[aria-label="Sincronización local"]>button{margin:4px 4px 4px 0;text-align:left;justify-content:flex-start}
@media(max-width:620px){header{flex-wrap:wrap;gap:6px}#userBadge{max-width:100%;margin-left:auto;overflow-wrap:normal;text-align:right}.brand{flex:1 1 270px}}

.update-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.update-row>div{flex:1;min-width:145px}.update-row p{margin:4px 0}.update-row button{min-height:44px}.update-row button[hidden]{display:none!important}
