/* A compact working interface; existing fields, roles and actions are retained. */
.sidebar .title-space{display:none}
.sidebar .brand{padding:20px 20px 15px}
.sidebar .brand strong{font-size:27px}
.sidebar .brand small{display:none}
.sidebar .new-order{margin-bottom:10px;min-height:44px}
.sidebar .journal-nav{margin-bottom:10px;min-height:40px}
.sidebar .search-wrap{margin-bottom:7px}
.sidebar-filters{margin:0 20px 12px;border-bottom:1px solid #3b4237;padding-bottom:4px}
.sidebar-filters>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;cursor:pointer;color:#d9dfd2;font-size:12px;list-style:none}
.sidebar-filters>summary::-webkit-details-marker,.sidebar-more>summary::-webkit-details-marker{display:none}
.sidebar-filters>summary span:last-child{color:#adb7a1;font-size:11px}
.sidebar-filters>summary span:last-child::after{content:' ▾'}
.sidebar-filters[open]>summary span:last-child::after{content:' ▴'}
.sidebar-filters .filters{margin:0;gap:4px}
.sidebar-filters .filters button{min-height:40px}
.sidebar-filters .order-sort{padding:8px 0 10px}
.sidebar .list-label{font-size:10px;padding-bottom:7px}
.sidebar .order-list,.journal-mode .sidebar .order-list{flex:1 1 180px;min-height:144px;max-height:none}
.sidebar .sidebar-bottom{padding:6px 12px 9px}
.sidebar .sidebar-action{min-height:40px;font-size:13px}
.sidebar-more>summary{cursor:pointer;color:#d9dfd2;font-size:13px;padding:11px 10px;min-height:40px;list-style:none}
.sidebar-more>summary::after{content:' ▾';color:#aeb69f}
.sidebar-more[open]>summary::after{content:' ▴'}
.sidebar-more-content{max-height:180px;overflow-y:auto;border-left:1px solid #59644b;margin:0 9px 4px;padding-left:4px}
.sidebar .account-row{padding-top:4px}
.sidebar .account-row strong{font-size:13px}
.sidebar .account-row span{font-size:11px}
.sidebar .storage-note{padding-top:5px}
.order-header{align-items:flex-start;padding-top:18px;padding-bottom:16px}
.order-header>div:first-child{min-width:0;flex:1}
.header-title{gap:8px}
.header-title h1{max-width:100%;min-width:0;font-size:27px}
.header-title #orderMenu{flex:none;font-size:21px;min-width:44px;min-height:44px;margin-left:auto}
.order-header .eyebrow{font-size:10px;margin-bottom:4px}
.order-header .subheading{font-size:12px;margin-top:2px}
.order-context{margin-top:7px;font-size:13px;min-width:0}
.order-customer{display:flex;align-items:center;gap:5px 14px;flex-wrap:wrap;line-height:1.5}
.order-customer strong{font-weight:600;overflow-wrap:anywhere}
.order-customer .customer-phone{padding:6px 0;min-height:32px}
.order-composition{font-size:12px;color:#626b56;max-width:100%}
.order-composition>summary{cursor:pointer;line-height:1.5;padding:7px 0;overflow-wrap:anywhere}
.order-composition>summary b{font-weight:600;white-space:nowrap;color:#665714}
.order-composition>div{max-height:135px;overflow:auto;border-left:2px solid #e4d05f;padding-left:10px}
.order-composition p{margin:5px 0;line-height:1.5;overflow-wrap:anywhere}
.header-actions{padding-top:0;max-width:510px;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.order-status{display:flex;align-items:center;gap:9px;font-size:12px;color:#606956;flex:1 0 100%;justify-content:flex-end}
.order-status>span{white-space:nowrap}
.order-status select{min-width:0;width:190px;font-size:13px;height:40px}
.header-actions>button{min-height:40px}
.workflow{overflow-x:auto;scroll-behavior:auto;scrollbar-width:thin}
.workflow .step{flex:none;padding:14px 13px;min-height:48px;font-size:12px}
.workflow .step:first-child,.workflow .step:last-child{flex:none}
.stage-heading .stage-count{white-space:nowrap;font-size:11px}
.equipment-help,.upload-help{color:#66715a;font-size:12px;line-height:1.5}
.equipment-help>summary,.upload-help>summary{cursor:pointer;min-height:36px;padding:8px 0}
.equipment-help p,.upload-help p{margin:0 0 12px}
.equipment-item{padding:0!important}
.equipment-summary{display:flex;gap:10px;align-items:center;cursor:pointer;padding:13px 14px;min-height:54px;list-style:none}
.equipment-summary::-webkit-details-marker{display:none}
.equipment-summary span{flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px;font-weight:600;line-height:1.5}
.equipment-summary b{font-size:13px;white-space:nowrap;color:#49533b}
.equipment-summary small{font-size:11px;color:#69745b}
.equipment-summary small::after{content:' ▾'}
.equipment-item[open]>.equipment-summary{border-bottom:1px solid #dee3d4}
.equipment-item[open]>.equipment-summary small::after{content:' ▴'}
.equipment-body{padding:14px}
.equipment-heading strong{font-size:12px;color:#66715a}
.dropzone{min-height:0;padding:14px;justify-content:space-between;gap:14px}
.upload-buttons{display:flex;gap:8px;flex-shrink:0}
.drop-text span{font-size:12px;color:#66715a}
.upload-help{margin-top:2px}
.upload-help p{font-size:12px;max-width:650px}
@media(min-width:1201px){.workflow .step{flex:1}.workflow .step:first-child,.workflow .step:last-child{flex:1}}
@media(max-width:900px){
 .sidebar .brand{padding-top:17px;padding-bottom:12px}
 .order-header{display:block}
 .header-actions{max-width:none;justify-content:flex-start;margin-top:9px}
 .order-status{flex:1 0 auto;justify-content:flex-start}
 .order-header .order-customer .customer-phone{min-height:44px;padding:11px 0}
 .order-customer{gap:0 12px}
 .order-header .subheading{font-size:11px}
}
@media(max-width:650px){
 .journal{padding-top:13px}
 .journal-heading{margin-bottom:12px;gap:10px}
 .journal-heading .eyebrow{display:none}
 .journal-heading h1{font-size:24px;margin-bottom:4px}
 .journal-heading p{font-size:12px}
 .journal-heading .primary{min-height:44px;padding:10px 14px}
 .journal-metrics{gap:7px;margin-bottom:12px}
 .journal-metric{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:48px;padding:9px 11px}
 .journal-metric span{font-size:12px;text-align:left}
 .journal-metric strong{font-size:22px;margin:0}
 .journal-tools{gap:7px;margin-bottom:7px}
 .journal-sections{margin-bottom:7px}
 .journal-summary{margin-bottom:8px}
 .journal-summary span{width:auto;font-size:11px}
 .journal-mode .save-indicator{max-width:none}
}
@media(max-width:600px){
 .order-header{padding:10px 14px 12px}
 .order-header .eyebrow{display:none}
 .header-title h1{font-size:23px;max-width:none}
 .order-context{margin-top:3px}
 .order-customer strong{max-width:100%;font-size:13px}
 .order-composition>summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;padding:3px 0 6px}
 .order-composition[open]>summary{display:block}
 .header-actions{gap:7px;margin-top:8px}
 .order-status{flex:1 0 100%;font-size:12px;justify-content:space-between}
 .order-status select{font-size:16px;flex:1;max-width:240px;height:42px}
 .header-actions>button{flex:1 1 auto;min-height:42px;font-size:12px;padding:9px 10px}
 .workflow{padding:0 14px}
 .workflow .step{min-height:48px;padding:12px 11px;font-size:12px}
 .stage-scroll{padding-top:16px}
 .stage-heading h2{font-size:21px}
 .stage-heading p{font-size:12px}
 .stage-count{padding:6px;white-space:nowrap}
 .field>label,.label-row label{font-size:13px}
 .card-head .hint{font-size:12px}
 .dropzone{display:block;padding:12px;min-height:0}
 .drop-text strong{display:none}
 .drop-text span{display:block;line-height:1.5;margin-bottom:10px}
 .upload-buttons{display:flex;flex-wrap:wrap;gap:8px}
 .upload-buttons .secondary{flex:1 1 120px;width:auto;min-width:0;min-height:44px;font-size:12px}
 .upload-help>summary,.equipment-help>summary{min-height:40px}
 .equipment-summary{padding:12px;gap:8px}
 .equipment-summary small{font-size:0}
 .equipment-summary small::after{font-size:14px}
 .equipment-body{padding:12px}
 .equipment-heading .text-button{min-height:40px}
 .quick-manage{font-size:11px;min-height:32px}
 .chip{font-size:12px}
}
@media(max-height:600px) and (max-width:900px){
 .sidebar .brand{padding:8px 20px}
 .sidebar .order-list{min-height:100px}
 .order-header .subheading{display:none}
 .order-composition{display:none}
}

/* One predictable work surface for manually saved financial forms. */
dialog.work-form{position:fixed;inset:auto;margin:0;left:var(--form-left);top:var(--form-top);width:var(--form-width);height:var(--form-height);max-width:none;max-height:none;box-sizing:border-box;padding:0;overflow:hidden}
dialog.work-form[open]{display:flex;flex-direction:column}.work-form #dialogBody,.work-form fieldset{display:flex;flex-direction:column;min-height:0;max-height:none;height:100%}
.work-form #dialogBody,.work-form fieldset{flex:1;min-width:0}
.work-form .modal-head{flex:none;gap:16px;padding:14px 20px;min-height:68px}
.work-form .modal-head h2{flex:1;font-size:18px;overflow-wrap:anywhere}
.work-form .form-back{background:transparent;color:#45563a;flex:none;padding:8px 0;min-height:44px;font-size:13px;text-align:left}
.work-form .modal-content{flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;padding:20px}
.work-form .modal-content p{font-size:13px;line-height:1.5}
.work-form .modal-actions{position:relative;flex:none;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 20px;background:#fff}
.work-form .modal-actions>button{min-height:44px;font-size:13px}
.work-form .form-save-status{flex:1 1 220px;min-width:0;margin:0!important;font-size:12px;line-height:1.5;color:#516045;font-weight:500!important}
.form-more{position:relative;flex:none}
.form-more>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;min-width:52px;min-height:44px;background:#edf0e8;border-radius:7px;color:#45543b;font-size:13px}
.form-more>summary::-webkit-details-marker{display:none}
.form-more>div{position:absolute;left:0;bottom:calc(100% + 8px);width:220px;padding:6px;display:grid;gap:4px;background:#fff;border:1px solid #d8dece;border-radius:10px;box-shadow:0 10px 35px #202e2530;z-index:5}
.form-more button{text-align:left;min-height:44px;font-size:13px;width:100%}
.work-form .estimate-error,.work-form .modal-error{flex:none;max-height:100px;overflow:auto}
.journal-tools{position:relative;flex-direction:row;align-items:start}
.journal-options{flex:none}
.journal-options>summary{list-style:none;cursor:pointer;min-height:44px;padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:7px;font-size:13px;color:#3d4f30}
.journal-options>summary::-webkit-details-marker{display:none}
.journal-options>summary::after{content:' ▾'}
.journal-options-panel{position:absolute;top:52px;right:0;z-index:10;width:min(330px,100%);padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 12px 30px #34452920}
.journal-sort-label{display:grid;gap:8px;color:#516045;font-size:13px}
.journal-tools .journal-sort-label select{width:100%;margin:0}
.journal-options .journal-sections{margin:12px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:6px}
.journal-options .journal-sections button{min-height:44px;border:1px solid var(--line)}
.employee-home{height:100%;overflow:auto;padding:30px;min-width:0;box-sizing:border-box}
.employee-home h1{font-size:28px;margin:0 0 8px}
.employee-home p{color:#67705c;font-size:14px;line-height:1.5}
.employee-tools{display:flex;gap:10px;max-width:800px;margin:22px 0 10px}
.employee-tools input{flex:1;min-width:0;background:#fff}
.employee-count{font-size:12px;color:#6b755f;margin-bottom:14px}
.employee-orders{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.employee-order{display:grid;gap:10px;text-align:left;min-width:0;padding:18px;background:#fff;color:#333f2b;border:1px solid var(--line);border-radius:12px;line-height:1.45}
.employee-order:hover{border-color:#94a180;box-shadow:0 4px 14px #3344240a}
.employee-order>span:first-child{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:14px}
.employee-order>.employee-model{font-size:16px;overflow-wrap:anywhere}
.employee-order>.employee-date{font-size:12px;color:#717a68}
.employee-order .employee-client{font-size:13px;overflow-wrap:anywhere;color:#67715c}
#employeeMore{margin-top:16px}
.chat-grouped .chat-bubble>header{display:none}.chat-grouped .chat-avatar{visibility:hidden}.chat-grouped .chat-message{margin-top:3px}
.chat-tips-toggle{background:#ffffff0d;border:1px solid #ffffff24;border-radius:50%;color:#d3deda;width:38px;min-height:38px;flex:none;font-size:16px;margin-left:auto}
.chat-caption .chat-push-settings{margin-left:0}
.chat-tips{padding:10px 16px;background:#263943;color:#d6e2e4;display:flex;align-items:center;gap:12px;flex:none;min-width:0}
.chat-tips[hidden]{display:none}.chat-tips p{font-size:12px;line-height:1.5;margin:0;color:inherit}.chat-tips button{flex:none;min-height:44px;padding:8px;color:#ffe26c;background:transparent;font-size:12px}
.chat-bubble>header span,.chat-bubble>footer{font-size:11px}
.chat-compact .chat-tips{display:none}
@media(max-width:700px){
 dialog.work-form{border:0;border-radius:0}
 .work-form .modal-head{gap:4px 12px;padding:8px 14px;min-height:0;flex-wrap:wrap}
 .work-form .modal-head h2{font-size:16px;flex-basis:100%;order:2;margin-bottom:4px}
 .work-form .modal-head .close{margin-left:auto}
 .work-form .modal-content{padding:16px 14px}
 .work-form .modal-actions{padding:10px 14px max(10px,env(safe-area-inset-bottom));gap:8px}
 .work-form .form-save-status{flex-basis:100%;font-size:12px}
 .work-form .modal-actions>button{flex:1;white-space:normal;padding:9px 8px;line-height:1.3}
 .work-form input,.work-form textarea,.work-form select{font-size:16px;min-height:44px}
 .work-form .field>label{font-size:13px}
 .journal-options>summary{font-size:12px;padding:12px 10px}
 .employee-home{padding:20px 14px}.employee-home h1{font-size:25px}
 .employee-tools{margin-top:16px;flex-wrap:wrap}.employee-tools input{font-size:16px;flex:1 1 200px}.employee-tools button{min-height:44px}
 .employee-orders{grid-template-columns:1fr}
 .chat-caption{gap:8px}.chat-tips-toggle{min-height:44px;width:36px}.chat-caption .chat-push-settings{min-width:40px}
}
@media(max-height:480px){.chat-tips{display:none}.work-form .modal-head h2{flex-basis:auto;order:0;margin:0;font-size:14px}.work-form .modal-actions{padding-top:6px;padding-bottom:6px}.work-form .form-save-status{font-size:11px}}
