@charset "UTF-8";
.import-layout{display:grid;grid-template-columns:190px minmax(0,1fr);gap:18px;margin:20px 0}.import-unit-list{max-height:660px;overflow:auto;border-right:1px solid #dbe4df;padding-right:10px}.import-unit{display:flex;align-items:center;gap:6px;padding:5px;border-radius:6px}.import-unit.active{background:#e3eee5}.import-unit button{border:0;background:transparent;text-align:left;white-space:normal;width:100%}.import-unit small{display:block;font-size:15px;margin-top:4px}.import-edit-table input{min-width:64px;padding:5px;font-size:16.5px}.import-edit-table td:nth-child(2) input{min-width:145px}.import-edit-table td:nth-child(3) input{min-width:140px}#import-canvas{width:100%;max-height:560px;object-fit:contain;touch-action:none;cursor:crosshair;background:#fff;border:1px solid #dbe4df}#crop-box{margin:15px 0}#catalog-workspace summary{padding:12px 0;cursor:pointer}#catalog-workspace details{margin:15px 0}#catalog-workspace .notice label{display:flex;align-items:center}#unit-editor{min-width:0}#catalog-progress{margin:15px 0}@media(max-width:800px){.import-layout{grid-template-columns:1fr}.import-unit-list{max-height:180px;border:0}}
:root{font-family:'Malgun Gothic','Segoe UI',sans-serif;color:#172c38;background:#f3f6f5;font-size:21px;--green:#145e4c;--border:#dbe4df}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--border);border-radius:7px;background:white;color:#254438;padding:9px 13px;font-weight:600}button:hover{background:#edf4ef}button:disabled{opacity:.45;cursor:not-allowed}button.primary{background:var(--green);color:white;border-color:var(--green)}button.danger{color:#a32626}input,select,textarea{width:100%;border:1px solid #ccd8d1;background:white;border-radius:6px;padding:9px;color:#172c38}input:focus,select:focus,textarea:focus{outline:2px solid #85b7a1;outline-offset:1px}input[type=checkbox]{width:auto}label{display:grid;gap:6px;font-size:18px;color:#53645c}h1,h2,h3,p{margin-top:0}h1{font-size:40.5px;letter-spacing:-1px;margin-bottom:7px}h2{font-size:30px}small,.muted{color:#6a7b74}.eyebrow{font-size:16.5px;letter-spacing:2px;color:#5f7c6d;font-weight:bold}.layout{display:grid;grid-template-columns:220px 1fr;min-height:100vh}aside{background:#123f35;color:#e6f0e9;padding:25px 15px;position:sticky;top:0;height:100vh;overflow:auto}.brand{font-size:34.5px;font-weight:800;padding:0 12px 8px}.brand small{display:block;font-size:15px;letter-spacing:2px;color:#adcebc;margin-top:7px}.navgroup{font-size:16.5px;color:#9cbaad;padding:22px 12px 7px}nav button{display:block;text-align:left;width:100%;border:0;background:transparent;color:#caddd0;margin:3px 0;padding:10px 13px}nav button.active{background:#e3eee5;color:#183e31}main{min-width:0}header{height:70px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;padding:0 32px;background:white}.connection{display:flex;align-items:center;gap:8px;font-size:18px}.dot{width:7px;height:7px;background:#2d9b68;border-radius:50%}.dot.offline{background:#c5533d}.userbar{display:flex;align-items:center;gap:12px}.content{padding:30px 32px}.heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.actions{display:flex;gap:8px;flex-wrap:wrap}.panel{background:white;border:1px solid var(--border);border-radius:12px;padding:22px;margin-bottom:20px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.stat strong{display:block;font-size:45px;margin-top:16px;font-weight:600}.stat span{font-size:18px;color:#65776c}.toolbar{display:flex;gap:10px;margin-bottom:18px;align-items:center}.toolbar input{max-width:360px}.tablewrap{overflow:auto;max-height:68vh}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{color:#65756b;font-size:16.5px;background:#f5f8f5;position:sticky;top:0;z-index:1;font-weight:600}th,td{padding:12px;border-bottom:1px solid #e9eeea}td{font-size:18px}tbody tr:hover{background:#f7faf7}td .link{border:0;background:none;padding:0;color:#176b52;text-decoration:underline}.badge{font-size:16.5px;border-radius:5px;background:#e8f0e9;padding:4px 7px;color:#296348}.badge.cancel{background:#f7e7e4;color:#a14b39}.empty{text-align:center;padding:55px 20px;color:#718075}.notice{padding:13px 16px;border-radius:8px;background:#eff4eb;color:#56664b;font-size:18px;line-height:1.7;margin-bottom:18px}.login{max-width:430px;margin:10vh auto;padding:38px}.login .brand{color:#174d3c;padding:0;margin-bottom:30px}.login form{display:grid;gap:18px}.error{color:#b43333;font-size:18px;white-space:pre-wrap}.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.span2{grid-column:1/-1}.formactions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}dialog{border:1px solid #ccd8cf;border-radius:13px;padding:26px;width:min(1100px,95vw);max-height:92vh;color:inherit}dialog::backdrop{background:#0c282754;backdrop-filter:blur(2px)}.modalhead{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.modalhead h2{margin:0}.lines{margin-top:20px;overflow:auto}.lines td{padding:5px}.lines input,.lines select{min-width:85px;padding:7px;font-size:18px}.lines .itemname{min-width:210px}.totals{display:flex;justify-content:flex-end;gap:24px;padding:18px 0;font-size:19.5px}.totals strong{font-size:28.5px;color:#145e4c}.split{display:grid;grid-template-columns:200px 1fr;gap:18px}.cataloglist{display:flex;flex-direction:column;gap:7px;max-height:70vh;overflow:auto}.cataloglist button{text-align:left}.diagram{width:100%;max-height:550px;object-fit:contain;background:white}.pdf{width:100%;height:550px;border:1px solid var(--border)}.permissions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.permissions fieldset{border:1px solid var(--border);border-radius:7px}.permissions label{display:inline-flex;align-items:center;margin:6px;gap:5px}.permissions legend{font-size:18px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:#163d30;color:white;padding:13px 23px;border-radius:9px;display:none;z-index:100}#toast.show{display:block}.printonly{display:none}.progress{font-size:18px;color:#4d715c}.help{font-size:18px;line-height:1.8;color:#62746b}.welcome{background:linear-gradient(115deg,#174c3e,#32634e);color:white;border:0;padding:30px}.welcome .muted{color:#c0d7c9}.welcome h2{font-size:37.5px}.filedrop{display:block;padding:24px;border:1px dashed #9eb7a5;border-radius:8px;background:#f7faf7}.inline{display:flex;gap:8px;align-items:center}.inline select{min-width:140px}.truncate{max-width:260px;overflow:hidden;text-overflow:ellipsis}.negative{color:#b9483b}@media(max-width:850px){.layout{grid-template-columns:160px 1fr}.content{padding:20px 15px}header{padding:0 15px}.stats{grid-template-columns:repeat(2,1fr)}.permissions{grid-template-columns:1fr 1fr}.grid{grid-template-columns:1fr}.span2{grid-column:1}.split{grid-template-columns:1fr}.cataloglist{max-height:180px}.heading{align-items:flex-start;flex-direction:column}}@media print{body>*{display:none!important}body>.printonly{display:block!important;padding:25px;color:black}table{white-space:normal}th{position:static}.printonly h1{text-align:center}.printonly table{margin:22px 0}button{display:none}}

.import-canvas-scroll{max-height:560px;overflow:auto}#import-canvas{height:auto;max-height:none;object-fit:fill}

.repair-catalog-picker{width:min(1500px,96vw);max-width:96vw;max-height:92vh;overflow:auto;border:0;border-radius:16px;padding:24px;background:var(--paper,#fff)}
.repair-catalog-picker::backdrop{background:rgba(12,35,29,.55)}
.repair-catalog-picker .rpc-layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(400px,1.2fr);gap:20px;margin:20px 0}
.repair-catalog-picker input[data-field="name"]{min-width:140px}.repair-catalog-picker input[data-field="code"]{min-width:140px}.repair-catalog-picker input[type="number"]{min-width:75px;max-width:110px}
@media(max-width:950px){.repair-catalog-picker .rpc-layout{grid-template-columns:1fr}}
.split[hidden]{display:none}

.sym-parts-layout{display:grid;grid-template-columns:minmax(260px,1fr) minmax(340px,1fr);gap:18px}.sym-parts-layout .tablewrap{max-height:580px}.sym-parts-layout canvas{background:white}@media(max-width:950px){.sym-parts-layout{grid-template-columns:1fr}}

/* Compact desktop workspace */
:root{font-family:'맑은 고딕','Malgun Gothic',Tahoma,sans-serif;font-size:18px;color:#25292e;background:#b8bec5;--green:#42678c;--border:#a9afb7}
body{background:#c3c8cf}button{border:1px solid #9ba3ad;border-radius:2px;background:linear-gradient(#fff,#e1e4e8);color:#242a31;padding:4px 9px;font-size:18px;font-weight:400;min-height:25px;box-shadow:inset 0 1px #fff}button:hover{background:#e8f0fa;border-color:#7997bb}button.primary{background:linear-gradient(#f9fbff,#d3deed);border-color:#8699b2;color:#1c304e}button:focus-visible{outline:2px solid #4f83b7;outline-offset:1px}input,select,textarea{font-size:18px;border:1px solid #a8adb4;border-radius:1px;background:#fff;color:#20242a;padding:3px 5px;min-height:25px}input[type=number]{text-align:right}input:focus,select:focus,textarea:focus{outline:1px solid #6d93b7;outline-offset:0}input[type=checkbox]{min-height:0}label{gap:3px;font-size:16.5px;color:#333}h1,h2,h3{font-size:21px;letter-spacing:0}small,.muted,.help{color:#5e6772;font-size:16.5px}.help{line-height:1.5}.actions{gap:3px}.error{font-size:18px;color:#aa2020}.notice{border:1px solid #c2c6cc;background:#eef0f3;color:#46505d;border-radius:1px;padding:5px 7px;font-size:16.5px;margin-bottom:7px;line-height:1.6}
.desktop-layout{height:100vh;display:flex;flex-direction:column;overflow:hidden;min-width:680px}.desktop-chrome{flex:none;background:#dce0e5;border-bottom:1px solid #8a939e}.desktop-title{height:24px;min-height:24px;padding:2px 7px;gap:16px;background:linear-gradient(#fafafa,#e4e5e7);border-bottom:1px solid #b4b9c0;display:flex;align-items:center;justify-content:flex-start;color:#42474e;font-size:16.5px}.desktop-title strong{font-weight:600}.desktop-user{margin-left:auto}.desktop-menubar{display:flex;align-items:center;height:23px;background:#f2f2f2;border-bottom:1px solid #b5bbc2;padding:0 7px;gap:4px}.desktop-menu{position:relative;font-size:16.5px}.desktop-menu summary{cursor:pointer;padding:3px 9px;list-style:none}.desktop-menu[open] summary,.desktop-menu summary:hover{background:#d9e4f3}.desktop-menu>div{position:absolute;z-index:30;left:0;top:23px;min-width:140px;padding:3px;background:#f4f4f4;border:1px solid #8d96a1;box-shadow:2px 3px 5px #0003}.desktop-menu button{display:block;width:100%;text-align:left;border:0;box-shadow:none;background:transparent;padding:5px 12px}.desktop-toolbar{display:flex;align-items:stretch;gap:0;padding:3px 4px 2px;height:58px;overflow-x:auto;background:linear-gradient(#f9f9f8,#e1e3e6);border-top:1px solid #fff;border-bottom:1px solid #a9afb7}.desktop-toolbar button{display:flex;flex:none;flex-direction:column;align-items:center;justify-content:center;min-width:57px;width:auto;height:50px;gap:1px;padding:1px 5px;margin:0;border:1px solid #b9bec6;border-right-color:#e9ebed;background:transparent;color:#252a31;border-radius:0;box-shadow:inset 1px 1px #fff;font-size:16.5px;font-weight:400;white-space:nowrap}.desktop-toolbar button:hover{background:#e0eafa}.desktop-toolbar button.active{background:linear-gradient(#fff7df,#e5d5a5);border:1px solid #9e8957}.desktop-icon{font-family:'Segoe UI Emoji','Segoe UI Symbol',sans-serif;font-size:34.5px;line-height:28px;height:28px}.work-tabs{display:flex;gap:2px;padding:3px 5px 0;min-height:27px;overflow-x:auto;background:#d4d7db}.work-tab{display:flex;align-items:center;background:#dedfe1;border:1px solid #a3a8b0;border-bottom:0;flex:none;height:24px}.work-tab.active{background:#fff;border-top:2px solid #7189a7}.work-tab button{background:transparent;box-shadow:none;border:0;min-height:20px;padding:2px 8px;font-size:16.5px;white-space:nowrap}.work-tab button[data-close-page]{padding:0 5px;color:#717983}.desktop-main{flex:1;min-height:0;overflow:auto;background:#e8eaed}.content{padding:4px 5px 3px}.desktop-status{display:flex;align-items:center;flex:none;height:23px;background:#dfe2e6;border-top:1px solid #929ba6;font-size:16.5px;color:#363c45;white-space:nowrap;overflow:hidden}.desktop-status>span{padding:2px 13px;border-right:1px solid #adb4bd;min-height:18px}.desktop-status .connection{font-size:16.5px;gap:5px}.desktop-status .dot{width:6px;height:6px}.status-end{margin-left:auto}.heading{display:flex;align-items:center;justify-content:flex-start;min-height:32px;gap:14px;background:linear-gradient(#87919e,#5b6777);border:1px solid #4f5c6b;padding:3px 7px;margin:0 0 4px;color:#fff}.heading h1{font-size:21px;letter-spacing:2px;font-weight:600;margin:0;white-space:nowrap}.heading-meta{font-size:15px;color:#dde4ed}.heading .actions{margin-left:auto;flex-wrap:nowrap}.heading .actions button{white-space:nowrap;min-height:24px;padding:3px 9px}.heading .eyebrow{display:none}.panel{background:#fff;border:1px solid #b1b8c1;border-radius:0;padding:7px;margin:0 0 6px;box-shadow:inset 0 1px #fff}.section-title{font-size:18px;letter-spacing:2px;padding:5px 8px;background:#737f8e;color:white;margin:-7px -7px 6px}.dashboard-grid{display:grid;grid-template-columns:minmax(300px,1fr) minmax(350px,1.7fr);gap:6px}.dashboard-grid .panel{min-height:360px}.dashboard-grid td{padding:6px}.toolbar{display:flex;align-items:center;gap:5px;margin-bottom:6px;flex-wrap:wrap}.toolbar label{display:flex;align-items:center;gap:5px;white-space:nowrap}.toolbar label input,.toolbar label select{width:auto;max-width:240px;min-width:95px}.toolbar>input{max-width:280px}.toolbar .help{margin:0}.data-screen{height:calc(100vh - 204px);min-height:380px;display:flex;flex-direction:column;border:1px solid #9da7b3;background:white}.grid-filter{display:flex;align-items:center;gap:10px;flex:none;padding:4px 6px;background:#e6e8eb;border-bottom:1px solid #b1b7bf;min-height:35px}.grid-filter label{display:flex;align-items:center;gap:6px;white-space:nowrap}.grid-filter input{width:235px}.grid-filter select{width:auto;min-width:110px}.grid-count{margin-left:auto;font-size:16.5px;color:#4d5662}.data-main{flex:1;min-height:100px;max-height:none;overflow:auto;background:#fff}.tablewrap{border:1px solid #aeb7c2;max-height:64vh}table{font-size:16.5px;border-collapse:collapse;white-space:nowrap}th,td{border:1px solid #c0c8d1;padding:4px 6px;font-size:16.5px;font-weight:400;height:25px}th{background:linear-gradient(#f4f7fc,#d9e3f0);color:#303b49;text-align:center;z-index:1}td{background:#fff}tbody tr:hover td{background:#edf3fb}tr.selected td{background:#ffdda0!important}td button{font-size:16.5px;min-height:20px;padding:1px 7px}.data-main tr{cursor:default}.data-main tr:focus-visible{outline:1px solid #5289c2;outline-offset:-1px}.grid-pager{display:flex;align-items:center;gap:8px;padding:3px 6px;flex:none;background:#e3e6ea;border-top:1px solid #aeb5bf;font-size:16.5px}.grid-pager button{min-height:21px;padding:1px 8px;font-size:16.5px}.grid-pager .help{margin-left:auto}.grid-detail{flex:0 0 195px;min-height:150px;border-top:3px solid #a3adba;overflow:hidden;background:white}.detail-tabs{display:flex;gap:2px;background:#d2d7dd;border-bottom:1px solid #8e98a6;padding:2px 3px 0;min-height:25px}.detail-tabs button,.detail-tabs>span{background:#e0e2e5;border:1px solid #9da5af;border-bottom:0;border-radius:0;min-width:100px;padding:3px 9px;font-size:16.5px;min-height:22px}.detail-tabs .active{background:#8b97a7;color:#fff}.detail-body{height:calc(100% - 25px);overflow:auto}.detail-grid.tablewrap{border:0;max-height:125px}.detail-grid th,.detail-grid td{height:22px;padding:2px 5px}.detail-total{text-align:right;background:#eff2f7;padding:4px 10px;font-size:16.5px}.detail-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:4px;gap:1px;background:#b8bec7}.detail-field{display:grid;grid-template-columns:100px minmax(0,1fr);background:#fff;min-height:26px;font-size:16.5px}.detail-field b{font-weight:400;background:#e0e3e8;border-right:1px solid #b4bdc9;padding:5px 7px;color:#3b4552}.detail-field span{padding:5px 7px;overflow-wrap:anywhere;white-space:pre-wrap}.detail-memo{padding:10px;white-space:pre-wrap;font-size:18px}.badge{border-radius:0;padding:1px 5px;background:#e1e8f0;color:#2c4b73;font-size:16.5px}.badge.cancel{background:#f4dddd;color:#9b3030}.empty{font-size:18px;padding:35px 10px}.split{grid-template-columns:190px minmax(0,1fr);gap:5px}.cataloglist{gap:2px}.cataloglist button{border-radius:0;text-align:left;font-size:16.5px}.cataloglist button.primary{background:#c8d8ed}.sym-parts-layout{gap:6px}.import-layout{grid-template-columns:185px minmax(0,1fr);gap:8px;margin:8px 0}.import-unit-list{padding-right:4px}.import-unit.active{background:#ffdda0}.import-unit button{font-size:16.5px}.filedrop{padding:8px;background:#f5f6f8;border:1px solid #aab4c0;border-radius:0}.totals{gap:20px;padding:8px 0;font-size:18px}.totals strong{font-size:24px;color:#244b78}dialog,.repair-catalog-picker{border:2px solid #8390a2;border-radius:2px;padding:9px;background:#edf0f4;color:#252d38;box-shadow:0 7px 30px #0005}dialog::backdrop{background:#16283b48;backdrop-filter:none}#modal{width:min(1070px,96vw)}.modalhead{margin:-9px -9px 9px;padding:5px 7px;background:linear-gradient(#7b8798,#526173);color:white;border-bottom:1px solid #374a64;min-height:32px}.modalhead h2{font-size:19.5px;letter-spacing:2px}.modalhead button{min-height:22px;padding:0 7px;color:#3c4553}.grid{gap:5px 7px}#editor>fieldset>.grid,#rv-form>.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;background:#b9c1cb;border:1px solid #abb4c0;padding:3px}#editor>fieldset>.grid>label,#rv-form>.grid>label{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:center;gap:0;padding-left:5px;background:#d3d8df;font-size:16.5px;min-height:28px}#editor>fieldset>.grid input,#editor>fieldset>.grid select,#editor>fieldset>.grid textarea,#rv-form>.grid input,#rv-form>.grid textarea{border:1px solid #b0b9c5;width:100%;min-width:0;min-height:27px;font-size:18px;background:#fff}#editor>fieldset>.grid textarea{min-height:55px}.lines{margin-top:7px;background:white}.lines table{table-layout:auto}.lines th{font-size:16.5px}.lines td{padding:3px}.lines input,.lines select{padding:4px;font-size:18px;min-width:70px}.lines .itemname{min-width:255px;cursor:text;background:#ffffef}.formactions{gap:4px;margin-top:10px}.formactions .primary{min-width:84px}.repair-catalog-picker{padding:9px;width:min(1530px,98vw);max-width:98vw}.repair-catalog-picker .rpc-layout{gap:7px;margin:8px 0;grid-template-columns:minmax(300px,1fr) minmax(430px,1.2fr)}#repair-vehicle-tools{padding:6px;margin-bottom:7px!important;background:#f5f6f8;border:1px solid #abb5c3}#repair-vehicle-tools .toolbar{margin:0 0 5px}#repair-selected-vehicle{margin:3px 0;font-size:16.5px}#repair-mileage-history details{padding:3px;border-top:1px solid #c4cbd4}.login{max-width:440px;margin:12vh auto;padding:24px}.login .brand{color:#40526d}.login form{gap:12px}.permissions{gap:6px}.permissions fieldset{background:white;border-radius:0}.printonly{display:none}
@media(max-width:1000px){.heading-meta{display:none}#editor>fieldset>.grid,#rv-form>.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.desktop-toolbar button{min-width:55px}.content{padding:3px}.grid-filter{gap:5px}.grid-filter input{width:180px}.sym-parts-layout,.repair-catalog-picker .rpc-layout{grid-template-columns:1fr}.dashboard-grid{grid-template-columns:1fr}.grid-pager .help{display:none}}
@media print{.desktop-layout{display:none!important}}
/* Full-window parts selection: equal drawing and parts panes. */
#repair-catalog-picker{position:fixed;inset:0;margin:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;padding:9px;overflow:hidden;box-sizing:border-box}
#repair-catalog-picker[open]{display:flex;flex-direction:column}
#repair-catalog-picker>.modalhead,#repair-catalog-picker>.toolbar,#repair-catalog-picker>.error,#repair-catalog-picker>.notice,#repair-catalog-picker>.formactions{flex:none}
#repair-catalog-picker>.notice{margin-bottom:4px;padding:5px 8px}
#repair-catalog-picker .rpc-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);flex:1;min-height:0;min-width:0;gap:7px;margin:4px 0;overflow:hidden}
#repair-catalog-picker #rpc-picture{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:transparent;border:0}
#repair-catalog-picker #rpc-picture>img,#repair-catalog-picker #rpc-picture>canvas{display:block;width:100%!important;height:0!important;flex:1 1 0;min-height:0;object-fit:contain;object-position:top center;background:transparent}
#repair-catalog-picker #rpc-picture>iframe{width:100%!important;height:100%!important;flex:1;min-height:0}
#repair-catalog-picker #rpc-picture>a{flex:none;padding:4px}
#repair-catalog-picker .rpc-layout>div:last-child{min-width:0;min-height:0;overflow:auto}
#repair-catalog-picker #rpc-rows .tablewrap{max-height:none;overflow:visible}
#repair-catalog-picker .formactions{margin-top:4px}
/* Fit both wide and tall drawings inside the left half without scrollbars. */
#repair-catalog-picker #rpc-picture>a{order:1;margin-top:0}

/* Larger text throughout the application, with room for controls and full-height home panels. */
.desktop-title{height:auto;min-height:36px}
.desktop-menubar{height:auto;min-height:34px;flex-wrap:wrap}
.desktop-menu>div{top:100%}
.desktop-toolbar{height:84px}
.desktop-toolbar button{min-width:82px;height:76px;padding:3px 7px}
.desktop-icon{height:42px;line-height:42px}
.work-tabs{min-height:38px}
.work-tab{height:35px}
.work-tab button{min-height:30px}
.desktop-status{height:auto;min-height:34px}
.desktop-status>span{min-height:27px}
.heading{min-height:46px}
.heading .actions button{min-height:34px}
button,input,select,textarea{min-height:35px}
input[type=checkbox]{min-height:0}
th,td{height:36px}
td button{min-height:29px}
.grid-pager button{min-height:30px}
.detail-tabs{min-height:36px}
.detail-tabs button,.detail-tabs>span{min-height:33px}
.detail-body{height:calc(100% - 36px)}
.detail-grid th,.detail-grid td{height:32px}
.detail-field{grid-template-columns:140px minmax(0,1fr);min-height:38px}
#editor>fieldset>.grid>label,#rv-form>.grid>label{grid-template-columns:130px minmax(0,1fr);min-height:40px}
#editor>fieldset>.grid input,#editor>fieldset>.grid select,#editor>fieldset>.grid textarea,#rv-form>.grid input,#rv-form>.grid textarea{min-height:39px}
.modalhead{min-height:44px}
.modalhead button{min-height:32px}
.data-screen{height:calc(100dvh - 284px)}
.content:has(>.dashboard-grid){height:100%;min-height:640px;display:flex;flex-direction:column}
.content:has(>.dashboard-grid)>.heading{flex:none}
.dashboard-grid{flex:1;min-height:0;align-items:stretch}
.dashboard-grid>.panel{min-height:0;margin-bottom:0;min-width:0}
.dashboard-grid>.panel:first-child{display:flex;flex-direction:column}
.dashboard-grid>.panel:first-child>table{flex:1;height:100%}
.dashboard-grid table{white-space:normal}
.dashboard-grid td{overflow-wrap:anywhere}
@media(max-width:1000px){
 .content:has(>.dashboard-grid){height:auto;min-height:100%}
 .dashboard-grid{flex:none;grid-template-columns:1fr}
 .dashboard-grid>.panel{min-height:340px}
 .desktop-toolbar button{min-width:82px}
}
/* Movable repair editor, initially below the main toolbar. */
#modal.repair-editor{position:fixed;inset:auto;margin:0;max-width:calc(100vw - 16px);max-height:none;overflow:auto}
#modal.repair-editor>.modalhead{cursor:move;touch-action:none;user-select:none;position:sticky;top:-9px;z-index:5}
#modal.repair-editor>.modalhead button{cursor:pointer}
#modal.repair-editor #editor{min-width:0}
#modal.repair-editor #editor>fieldset>.grid{grid-template-columns:repeat(3,minmax(0,1fr))}
#modal.repair-editor #editor>fieldset>.grid>label{min-width:0}
#modal.repair-editor .lines table{width:100%;table-layout:fixed}
#modal.repair-editor .lines th:first-child{width:32%}
#modal.repair-editor .lines th:last-child{width:72px}
#modal.repair-editor .lines input{width:100%;min-width:0}
#modal.repair-editor .totals{flex-wrap:wrap}
@media(max-width:1000px){#modal.repair-editor #editor>fieldset>.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#modal.repair-editor #editor>fieldset>.grid{grid-template-columns:1fr}#modal.repair-editor .lines table{min-width:650px}}

/* Keep selection actions immediately after the parts list, within the right pane. */
#repair-catalog-picker .rpc-layout>div:last-child{display:flex;flex-direction:column;overflow:hidden}
#repair-catalog-picker .rpc-layout>div:last-child>#rpc-ocr{align-self:flex-start;flex:none}
#repair-catalog-picker .rpc-layout>div:last-child>.help{flex:none}
#repair-catalog-picker #rpc-rows{flex:0 1 auto;min-height:0;overflow:auto}
#repair-catalog-picker .rpc-actions{flex:none;justify-content:flex-start;flex-wrap:wrap;gap:8px;margin-top:8px;padding:8px 0;background:#edf0f4}
#repair-catalog-picker .rpc-actions #rpc-add{min-height:42px;padding:7px 16px}
#repair-catalog-picker #rpc-action-error{flex:none;margin-top:8px;line-height:1.5}
.manual-library{display:grid;grid-template-columns:260px minmax(0,1fr);gap:8px}
.manual-folders{display:flex;flex-direction:column;gap:5px;max-height:75vh;overflow:auto}
.manual-folders button{text-align:left;width:100%;margin:0;color:#253f60;background:#f0f3f8;border:1px solid #aeb7c2}.manual-folders button.primary{color:#183b65;background:#c8d8ed}.manual-folders small{display:block;margin-top:5px;color:#52677f}
#repair-service-manuals{width:min(1300px,96vw);max-height:94vh}
@media(max-width:800px){.manual-library{grid-template-columns:1fr}.manual-folders{max-height:200px}}
#repair-catalog-picker input[aria-invalid="true"]{border:2px solid #b43333;background:#fff0ed}
#text-review{width:min(1550px,96vw);max-height:94dvh}
#text-review .tablewrap{max-height:65dvh}
#text-review table{white-space:normal}
#text-review td{overflow-wrap:anywhere;min-width:130px}
#text-review td:first-child{min-width:250px}
#text-review input[data-value]{min-width:240px}
#text-review #tr-status{color:#a32626;white-space:pre-wrap}
.model-choice{grid-column:1/-1;min-width:0;padding:6px;background:#f4f6f9;}
.model-choice [data-model-options]{max-height:180px;overflow:auto;}
.model-choice [data-model-options] button{display:block;width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;}
.model-choice small{font-size:14px;}

/* Resize the desktop chrome and manual workspace instead of scrolling the window. */
.desktop-layout{min-width:0;height:100dvh;max-width:100%;}
.desktop-title{flex-wrap:wrap;gap:4px 12px;padding:3px 7px;}
.desktop-title>*{min-width:0;overflow-wrap:anywhere;}
.desktop-toolbar{display:grid;grid-template-columns:repeat(auto-fit,minmax(70px,1fr));height:auto;overflow:visible;}
.desktop-toolbar button{min-width:0;width:100%;height:auto;min-height:68px;white-space:normal;overflow-wrap:anywhere;font-size:15px;padding:2px;}
.desktop-toolbar .desktop-icon{font-size:30px;height:34px;line-height:34px;}
.work-tabs{flex-wrap:wrap;overflow:visible;}
.work-tab{min-width:0;max-width:100%;}
.work-tab button{white-space:normal;overflow-wrap:anywhere;}
.desktop-main{min-width:0;}
.desktop-status{flex-wrap:wrap;white-space:normal;font-size:13px;min-height:25px;}
.desktop-status>span{min-height:22px;padding:2px 8px;}
.desktop-status .connection{font-size:13px;}
.desktop-main:has(.manual-library){overflow:hidden;display:flex;}
.content:has(>.manual-library){width:100%;height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;}
.content:has(>.manual-library)>.heading{flex:none;flex-wrap:wrap;gap:5px 10px;}
.content:has(>.manual-library)>.heading .actions{flex-wrap:wrap;min-width:0;}
.content:has(>.manual-library)>.heading button{white-space:normal;}
.content:has(>.manual-library)>.help{flex:none;margin:2px 0 6px;font-size:15px;line-height:1.4;}
.manual-library{flex:1;min-height:0;grid-template-columns:clamp(170px,20vw,260px) minmax(0,1fr);overflow:hidden;}
.manual-library>.panel{min-width:0;min-height:0;margin:0;}
.manual-folders{max-height:none;overflow-x:hidden;overflow-y:auto;}
.manual-folders button{min-width:0;white-space:normal;overflow-wrap:anywhere;flex:none;}
.manual-library>section{display:flex;flex-direction:column;overflow:hidden;}
.manual-library>section>.toolbar,.manual-library>section>h2{flex:none;min-width:0;}
.manual-library>section>h2{font-size:21px;margin:5px 0;overflow-wrap:anywhere;}
.manual-library .toolbar input{min-width:0;max-width:100%;}
.manual-library .tablewrap{flex:1;min-height:0;max-height:none;overflow-x:hidden;overflow-y:auto;}
.manual-library table{table-layout:fixed;white-space:normal;}
.manual-library th,.manual-library td{overflow-wrap:anywhere;white-space:normal;}
.manual-library th:nth-child(1){width:11%;}.manual-library th:nth-child(2){width:19%;}
.manual-library th:nth-child(3){width:13%;}.manual-library th:nth-child(5){width:20%;}
.manual-library td small{display:block;font-size:14px;margin:3px 0;}
.manual-library td button{white-space:normal;max-width:100%;}
.content:has(>.data-screen){height:100%;display:flex;flex-direction:column;min-height:0;}
.content>.data-screen{height:auto;flex:1;min-height:0;}
@media(max-width:800px){
 .manual-library{grid-template-columns:170px minmax(0,1fr);}
 .desktop-status>span:nth-child(2),.desktop-status>span:nth-child(3),.desktop-status>span:nth-child(4){display:none;}
}
@media(max-width:650px){
 .manual-library{grid-template-columns:1fr;grid-template-rows:minmax(65px,22%) minmax(0,1fr);gap:4px;}
 .manual-folders{max-height:none;}
 .manual-library table,.manual-library tbody,.manual-library tr,.manual-library td{display:block;width:100%;}
 .manual-library thead{display:none;}
 .manual-library tr{border-bottom:2px solid #aeb7c2;}
 .manual-library td{border:0;height:auto;padding:3px 6px;}
 .manual-library td:nth-child(1),.manual-library td:nth-child(2),.manual-library td:nth-child(3){display:inline-block;width:auto;}
 .heading h1{white-space:normal;}
 .content:has(>.manual-library)>.heading .actions{margin-left:0;}
 .desktop-title{font-size:14px;}.desktop-user{font-size:13px;}
}
@media(max-height:650px){
 .desktop-toolbar button{height:auto;font-size:14px;min-height:32px;}
 .desktop-toolbar .desktop-icon{display:none;}
 .desktop-title{min-height:26px;}.desktop-menubar{min-height:27px;}
 .work-tabs{min-height:30px;}.work-tab{height:28px;}.work-tab button{min-height:24px;}
 .content:has(>.manual-library)>.help{display:none;}
 .content:has(>.manual-library)>.heading{min-height:36px;}
 .content:has(>.manual-library)>.heading h1{font-size:18px;}
 .content:has(>.manual-library)>.heading button{min-height:28px;font-size:14px;}
}

#modal.estimate-editor{width:80vw;height:80vh;max-width:80vw;max-height:80vh;overflow:auto}
@media(max-width:700px){#modal.estimate-editor{width:96vw;height:90vh;max-width:96vw;max-height:90vh}}

#modal.estimate-editor{position:fixed;inset:var(--estimate-top,260px) 4px 8px;margin:0;width:calc(100vw - 8px);height:auto;max-width:calc(100vw - 8px);max-height:calc(100vh - var(--estimate-top,260px) - 8px);overflow:auto}
#modal.estimate-editor .modalhead{position:sticky;top:-9px;z-index:3}
#modal.estimate-editor #sales-customer-tools{padding:6px;margin-bottom:6px!important}
#modal.estimate-editor #sales-customer-tools .toolbar{margin-bottom:4px}
#modal.estimate-editor #sales-customer-tools p{margin:3px 0}
#modal.estimate-editor #editor>fieldset>.grid textarea{min-height:40px;height:40px}
#modal.estimate-editor .lines{overflow:auto;min-height:340px}
#modal.estimate-editor .lines table{width:100%;table-layout:fixed}
#modal.estimate-editor .lines th:first-child{width:46%}
#modal.estimate-editor .lines th:last-child{width:65px}
#modal.estimate-editor .lines input,#modal.estimate-editor .lines select{min-width:0;width:100%;height:32px}
#modal.estimate-editor .lines .itemname{min-width:0}
#modal.estimate-editor .lines td:first-child{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3px}
#modal.estimate-editor .lines td:first-child small{grid-column:1/-1}

#modal.estimate-editor .lines td:first-child{display:table-cell}

.document-split{display:grid;flex:1;min-height:0;overflow:hidden;grid-template-rows:minmax(0,1fr) 8px minmax(0,1fr)}
.document-split-upper{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.document-split-upper .data-main{min-height:0}
.document-split-handle{display:flex;align-items:center;justify-content:center;cursor:row-resize;touch-action:none;user-select:none;background:#bac5d3;border-top:1px solid #8b98aa;border-bottom:1px solid #8b98aa;color:#52657e;line-height:6px}
.document-split-handle:hover,.document-split-handle.dragging,.document-split-handle:focus-visible{background:#8caed3;outline:2px solid #3d6c9c;outline-offset:-2px}
.document-split>.grid-detail{min-height:0;border-top:0;display:flex;flex-direction:column}
.document-split .detail-tabs{flex:none}
.document-split .detail-body{height:auto;flex:1;min-height:0;display:flex;flex-direction:column}
.document-split .detail-grid.tablewrap{max-height:none;min-height:0;flex:1;overflow:auto}
.document-split .detail-total{flex:none}

.customer-search-suggestions{flex:none;max-height:220px;overflow:auto;margin:4px 0;padding:6px}
.customer-search-suggestions button{margin:3px;text-align:left}

/* Mobile business screens: desktop layout remains above 360px. */
@media screen{
html[data-view-mode="mobile"]{font-size:8px}
html[data-view-mode="mobile"] body{overflow-x:hidden}
html[data-view-mode="mobile"] button,html[data-view-mode="mobile"] input,html[data-view-mode="mobile"] select,html[data-view-mode="mobile"] textarea{font-size:8px!important}
html[data-view-mode="mobile"] button{min-height:21px}
html[data-view-mode="mobile"] input,html[data-view-mode="mobile"] select{min-height:21px}
html[data-view-mode="mobile"] .desktop-layout{height:100dvh;min-height:0;overflow:hidden}
html[data-view-mode="mobile"] .desktop-title{min-height:14px;padding:1.5px 4px;gap:3px;font-size:6.5px}
html[data-view-mode="mobile"] .desktop-title strong{font-size:7px}
html[data-view-mode="mobile"] .desktop-user{margin-left:auto;font-size:6px}
html[data-view-mode="mobile"] .desktop-menubar{flex-wrap:nowrap;min-height:18px;gap:0;padding:0 1px}
html[data-view-mode="mobile"] .desktop-menu{font-size:7px;min-width:0;flex:1}
html[data-view-mode="mobile"] .desktop-menu summary{padding:4px 1px;text-align:center;white-space:nowrap}
html[data-view-mode="mobile"] .desktop-menu>div{min-width:62.5px;max-width:90vw}
html[data-view-mode="mobile"] .desktop-menu:nth-last-child(-n+2)>div{left:auto;right:0}
html[data-view-mode="mobile"] .desktop-toolbar{display:flex;flex-wrap:nowrap!important;overflow-x:auto;overflow-y:hidden;min-height:29px;max-height:32px;gap:1px;scrollbar-width:thin;overscroll-behavior-x:contain}
html[data-view-mode="mobile"] .desktop-toolbar button{flex:0 0 38px;width:38px!important;min-width:38px;height:28px!important;padding:1.5px;font-size:6.5px!important;white-space:nowrap}
html[data-view-mode="mobile"] .desktop-toolbar .desktop-icon{display:block;font-size:11px;line-height:12.5px}
html[data-view-mode="mobile"] .work-tabs{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;min-height:19px;max-height:22px}
html[data-view-mode="mobile"] .work-tab{flex-shrink:0}
html[data-view-mode="mobile"] .work-tab button{min-height:18px;white-space:nowrap;font-size:7px!important}
html[data-view-mode="mobile"] .desktop-main{min-height:0;overflow:auto}
html[data-view-mode="mobile"] .content{padding:1.5px;min-width:0}
html[data-view-mode="mobile"] .heading{flex-wrap:wrap;gap:2px;padding:2.5px;margin-bottom:2px;height:auto;min-height:20px}
html[data-view-mode="mobile"] .heading h1{font-size:10px}
html[data-view-mode="mobile"] .heading-meta{display:none}
html[data-view-mode="mobile"] .heading .actions{width:100%;margin-left:0;display:flex;overflow-x:auto;flex-wrap:nowrap;gap:2px}
html[data-view-mode="mobile"] .heading .actions button{flex-shrink:0;min-height:19px;font-size:7px!important;padding:2px 4px}
html[data-view-mode="mobile"] .grid-filter{flex-wrap:wrap;min-height:24px;padding:1.5px;gap:2px}
html[data-view-mode="mobile"] .grid-filter label{flex:1;min-width:0}
html[data-view-mode="mobile"] .grid-filter input{min-width:0;width:100%}
html[data-view-mode="mobile"] .grid-count{font-size:6px}
html[data-view-mode="mobile"] .data-main table,html[data-view-mode="mobile"] .detail-grid table{min-width:325px}
html[data-view-mode="mobile"] .tablewrap{-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
html[data-view-mode="mobile"] .grid-pager{gap:2px;flex-wrap:wrap}
html[data-view-mode="mobile"] .grid-pager .help{display:none}
html[data-view-mode="mobile"] .grid-pager button{min-height:18px}
html[data-view-mode="mobile"] .document-split-handle{min-height:4px}
html[data-view-mode="mobile"] .detail-tabs{overflow-x:auto;flex-wrap:nowrap}
html[data-view-mode="mobile"] .detail-tabs button{flex-shrink:0;min-height:19px;font-size:7px!important}
html[data-view-mode="mobile"] .detail-fields{grid-template-columns:1fr}
html[data-view-mode="mobile"] .detail-total{font-size:7px;white-space:normal}
html[data-view-mode="mobile"] .customer-search-suggestions{max-height:26dvh}
html[data-view-mode="mobile"] .customer-search-suggestions button{display:block;width:100%;margin:1.5px 0;white-space:normal}
html[data-view-mode="mobile"] .desktop-status{min-height:11px;max-height:14px;overflow:hidden;font-size:5.5px}
html[data-view-mode="mobile"] .desktop-status>span{font-size:5.5px!important;padding:1px 2px}
html[data-view-mode="mobile"] .desktop-status .status-end{display:none}
html[data-view-mode="mobile"] #modal,html[data-view-mode="mobile"] #modal.estimate-editor,html[data-view-mode="mobile"] #modal.repair-editor,html[data-view-mode="mobile"] dialog.repair-catalog-picker{position:fixed!important;inset:0!important;margin:0!important;width:100vw!important;height:100dvh!important;max-width:100vw!important;max-height:100dvh!important;padding:4px;border-radius:0;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;overscroll-behavior:contain}
html[data-view-mode="mobile"] #modal>.modalhead,html[data-view-mode="mobile"] .repair-catalog-picker>.modalhead{position:sticky;top:-8px;z-index:8;cursor:default;touch-action:auto;min-height:23px;align-items:center}
html[data-view-mode="mobile"] .modalhead h2{font-size:9px;letter-spacing:0}
html[data-view-mode="mobile"] .modalhead button{min-height:20px;min-width:20px}
html[data-view-mode="mobile"] #editor>fieldset>.grid,html[data-view-mode="mobile"] #modal.repair-editor #editor>fieldset>.grid{grid-template-columns:1fr!important}
html[data-view-mode="mobile"] #editor>fieldset>.grid>label{grid-template-columns:44px minmax(0,1fr);min-height:22px}
html[data-view-mode="mobile"] #editor>fieldset>.grid textarea{min-height:33px!important;height:auto!important}
html[data-view-mode="mobile"] #sales-customer-tools,html[data-view-mode="mobile"] #repair-vehicle-tools{padding:2.5px;margin-bottom:3.5px!important}
html[data-view-mode="mobile"] #sales-customer-tools .toolbar,html[data-view-mode="mobile"] #repair-vehicle-tools .toolbar{display:flex;flex-wrap:wrap;gap:2.5px}
html[data-view-mode="mobile"] #sales-customer-tools .toolbar label,html[data-view-mode="mobile"] #repair-vehicle-tools .toolbar label{flex:1 1 100%;min-width:0}
html[data-view-mode="mobile"] .toolbar input{max-width:100%}
html[data-view-mode="mobile"] #sales-customer-tools .tablewrap,html[data-view-mode="mobile"] #repair-find-results .tablewrap{max-height:25dvh!important;overflow:auto}
html[data-view-mode="mobile"] #sales-customer-tools table,html[data-view-mode="mobile"] #repair-find-results table{min-width:225px}
html[data-view-mode="mobile"] #modal #lines.lines{min-height:0;overflow:visible}
html[data-view-mode="mobile"] #modal #lines table,html[data-view-mode="mobile"] #modal #lines tbody{display:block;width:100%;min-width:0;table-layout:auto}
html[data-view-mode="mobile"] #modal #lines thead{display:none}
html[data-view-mode="mobile"] #modal #lines tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px;border:0.5px solid #aab6c5;background:#fff;padding:4px;margin:4px 0;border-radius:2.5px}
html[data-view-mode="mobile"] #modal #lines tbody td,html[data-view-mode="mobile"] #modal.estimate-editor #lines tbody td:first-child{display:block;width:auto;border:0;padding:0;min-width:0;height:auto}
html[data-view-mode="mobile"] #modal #lines tbody td:first-child{grid-column:1/-1}
html[data-view-mode="mobile"] #modal #lines tbody td:last-child{grid-column:1/-1;text-align:right}
html[data-view-mode="mobile"] #modal #lines td[data-mobile-label]:not([data-mobile-label=""])::before{content:attr(data-mobile-label);display:block;font-size:6.5px;color:#53647a;margin:0 0 1.5px}
html[data-view-mode="mobile"] #modal #lines input,html[data-view-mode="mobile"] #modal #lines select{width:100%;min-width:0;min-height:22px;height:22px}
html[data-view-mode="mobile"] #modal #lines .itemname{min-width:0}
html[data-view-mode="mobile"] #modal #lines td small{display:block;overflow-wrap:anywhere}
html[data-view-mode="mobile"] #editor>.formactions{position:sticky;bottom:-8px;z-index:7;background:#edf0f4;padding:4px 1px calc(4px + env(safe-area-inset-bottom));border-top:0.5px solid #aab6c5;flex-wrap:wrap}
html[data-view-mode="mobile"] #editor>.formactions .primary{flex:1;min-height:23px}
html[data-view-mode="mobile"] .totals{flex-wrap:wrap;gap:3px 6px}
html[data-view-mode="mobile"] .totals strong{font-size:11px}
html[data-view-mode="mobile"] .rpc-layout,html[data-view-mode="mobile"] .repair-catalog-picker .rpc-layout{display:flex;flex-direction:column;min-width:0}
html[data-view-mode="mobile"] .repair-catalog-picker .toolbar{flex-wrap:wrap;gap:2.5px}
html[data-view-mode="mobile"] .repair-catalog-picker .toolbar label{flex:1 1 45%;min-width:0}
html[data-view-mode="mobile"] #rpc-picture{min-height:70px;max-height:32dvh;overflow:auto}
html[data-view-mode="mobile"] #rpc-picture img{max-width:100%;max-height:30dvh;object-fit:contain}
html[data-view-mode="mobile"] #rpc-rows{overflow:auto;max-width:100%}
html[data-view-mode="mobile"] #rpc-rows table{min-width:320px}
html[data-view-mode="mobile"] .rpc-actions{position:sticky;bottom:-8px;z-index:7;padding:4px;background:#edf0f4;flex-wrap:wrap}
html[data-view-mode="mobile"] .dashboard-grid,html[data-view-mode="mobile"] .stats{grid-template-columns:1fr}
html[data-view-mode="mobile"] .dashboard-grid .panel{min-width:0;overflow:auto}
html[data-view-mode="mobile"] .login{margin:4dvh auto;max-width:calc(100vw - 10px);padding:8px}
html[data-view-mode="mobile"] .permissions{grid-template-columns:1fr}
html[data-view-mode="mobile"] .permissions label{min-height:20px}
html[data-view-mode="mobile"] .permissions input[type=checkbox]{width:11px;height:11px}

}
#view-mode{width:auto;max-width:145px;min-height:28px;font-size:14px;padding:2px 5px;margin-left:auto}
html[data-view-mode="mobile"] #view-mode{max-width:59px;font-size:6.5px!important;min-height:16px}
html[data-view-mode="mobile"] .desktop-user{display:none}

/* Compact phone workspace: 50% smaller type and pixel spacing; full device width. */
@media screen {
html[data-view-mode="mobile"] {font-size:6px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
html[data-view-mode="mobile"] body {font-size:6px}
html[data-view-mode="mobile"] button {font-size:6px!important;min-height:15px;padding:1.5px 3px}
html[data-view-mode="mobile"] label,html[data-view-mode="mobile"] .help,html[data-view-mode="mobile"] p,html[data-view-mode="mobile"] .notice {font-size:6px}
html[data-view-mode="mobile"] th,html[data-view-mode="mobile"] td {font-size:6px!important;padding:2px 2.5px;height:14px}
html[data-view-mode="mobile"] .desktop-title {height:13px;min-height:13px;padding:1px 2.5px;gap:2px;font-size:5.5px}
html[data-view-mode="mobile"] .desktop-title strong {font-size:6px;white-space:nowrap}
html[data-view-mode="mobile"] #view-mode {font-size:5.5px!important;min-height:12px;height:12px;max-width:47px;padding:0.5px 1px}
html[data-view-mode="mobile"] .desktop-menubar {height:15px;min-height:15px}
html[data-view-mode="mobile"] .desktop-menu {font-size:6px}
html[data-view-mode="mobile"] .desktop-menu summary {padding:3.5px 1px}
html[data-view-mode="mobile"] .desktop-menu>div {top:100%}
html[data-view-mode="mobile"] .desktop-toolbar {display:grid;grid-template-columns:repeat(8,minmax(0,1fr));height:auto;min-height:0;max-height:none;overflow:visible;gap:0.5px;padding:1px}
html[data-view-mode="mobile"] .desktop-toolbar button {width:100%!important;min-width:0;min-height:21px;height:21px!important;font-size:5px!important;padding:1px 0;white-space:normal;overflow-wrap:anywhere;line-height:6px}
html[data-view-mode="mobile"] .desktop-toolbar .desktop-icon {font-size:9px;height:10px;line-height:10px}
html[data-view-mode="mobile"] .work-tabs {min-height:14px;max-height:15px;padding:1px 1px 0}
html[data-view-mode="mobile"] .work-tab {height:13px}
html[data-view-mode="mobile"] .work-tab button {min-height:12px;font-size:5.5px!important;padding:1px 2.5px}
html[data-view-mode="mobile"] .heading {display:flex;flex-direction:row;align-items:center;min-height:15px;padding:2px;gap:2px}
html[data-view-mode="mobile"] .heading h1 {font-size:8px;margin:0;letter-spacing:0;text-align:left}
html[data-view-mode="mobile"] .heading .actions {width:100%;display:flex;flex-wrap:wrap;overflow:visible;gap:1.5px}
html[data-view-mode="mobile"] .heading .actions button {font-size:5.5px!important;min-height:14px;padding:1.5px 2.5px;flex:1 1 auto}
html[data-view-mode="mobile"] .grid-filter {min-height:18px;gap:1.5px;align-items:center}
html[data-view-mode="mobile"] .grid-filter label {display:flex;gap:1.5px;align-items:center;flex:1 1 45%;font-size:6px}
html[data-view-mode="mobile"] .grid-filter input {height:15px;min-height:15px;padding:1px 2px}
html[data-view-mode="mobile"] .grid-filter select {width:auto;max-width:100%;font-size:6px!important;min-height:15px;height:15px;padding:1px}
html[data-view-mode="mobile"] .grid-count {font-size:5px;white-space:nowrap}
html[data-view-mode="mobile"] .data-main table,html[data-view-mode="mobile"] .detail-grid table {min-width:240px}
html[data-view-mode="mobile"] .grid-pager {min-height:15px;padding:1px 1.5px;font-size:5.5px}
html[data-view-mode="mobile"] .grid-pager button {min-height:13px;font-size:5.5px!important}
html[data-view-mode="mobile"] .detail-tabs {min-height:14px}
html[data-view-mode="mobile"] .detail-tabs button {min-height:14px;font-size:5.5px!important;padding:1.5px 3px}
html[data-view-mode="mobile"] .detail-total {font-size:6px;padding:2px}
html[data-view-mode="mobile"] .desktop-status {height:9.5px;min-height:9.5px;max-height:9.5px}
html[data-view-mode="mobile"] .desktop-status>span {font-size:5px!important;min-height:8.5px;padding:0.5px 1.5px}
html[data-view-mode="mobile"] .desktop-status .connection {font-size:5px}
html[data-view-mode="mobile"] .badge {font-size:5.5px;padding:1px 2px}
}

/* Phone navigation typography and lightweight monochrome icons. */
@media screen {
html[data-view-mode="mobile"] .desktop-title {font-size:6.875px;font-weight:700}
html[data-view-mode="mobile"] .desktop-title strong {font-size:7.5px;font-weight:700}
html[data-view-mode="mobile"] .desktop-menu {font-size:7.5px;font-weight:700}
html[data-view-mode="mobile"] .desktop-menu button {font-size:7.5px!important;font-weight:700}
html[data-view-mode="mobile"] .desktop-toolbar button {font-size:6.25px!important;font-weight:700;line-height:7.5px;height:20px!important;min-height:20px;gap:0}
html[data-view-mode="mobile"] .desktop-toolbar .desktop-icon {font-size:0;height:7px;line-height:7px;width:8px;display:block}
html[data-view-mode="mobile"] .desktop-toolbar .desktop-icon::before {content:"";display:block;width:7px;height:7px;background:center/contain no-repeat}
html[data-view-mode="mobile"] .work-tab button {font-size:6.875px!important;font-weight:700}
html[data-view-mode="mobile"] .heading h1 {font-size:9.6px;font-weight:700}
html[data-view-mode="mobile"] .data-main th,html[data-view-mode="mobile"] .data-main td {font-size:7.2px!important;font-weight:700;line-height:1.25}
html[data-view-mode="mobile"] .detail-field {font-size:11.55px;grid-template-columns:98px minmax(0,1fr);min-height:26.6px}
html[data-view-mode="mobile"] .detail-field b,html[data-view-mode="mobile"] .detail-field span {padding:3.5px 4.9px;font-size:inherit;line-height:1.3}
html[data-view-mode="mobile"] .desktop-toolbar button[data-page="dashboard"] .desktop-icon::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%23344052%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%203h18v18H3zM3%209h18M3%2015h18M9%203v18M15%203v18%22%2F%3E%3C%2Fsvg%3E")}
html[data-view-mode="mobile"] .desktop-toolbar button[data-page="customers"] .desktop-icon::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%23344052%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%2010%209-7%209%207v11H3zM9%2021v-8h6v8%22%2F%3E%3C%2Fsvg%3E")}
html[data-view-mode="mobile"] .desktop-toolbar button[data-page="vehicles"] .desktop-icon::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%23344052%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%225%22%20cy%3D%2217%22%20r%3D%224%22%2F%3E%3Ccircle%20cx%3D%2219%22%20cy%3D%2217%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22m5%2017%205-9%205%209H5m5-9h7l2%209M8%205h4%22%2F%3E%3C%2Fsvg%3E")}
html[data-view-mode="mobile"] .desktop-toolbar button[data-page="models"] .desktop-icon::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%23344052%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%203%2010%200%208%208-10%2010-8-8z%22%2F%3E%3Ccircle%20cx%3D%228%22%20cy%3D%228%22%20r%3D%221%22%2F%3E%3C%2Fsvg%3E")}
html[data-view-mode="mobile"] .desktop-toolbar button[data-page="parts"] .desktop-icon::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%23344052%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%207%209-4%209%204v12l-9%203-9-3zM3%207l9%204%209-4M12%2011v11%22%2F%3E%3C%2Fsvg%3E")}
html[data-view-mode="mobile"] .desktop-toolbar button[data-page="catalogs"] .desktop-icon::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%23344052%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h7l2%203h9v12H3z%22%2F%3E%3C%2Fsvg%3E")}
html[data-view-mode="mobile"] .desktop-toolbar button[data-page="orders"] .desktop-icon::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%23344052%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%203h14v18H5zM8%208h8M8%2012h8M8%2016h5%22%2F%3E%3C%2Fsvg%3E")}
html[data-view-mode="mobile"] .desktop-toolbar button[data-page="purchases"] .desktop-icon::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%23344052%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2013v8h18v-8M12%202v13m-5-5%205%205%205-5%22%2F%3E%3C%2Fsvg%3E")}
html[data-view-mode="mobile"] .desktop-toolbar button[data-page="sales"] .desktop-icon::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%23344052%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2013v8h18v-8M12%2015V2m-5%205%205-5%205%205%22%2F%3E%3C%2Fsvg%3E")}
html[data-view-mode="mobile"] .desktop-toolbar button[data-page="estimates"] .desktop-icon::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%23344052%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%204h12v17H6zM9%203h6v4H9zM9%2011h6M9%2015h6%22%2F%3E%3C%2Fsvg%3E")}
html[data-view-mode="mobile"] .desktop-toolbar button[data-page="repairs"] .desktop-icon::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%23344052%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m14%206%204%204%204-4a7%207%200%200%201-9%209l-7%207-4-4%207-7a7%207%200%200%201%205-9z%22%2F%3E%3C%2Fsvg%3E")}
html[data-view-mode="mobile"] .desktop-toolbar button[data-page="manuals"] .desktop-icon::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%23344052%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%205C8%202%204%203%202%204v16c4-2%207-1%2010%201%203-2%206-3%2010-1V4c-2-1-6-2-10%201v16%22%2F%3E%3C%2Fsvg%3E")}
html[data-view-mode="mobile"] .desktop-toolbar button[data-page="payments"] .desktop-icon::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%23344052%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%2220%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M2%2010h20M5%2015h5%22%2F%3E%3C%2Fsvg%3E")}
html[data-view-mode="mobile"] .desktop-toolbar button[data-page="expenses"] .desktop-icon::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%23344052%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%202h14v20l-3-2-4%202-4-2-3%202zM8%207h8M8%2011h8M8%2015h5%22%2F%3E%3C%2Fsvg%3E")}
html[data-view-mode="mobile"] .desktop-toolbar button[data-page="users"] .desktop-icon::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%23344052%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M2%2022v-4a7%207%200%200%201%2014%200v4M18%204a4%204%200%200%201%200%208m2%203a7%207%200%200%201%202%207%22%2F%3E%3C%2Fsvg%3E")}
html[data-view-mode="mobile"] .desktop-toolbar button[data-page="settings"] .desktop-icon::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%23344052%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%228%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E")}
html[data-view-mode="mobile"] .desktop-toolbar button[data-page="audit"] .desktop-icon::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%23344052%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%202h14v20H5zM8%207h8M8%2011h8M8%2015h8%22%2F%3E%3C%2Fsvg%3E")}
html[data-view-mode="mobile"] .desktop-toolbar button#logout .desktop-icon::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%23344052%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10%203H3v18h7M9%2012h13m-5-5%205%205-5%205%22%2F%3E%3C%2Fsvg%3E")}
}

/* One phone type scale, matching the vehicle name in the main list. */
@media screen {
html[data-view-mode="mobile"] {--mobile-font-size:7.2px;font-size:var(--mobile-font-size)!important}
html[data-view-mode="mobile"] body,
html[data-view-mode="mobile"] #app,
html[data-view-mode="mobile"] #app *,
html[data-view-mode="mobile"] dialog,
html[data-view-mode="mobile"] dialog *,
html[data-view-mode="mobile"] #toast {font-size:var(--mobile-font-size)!important;line-height:1.35}
/* The original emoji stays hidden; its compact monochrome replacement remains. */
html[data-view-mode="mobile"] .desktop-toolbar .desktop-icon {font-size:0!important;line-height:7px}
html[data-view-mode="mobile"] .desktop-menu summary {padding-top:2px;padding-bottom:2px}
html[data-view-mode="mobile"] .desktop-toolbar button {height:auto!important;min-height:24px;white-space:normal;gap:1px}
html[data-view-mode="mobile"] .desktop-toolbar .desktop-icon::before {width:7px;height:7px}
html[data-view-mode="mobile"] .work-tab {height:auto;min-height:15px}
html[data-view-mode="mobile"] .work-tabs {max-height:none;min-height:17px}
html[data-view-mode="mobile"] .work-tab button {min-height:15px}
html[data-view-mode="mobile"] #view-mode {max-width:65px;height:auto;min-height:14px}
html[data-view-mode="mobile"] .desktop-title {height:auto;min-height:16px}
html[data-view-mode="mobile"] .desktop-menubar {height:auto;min-height:17px}
html[data-view-mode="mobile"] .heading h1 {letter-spacing:0}
html[data-view-mode="mobile"] .heading .actions button {white-space:normal;min-height:17px}
html[data-view-mode="mobile"] .detail-field {min-height:18px;grid-template-columns:80px minmax(0,1fr)}
html[data-view-mode="mobile"] .detail-field b,
html[data-view-mode="mobile"] .detail-field span {padding:2px 3px}
html[data-view-mode="mobile"] .desktop-status {height:auto;min-height:12px;max-height:16px}
}

/* Phone menu: pale background icon and a separate outlined foreground label. */
@media screen {
html[data-view-mode="mobile"] .desktop-toolbar {align-items:stretch;grid-auto-rows:30px}
html[data-view-mode="mobile"] .desktop-toolbar button {position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;overflow:hidden;height:30px!important;min-height:30px;padding:2px;gap:0}
html[data-view-mode="mobile"] #app .desktop-toolbar button .desktop-icon {position:absolute;inset:1px;display:block;width:auto;height:auto;font-size:0!important;line-height:0!important;color:transparent!important;pointer-events:none;z-index:0;opacity:.18}
html[data-view-mode="mobile"] #app .desktop-toolbar .desktop-icon::before {position:absolute;inset:0;display:block;width:100%;height:100%;background-position:center;background-size:contain;background-repeat:no-repeat;font-size:0!important;line-height:0!important}
html[data-view-mode="mobile"] #app .desktop-toolbar button>span:not(.desktop-icon) {position:relative;z-index:1;display:block;max-width:100%;font-weight:900;color:#132035;line-height:1.2;text-align:center;white-space:normal;overflow-wrap:normal;word-break:keep-all;-webkit-text-stroke:.8px #fff;paint-order:stroke fill;text-shadow:-.5px -.5px 0 #fff,.5px -.5px 0 #fff,-.5px .5px 0 #fff,.5px .5px 0 #fff;pointer-events:none}
html[data-view-mode="mobile"] #app .desktop-toolbar button.active>span:not(.desktop-icon) {color:#172c24}
}

/* Repair editor: compact identity controls above a 70% item workspace. */
@media screen {
html[data-view-mode="mobile"] #modal.repair-editor[open] {display:flex!important;flex-direction:column;overflow:hidden!important;padding:3px}
html[data-view-mode="mobile"] #modal.repair-editor>.modalhead {flex:none;position:static;min-height:20px;height:20px;padding:1px 3px}
html[data-view-mode="mobile"] #modal.repair-editor>.modalhead button {min-width:18px;min-height:18px;height:18px;padding:1px}
html[data-view-mode="mobile"] #modal.repair-editor #editor {flex:1;min-height:0;display:flex;flex-direction:column;gap:2px;overflow:hidden}
html[data-view-mode="mobile"] #modal.repair-editor #editor>fieldset {flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,3fr) auto minmax(0,7fr) auto auto;gap:2px;overflow:hidden}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top {grid-column:1/-1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:2px}
html[data-view-mode="mobile"] #modal.repair-editor #repair-vehicle-tools {padding:2px;margin:0!important;flex:none}
html[data-view-mode="mobile"] #modal.repair-editor #repair-vehicle-tools .toolbar {gap:2px;margin:0;flex-wrap:wrap}
html[data-view-mode="mobile"] #modal.repair-editor #repair-vehicle-tools .toolbar label {flex:1 1 40%;min-width:0;display:flex;align-items:center;gap:2px}
html[data-view-mode="mobile"] #modal.repair-editor #repair-vehicle-tools p {margin:1px 0}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top>.grid {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:1px;padding:1px}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top>.grid>label {display:flex!important;flex-direction:column;align-items:stretch;gap:0;min-height:0!important;padding:0 1px}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top>.grid>label:has(textarea) {grid-column:1/-1;display:grid!important;grid-template-columns:26px minmax(0,1fr)!important;align-items:center}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top input,
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top select {min-height:17px!important;height:17px!important;padding:1px 2px!important;width:100%;min-width:0}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top textarea {min-height:19px!important;height:19px!important;padding:1px 2px!important}
html[data-view-mode="mobile"] #modal.repair-editor #editor>fieldset>.notice {grid-column:1/-1;margin:0!important;padding:1px 3px;line-height:1.2}
html[data-view-mode="mobile"] #modal.repair-editor #editor>fieldset>#lines {grid-column:1/-1;min-height:0!important;height:100%;margin:0;overflow:auto!important;overscroll-behavior:contain}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody tr {gap:3px;padding:3px;margin:2px 0}
html[data-view-mode="mobile"] #modal.repair-editor #lines input {height:20px!important;min-height:20px!important;padding:2px}
html[data-view-mode="mobile"] #modal.repair-editor #lines td::before {margin-bottom:1px}
html[data-view-mode="mobile"] #modal.repair-editor #addline {grid-column:1;grid-row:4;min-height:18px;margin:0;padding:1px 3px}
html[data-view-mode="mobile"] #modal.repair-editor #repair-catalog {grid-column:2;grid-row:4;min-height:18px;margin:0;padding:1px 3px}
html[data-view-mode="mobile"] #modal.repair-editor #totals {grid-column:1/-1;grid-row:5;margin:0;padding:1px;gap:4px}
html[data-view-mode="mobile"] #modal.repair-editor #formerror:empty {display:none}
html[data-view-mode="mobile"] #modal.repair-editor #formerror {flex:none;max-height:30px;overflow:auto}
html[data-view-mode="mobile"] #modal.repair-editor #editor>.formactions {position:static;flex:none;padding:2px;margin:0;gap:2px}
html[data-view-mode="mobile"] #modal.repair-editor #editor>.formactions button {min-height:18px;padding:1px 3px}
html[data-view-mode="mobile"] #modal.repair-editor #editor>.formactions .primary {min-height:22px}
/* The structural wrapper is transparent in the PC editor. */
html[data-view-mode="pc"] .repair-entry-top {display:contents}
}

/* Smaller repair identity area and one-row item amounts on phones. */
@media screen {
html[data-view-mode="mobile"] #modal.repair-editor #editor>fieldset {grid-template-rows:minmax(0,2.1fr) auto minmax(0,7.9fr) auto auto;gap:1px}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top {gap:1px}
html[data-view-mode="mobile"] #modal.repair-editor #repair-vehicle-tools {padding:1px}
html[data-view-mode="mobile"] #modal.repair-editor #repair-vehicle-tools .toolbar {gap:1px}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top>.grid {padding:0;gap:0}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top input,
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top select {min-height:12px!important;height:12px!important;padding:0 1px!important}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top textarea {min-height:13px!important;height:13px!important;padding:0 1px!important}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top button {min-height:13px;padding:0 2px}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody tr {grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding:2px;margin:1px 0}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:first-child {grid-column:1/-1}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(2) {grid-column:1;grid-row:2}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(3) {grid-column:2;grid-row:2}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(4) {grid-column:3;grid-row:2}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(5) {display:none!important}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:last-child {grid-column:1/-1;grid-row:3}
html[data-view-mode="mobile"] #modal.repair-editor #lines input {min-height:18px!important;height:18px!important;padding:1px 2px}
}

/* Content-sized repair header; all remaining height belongs to item entry. */
@media screen {
html[data-view-mode="mobile"] #modal.repair-editor #editor>fieldset {grid-template-rows:auto auto minmax(0,1fr) auto auto}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top {max-height:30dvh;overflow:auto;flex:none}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top>.grid {display:grid!important;grid-template-columns:max-content max-content minmax(0,1fr)!important;align-items:center;gap:1px 3px;padding:0}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top>.grid>label {display:flex!important;flex-direction:row!important;align-items:center!important;gap:2px;min-width:0;min-height:0!important;margin:0;padding:0;white-space:nowrap}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top>.grid>label:has([name="mileage"]) {grid-column:1;grid-row:1}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top>.grid>label:has([name="date"]) {grid-column:2;grid-row:1}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top>.grid>label:has([name="customerId"]) {grid-column:3;grid-row:1}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top [name="mileage"] {width:calc(6ch + 4px)!important;flex:none;text-align:right;appearance:textfield}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top [name="mileage"]::-webkit-inner-spin-button {appearance:none;margin:0}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top [name="date"] {width:12ch!important;min-width:0!important;flex:none;text-align:left}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top [name="date"]::-webkit-date-and-time-value {text-align:left;min-width:0}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top [name="date"]::-webkit-calendar-picker-indicator {width:1em;padding:0;margin:0}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top [name="customerId"] {width:calc(6em + 10px)!important;max-width:100%;min-width:0;flex:0 1 auto;padding:0!important}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top>.grid>label:has([name="vehicleId"]) {grid-column:1/3;grid-row:2}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top [name="vehicleId"] {flex:1;width:0;min-width:0!important}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top>.grid>label:has([name="tax"]) {grid-column:3;grid-row:2}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top [name="tax"] {width:calc(4em + 8px)!important;flex:none;padding:0!important}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top>.grid>label:has([name="memo"]) {display:flex!important;grid-column:1/-1;grid-row:3}
html[data-view-mode="mobile"] #modal.repair-editor .repair-entry-top [name="memo"] {flex:1;min-width:0;resize:none;width:0!important;min-height:13px!important;height:13px!important;margin:0}
html[data-view-mode="mobile"] #modal.repair-editor #editor>fieldset>#lines {height:auto;min-height:0;align-self:stretch}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody tr {margin:0 0 2px;padding:2px}
html[data-view-mode="mobile"] #modal.repair-editor #lines .itemname {width:100%!important;min-width:0!important;box-sizing:border-box}
}

/* Exact compact search widths and inline amount labels. */
@media screen {
html[data-view-mode="mobile"] #modal.repair-editor #repair-vehicle-tools .toolbar {justify-content:flex-start;gap:3px;flex-wrap:wrap}
html[data-view-mode="mobile"] #modal.repair-editor #repair-vehicle-tools .toolbar label {flex:0 0 auto!important;width:auto;gap:2px;white-space:nowrap}
html[data-view-mode="mobile"] #modal.repair-editor #repair-find-kind,
html[data-view-mode="mobile"] #modal.repair-editor #repair-find {width:calc(10ch + 6px)!important;min-width:0!important;max-width:none;flex:none;padding:0 2px!important}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(2),
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(3),
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(4) {display:flex!important;align-items:center;gap:2px;min-width:0}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(2)::before,
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(3)::before,
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(4)::before {display:block;flex:none;white-space:nowrap;margin:0}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(2) input,
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(3) input,
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(4) input {flex:1;width:0!important;min-width:0!important;text-align:right}
}

/* Phone item name: label left, full remaining input width on the right. */
@media screen {
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:first-child {display:grid!important;grid-template-columns:max-content minmax(0,1fr);align-items:center;column-gap:3px;row-gap:1px;grid-column:1/-1}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:first-child::before {grid-column:1;grid-row:1;margin:0;white-space:nowrap}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:first-child .itemname {grid-column:2;grid-row:1;width:100%!important;min-width:0!important;margin:0}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:first-child small {grid-column:2;grid-row:2;margin:0}
}

.part-code{display:flex;align-items:center;gap:3px;min-width:0}
.part-code .part-code-value{width:130px;min-width:0;padding:1px 2px}
.part-code button{padding:1px 4px;min-height:18px}
@media screen {
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:first-child {grid-template-columns:max-content minmax(0,1fr) minmax(0,1fr)}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:first-child .itemname {grid-column:2;grid-row:1}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:first-child .part-code {grid-column:3;grid-row:1;display:flex;align-items:center;gap:2px;min-width:0;margin:0}
html[data-view-mode="mobile"] #modal.repair-editor #lines .part-code>span {flex:none;white-space:nowrap}
html[data-view-mode="mobile"] #modal.repair-editor #lines .part-code .part-code-value {flex:1;width:0!important;min-width:0!important;height:18px!important;min-height:18px!important;padding:1px;user-select:text;-webkit-user-select:text}
html[data-view-mode="mobile"] #modal.repair-editor #lines .part-code button {flex:none;min-height:18px;height:18px;padding:1px 3px;white-space:nowrap}
}

/* Reduce only amount-input width to 70% of its previous flexible width. */
@media screen {
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(2),
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(3),
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(4) {display:grid!important;grid-template-columns:max-content minmax(0,.7fr) minmax(0,.3fr);column-gap:0;align-items:center}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(2)::before,
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(3)::before,
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(4)::before {margin-right:2px}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(2) input,
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(3) input,
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(4) input {grid-column:2;width:100%!important;min-width:0!important}
}

/* Keep all item amounts and delete on a single compact row. */
@media screen {
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody tr {grid-template-columns:repeat(3,minmax(0,1fr)) max-content;column-gap:3px;row-gap:2px}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(2),
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(3),
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(4) {grid-template-columns:max-content minmax(0,1fr);gap:2px}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(2)::before,
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(3)::before,
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(4)::before {margin:0}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:last-child {grid-column:4;grid-row:2;display:flex!important;align-items:center;justify-content:flex-end;padding:0}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:last-child button {height:18px;min-height:18px;margin:0;padding:1px 3px;white-space:nowrap}
}

/* Compact item-input widths without shrinking text or control heights. */
@media screen {
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:first-child .itemname {width:60%!important;justify-self:start}
html[data-view-mode="mobile"] #modal.repair-editor #lines .part-code .part-code-value {flex:0 1 60%;width:60%!important;min-width:0!important}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(2),
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(3),
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(4) {grid-template-columns:max-content minmax(0,.6fr) minmax(0,.4fr);column-gap:0}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(2)::before,
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(3)::before,
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(4)::before {margin-right:2px}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(2) input,
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(3) input,
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(4) input {width:100%!important;grid-column:2;justify-self:start}
}

/* Align item inputs and reduce control height by twenty percent. */
@media screen {
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody tr {--item-label-gutter:calc(3em + 3px)}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:first-child {grid-template-columns:var(--item-label-gutter) minmax(0,1fr) minmax(0,1fr);column-gap:0}
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(2),
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(3),
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:nth-child(4) {grid-template-columns:var(--item-label-gutter) minmax(0,.6fr) minmax(0,.4fr);column-gap:0}
html[data-view-mode="mobile"] #modal.repair-editor #lines input,
html[data-view-mode="mobile"] #modal.repair-editor #lines .part-code .part-code-value {height:14.4px!important;min-height:14.4px!important;padding-top:0;padding-bottom:0}
html[data-view-mode="mobile"] #modal.repair-editor #lines .part-code button,
html[data-view-mode="mobile"] #modal.repair-editor #lines tbody td:last-child button {height:14.4px;min-height:14.4px;padding-top:0;padding-bottom:0}
}
