/* Desktop machine header: photo and record actions start at the top of the panel. */
.machine-profile-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,310px);align-items:start;gap:12px;margin-bottom:12px}
.machine-profile-top>.md-profile-header{margin:0!important;padding-top:0!important;align-items:flex-start;min-width:0}
.machine-utility-panel{display:grid;gap:8px;align-content:start}.machine-utility-panel .asset-barcode-inline{margin:0!important;padding:0!important;float:none!important;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:10px}.machine-utility-panel .machine-source-actions{margin:0!important;justify-content:flex-end}.machine-utility-panel .btn{font-size:12px}.mobile-app-bar,.mobile-quick-nav,.mobile-list-back{display:none!important}
@media screen and (max-width:1050px){.machine-profile-top{grid-template-columns:minmax(0,1fr)}.machine-utility-panel{justify-self:stretch;grid-template-columns:auto minmax(0,1fr);align-items:center}.machine-utility-panel .asset-barcode-inline{justify-content:flex-start}}
@media screen and (max-width:760px){
 html,body{width:100%;min-width:0}body{margin:0;padding-bottom:calc(66px + env(safe-area-inset-bottom));-webkit-text-size-adjust:100%}.app-shell,.main-area{min-width:0!important;width:100%!important;margin-left:0!important;grid-template-columns:minmax(0,1fr)!important}.sidebar{display:none!important}#content.content{padding:8px!important;min-width:0}.workspace-page-title{margin:8px 10px 4px!important;font-size:18px!important}
 body[data-theme] .module-nav{position:sticky;top:0;z-index:40;display:block;padding:0 10px;min-height:56px;overflow:visible;background:#fff;box-shadow:0 1px 7px #20372e12;border-bottom:1px solid #d5e2dc}.mobile-app-bar{display:flex!important;justify-content:space-between;align-items:center;min-height:56px;gap:10px;color:#293f34}.mobile-app-bar strong{font:700 15px Arial;letter-spacing:1px}.mobile-app-bar small{display:block;font:11px Arial;letter-spacing:0;margin-top:3px;color:#6c7d73}.mobile-app-bar button{background:#edf5f1;border:1px solid #ccded4;border-radius:6px;color:#244536;padding:10px 12px;min-height:44px;font:14px Arial}
 body[data-theme] .module-nav .classic-icons{display:none!important}body[data-theme] .module-nav.mobile-menu-open .classic-icons{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;max-height:calc(100dvh - 125px);overflow:auto;padding:8px 0;gap:8px}body[data-theme] .classic-icons>button{border:1px solid #dbe6df;border-radius:6px;min-height:58px;padding:8px 4px;color:#314c3c;background:#f7faf8;font-size:12px}body[data-theme] .classic-icons svg{color:#087f76}.module-nav .classic-icons .ribbon-search{grid-column:1/-1;width:auto!important;min-height:44px!important;flex:none!important}.module-nav .classic-icons .nav-account{grid-column:1/-1}.module-nav .classic-icons .nav-account summary{width:auto!important;min-height:44px!important}.account-menu{max-width:calc(100vw - 20px);max-height:70dvh;overflow:auto}
 .mobile-quick-nav{display:grid!important;grid-template-columns:repeat(4,1fr);position:fixed;inset:auto 0 0;z-index:45;background:#fff;border-top:1px solid #cfddd4;padding:5px 6px calc(5px + env(safe-area-inset-bottom));box-shadow:0 -3px 12px #283c3210}.mobile-quick-nav button{min-height:48px;border:0;border-radius:6px;background:transparent;color:#60776a;font:13px Arial}.mobile-quick-nav button.active{background:#e5f4ec;color:#087f76;font-weight:bold}
 #content :is(.btn,button,input,select){min-height:44px!important}#content :is(input,select,textarea){font-size:16px!important;max-width:100%;box-sizing:border-box}#content button{touch-action:manipulation}#content :is(input[type=checkbox],input[type=radio]){min-height:24px!important;width:24px;height:24px;vertical-align:middle}#content label:has(input[type=checkbox],input[type=radio]){min-height:44px;align-content:center}#content :is(.form-grid,.cc-form-grid,.md-upload-fields){grid-template-columns:minmax(0,1fr)!important;width:100%;gap:14px}#content .form-field{grid-column:1/-1;min-width:0}#content :is(.form-field,.cc-form-grid) input{width:100%}#content :is(.profile-actions,.business-actions,.stores-toolbar,.supplier-toolbar,.team-toolbar,.workspace-panel-toolbar,.cc-right-buttons){gap:8px;flex-wrap:wrap}#content :is(.card,.md-shell,.cc-detail,.cc-tree,.team-split,.record-screen-root,.modal){min-width:0;max-width:100%}
 #content :is(.md-shell,.cc-compact,.customer-centre,.rental-workspace){grid-template-columns:minmax(0,1fr)!important;min-height:0}.md-shell>.md-list-pane{border-right:0;max-height:none}.md-record-list{max-height:55dvh}.md-shell>.md-detail-pane{display:none!important}.md-shell.mobile-detail-open>.md-list-pane{display:none!important}.md-shell.mobile-detail-open>.md-detail-pane{display:block!important}#content .cc-compact .cc-tree{border-right:0}#content .cc-compact .cc-detail{display:none!important}#content .cc-compact.mobile-detail-open .cc-tree{display:none!important}#content .cc-compact.mobile-detail-open .cc-detail{display:block!important}.mobile-list-back{display:inline-flex!important;align-items:center;margin-bottom:10px}.md-detail-pane{padding:12px!important}.md-record-copy b{white-space:normal!important;font-size:14px!important}.md-record{padding:8px!important;min-height:52px!important}.md-record-copy small{font-size:12px!important}.md-profile-title h2{font-size:19px!important}.md-master-facts,.md-facts,.team-facts,.cc-facts{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}.md-master-facts :is(b,small),.md-facts :is(b,small){font-size:13px!important;overflow-wrap:anywhere}.machine-profile-top{grid-template-columns:minmax(0,1fr)}.machine-profile-top .md-profile-header{display:grid;grid-template-columns:88px minmax(0,1fr);gap:10px}.machine-profile-top .md-machine-photo{width:88px;height:88px;object-fit:cover}.machine-profile-top .profile-actions{grid-column:1/-1}.machine-utility-panel{grid-template-columns:1fr}.machine-utility-panel :is(.asset-barcode-inline,.machine-source-actions){justify-content:flex-start}.md-tabs,.team-tabs,.rental-navigation,.rental-tabs{display:flex;overflow-x:auto;flex-wrap:nowrap!important;max-width:100%;scrollbar-width:thin;position:static}.md-tabs>button,.rental-navigation>button{flex-shrink:0;white-space:nowrap}.md-tabs{top:auto!important}
 #content :is(.cc-info,.cc-info-main,.cc-form-top,.quote-paper-head,.quote-totals-grid){grid-template-columns:minmax(0,1fr)!important;flex-direction:column;align-items:stretch}#content .cc-compact .cc-facts>div{display:grid;gap:3px;font-size:14px}#content .cc-compact #cc-tree-rows{max-height:55dvh}#content .cc-compact .cc-info{grid-template-columns:1fr}#content .cc-compact .cc-note-line{flex-wrap:wrap}.record-screen-root .modal,.modal-root .modal{width:100%!important;max-width:100%!important;margin:0!important}.modal-backdrop{padding:8px!important}.modal-body{padding:12px!important;max-height:calc(100dvh - 160px);overflow:auto}.record-screen-root .modal-body{max-height:none}.modal-head,.modal-foot{padding:12px!important;flex-wrap:wrap;gap:8px}.modal-foot{padding-bottom:max(12px,env(safe-area-inset-bottom))!important}.login-card{width:calc(100% - 24px);max-width:440px;padding:24px 18px!important}.login-page{padding:16px 0!important}.login-form input{font-size:16px;min-height:48px}
 .mobile-table-scroll,.table-wrap,.booking-commercial-scroll,.quote-lines-wrap{max-width:100%;overflow:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.mobile-table-scroll table{min-width:620px}.mobile-table-scroll:focus-visible{outline:2px solid #087f76}.quote-editor,.supplier-editor,.booking-commercial{max-width:100%;min-width:0}.team-split.with-detail{grid-template-columns:1fr!important}.team-split>aside{max-height:none!important}.team-split>article{border-left:0!important;border-top:1px solid #d7e3dc}.team-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}.team-insight-grid,.report-grid,.machine-card-grid,.employee-grid,.dashboard-grid,.stores-layout{grid-template-columns:minmax(0,1fr)!important}.team-insight-grid>section:last-child{grid-column:auto!important}.rental-command .team-register td:nth-child(3){min-width:0}
 #team-body .mobile-record-cards{display:block;min-width:0;width:100%;border:0}#team-body .mobile-record-cards thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#team-body .mobile-record-cards tbody{display:grid;gap:12px;padding:10px}#team-body .mobile-record-cards tr{display:grid;grid-template-columns:1fr 1fr;border:1px solid #d7e5dc;border-radius:7px;padding:10px;background:#fff;min-width:0}#team-body .mobile-record-cards td{display:block;min-width:0!important;border:0;padding:6px!important;font-size:14px;overflow-wrap:anywhere;white-space:normal}#team-body .mobile-record-cards td::before{content:attr(data-mobile-label);display:block;font-size:10px;color:#6a7e71;margin-bottom:4px}#team-body .mobile-record-cards td:nth-child(1){display:none}#team-body .mobile-record-cards :is(td:nth-child(2),td:nth-child(3),td:nth-child(6),td:nth-child(7),td[colspan]){grid-column:1/-1}#team-body .mobile-record-cards .team-machine-link{font-size:16px}.rental-equipment-cell{gap:12px}.rental-machine-image{width:86px;height:64px}.rental-command .team-register tr.selected{background:#e4f5ec}.team-status{white-space:normal!important;font-size:12px!important}.rental-command #team-body{overflow:visible}
}
@media screen and (max-width:760px){
 #content :is(.home-workspace-grid,.home-module-stack,.v8-inventory,.rental-overview-grid,.rental-invoice-parties){grid-template-columns:minmax(0,1fr)!important}
 #content :is(.dashboard-stats,.stat-grid,.quote-meta){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #content :is(.supplier-summary,.stores-summary,.rental-toolbar,.quote-editor-toolbar,.quote-editor-footer,.supplier-bill-actions){display:flex;flex-wrap:wrap;gap:8px}
 .v8-inventory>aside{max-height:38dvh}.v8-part-detail{padding:12px}.quote-meta>label{min-width:0}.quote-paper{max-width:100%;min-width:0}.quote-total-row{flex-wrap:wrap}.quote-lines{min-width:820px}.quote-editor{overflow-x:auto}
 #app-message-dialog .app-message-panel{width:calc(100vw - 24px);max-width:100%;margin:12px}.app-message-panel button{min-width:44px;min-height:44px}
 .snapshot-bar{grid-template-columns:95px minmax(0,1fr);font-size:12px}.snapshot-bar b{grid-column:1/-1;text-align:right}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.mobile-quick-nav,.mobile-app-bar,.mobile-record-cards{animation:none!important;transition:none!important}}
@media print{.mobile-app-bar,.mobile-quick-nav,.mobile-list-back{display:none!important}.machine-profile-top{display:block}.machine-utility-panel{display:none!important}}
