.erp-workspace{--aton-black:#141715;--aton-gold:#d6a73a;--aton-teal:#0b6f78;--aton-ivory:#f6f2e9;--aton-white:#ffffff;--bg:var(--aton-ivory);--card:var(--aton-white);--soft:var(--aton-ivory);--ink:var(--aton-black);--muted:#68716c;--line:#d8d3c9;--green:var(--aton-teal);--green2:var(--aton-teal);--green-soft:#eef5f3;--accent-ink:var(--aton-teal);--yellow:var(--aton-gold);--nav:var(--card);--ink-band:var(--aton-black);--background:var(--bg);--surface:var(--card);--surface-elevated:var(--card);--surface-muted:var(--soft);--foreground:var(--ink);--muted-foreground:var(--muted);--border:var(--line);--primary:var(--aton-teal);--primary-foreground:var(--aton-white);--success:#287a55;--warning:var(--aton-gold);--focus-ring:var(--aton-teal);--selection:var(--green-soft);--bg-main:var(--bg);--bg-card:var(--card);--text-primary:var(--ink);--text-muted:var(--muted);--text:var(--ink);--text-secondary:var(--muted);--text-100:var(--ink);--text-300:var(--muted);--text-400:var(--muted);--text-500:var(--muted);--bg-primary:var(--card);--bg-secondary:var(--soft);--border-color:var(--line);--border-strong:var(--muted);--surface-hover:var(--soft);--accent:var(--green);--accent-bg:var(--green-soft);--primary-glow:var(--green-soft);--error:var(--danger);--radius:var(--radius-md)}:is(.dark,[data-theme=dark]) .erp-workspace{--bg:#141715;--card:#1d2421;--soft:#252e29;--ink:#f6f2e9;--muted:#b6c0b9;--line:#455047;--green:#7dced0;--green2:#7dced0;--green-soft:#213c39;--accent-ink:#7dced0;--primary:#7dced0;--primary-foreground:#141715;--focus-ring:#7dced0}.erp-workspace .workspace-menubar{background:var(--aton-black);color:var(--aton-ivory);border-bottom:2px solid var(--aton-gold)}.erp-workspace .workspace-menubar>a.active{background:var(--aton-gold);color:var(--aton-black)}.erp-workspace .workspace-brand{background:var(--aton-ivory);border-radius:4px;padding:2px 8px}.erp-workspace .workspace-brand img{width:138px;height:auto;object-fit:contain}.erp-workspace #view-dashboard .aton-dashboard-kpis .kpi{position:relative;min-height:156px;overflow:hidden}.erp-workspace #view-dashboard .aton-dashboard-kpis .kpi:after{content:"";position:absolute;inset:auto -28px -42px auto;width:108px;height:108px;border:1px solid color-mix(in srgb,var(--aton-gold) 32%,transparent);border-radius:50%}.erp-workspace #view-dashboard .aton-kpi-icon{display:grid;place-items:center;width:34px;height:34px;margin-bottom:14px;border-radius:9px;background:var(--green-soft);color:var(--green)}.erp-workspace #view-dashboard .aton-dashboard-kpis .kpi small{display:block}.erp-workspace #view-dashboard .aton-dashboard-kpis .kpi strong{position:relative;z-index:1}.erp-workspace #view-dashboard .aton-section-kicker{display:block;margin-bottom:5px;color:var(--green);font:700 10px/1.2 var(--font-mono);letter-spacing:.11em;text-transform:uppercase}.erp-workspace #view-dashboard .aton-operation-card{display:flex;flex-direction:column;justify-content:space-between}.erp-workspace #view-dashboard .aton-finance-alert{display:flex;align-items:center;gap:9px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:13px}.erp-workspace #view-dashboard .aton-finance-alert svg{color:var(--aton-gold);flex:0 0 auto}.erp-workspace #view-dashboard .aton-finance-alert strong{color:var(--ink)}.erp-workspace #view-dashboard .aton-finance-alert a{margin-left:auto;color:var(--green);font-weight:700}@media (max-width:768px){.erp-workspace #view-dashboard .aton-dashboard-kpis .kpi{min-height:138px}.erp-workspace #view-dashboard .aton-finance-alert{align-items:flex-start;flex-wrap:wrap}.erp-workspace #view-dashboard .aton-finance-alert a{width:100%;margin-left:26px}}.erp-workspace :is(.btn.primary,.btn-primary){background:var(--aton-gold);color:var(--aton-black);border:1px solid var(--aton-gold)}.erp-workspace :is(.btn.primary,.btn-primary):hover{background:color-mix(in srgb,var(--aton-gold) 88%,var(--aton-white))}.erp-workspace .card-header{padding:12px 16px;border-bottom:1px solid var(--line)}.erp-workspace .card-title{margin:0;font-size:15px;color:var(--green)}.erp-workspace .aton-query-error{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 16px;margin-bottom:12px;border:1px solid var(--danger);border-radius:var(--radius-md);background:var(--card)}.erp-workspace .filters{display:flex;flex-wrap:wrap;gap:4px}.erp-workspace .filters button{cursor:pointer;padding:6px 10px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--card);color:var(--ink);font-size:13px}.erp-workspace .filters button.active{background:var(--green-soft);color:var(--green);border-color:var(--green)}.erp-workspace .modal-header{background:var(--aton-black);color:var(--aton-ivory);border-bottom:2px solid var(--aton-gold)}.erp-workspace .modal-header :is(h2,.modal-title,.modal-close){color:var(--aton-ivory)}.erp-workspace .modal-subtitle{color:var(--line)}.erp-workspace .workspace-tab.active{border-top-color:var(--aton-gold)}.erp-workspace :is(button,a,input,select,textarea):focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px}.erp-workspace .workspace-menubar :focus-visible{outline-color:var(--aton-gold)}.workspace-quick-links{display:flex;gap:6px;min-width:0;overflow-x:auto}.workspace-quick-links>a{flex-shrink:0;white-space:nowrap}.workspace-preferences{margin:auto;width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;padding:24px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-top:4px solid var(--aton-gold);border-radius:12px}.workspace-preferences::backdrop{background:rgb(20 23 21/65%)}.workspace-preferences h2{font-size:20px;margin:0 0 8px}.workspace-preferences h3{font-size:14px;margin:20px 0 8px}.workspace-preferences p{color:var(--muted);font-size:13px;margin-bottom:16px}.workspace-preference-option{display:flex;gap:10px;align-items:center;padding:8px 0}.workspace-preference-option input{accent-color:var(--aton-teal)}.workspace-preference-order{display:flex;gap:6px;align-items:center;padding:6px 0}.workspace-preference-order span{flex:1}.workspace-preference-footer{display:flex;justify-content:space-between;gap:12px;margin-top:20px}@media (max-width:768px){.erp-workspace .workspace-quickbar{flex-wrap:wrap}.workspace-quick-links{flex:1 1 calc(100% - 48px)}.erp-workspace .workspace-search{flex:1 0 100%;min-width:0}}:root{color-scheme:light}[data-theme=dark]{color-scheme:dark}.theme-select{border:1px solid var(--line);border-radius:6px;min-height:36px;padding:6px 10px;cursor:pointer;font-size:13px}.theme-select,.theme-select option{background:var(--card);color:var(--ink)}.theme-select:focus-visible{outline:2px solid var(--green);outline-offset:2px}.os-workspace-heading{position:sticky;top:0;z-index:12;background:var(--bg);padding:12px 0}.os-workspace-heading>:first-child{min-width:220px}.os-workspace-heading h1{white-space:nowrap;font-variant-numeric:tabular-nums}.os-workspace-heading .actions{flex-wrap:wrap;justify-content:flex-end}.os-workspace-summary>div{display:flex;flex-direction:column;gap:6px;min-width:0}.os-workspace-summary small{color:var(--muted)}.os-workspace .workspace-detail-grid{display:grid;gap:24px;align-items:start;margin-top:24px}.os-workspace .workspace-detail-grid>main{min-width:0}.os-workspace .os-tabs{margin-top:0}.os-workspace .os-tab{white-space:nowrap}.os-workspace article h2,.os-workspace-context h2{font-size:18px;margin-bottom:16px}.os-workspace dl{display:grid;gap:8px}.os-workspace dt{font-weight:600;color:var(--muted)}.os-workspace dd{margin:0 0 16px;white-space:pre-wrap;overflow-wrap:anywhere}.os-workspace-context p{margin-top:12px;overflow-wrap:anywhere}.os-context-size{display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--muted);margin-bottom:16px}.os-context-size input{width:100%;accent-color:var(--primary)}.agenda-dialog{background:var(--surface);color:var(--foreground);border:1px solid var(--border)}.agenda-dialog :is(input,select,textarea){background:var(--bg);color:var(--foreground)}@media (max-width:1100px){.os-workspace-heading{flex-direction:column;gap:12px}.os-workspace-heading .actions{justify-content:flex-start}.os-workspace .workspace-detail-grid{grid-template-columns:minmax(0,1fr)!important}.os-workspace-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}.adjustable-table{min-width:0}.table-view-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 16px 4px}.table-view-controls output,.table-view-controls>span{font-size:12px;color:var(--muted)}.table-view-controls output{min-width:42px;text-align:center;font-variant-numeric:tabular-nums}.table-view-controls .btn{min-height:32px}.table-drag-hint{margin:4px 16px 12px;font-size:12px;color:var(--muted)}.table-horizontal-controls{display:flex;gap:12px;align-items:center;padding:0 16px 12px}.table-horizontal-controls[hidden]{display:none}.table-horizontal-controls input{flex:1;min-width:0;accent-color:var(--primary)}.table-pan-viewport{overflow:auto;max-width:100%;cursor:grab}.table-pan-viewport:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}.table-pan-viewport.is-panning,.table-pan-viewport.is-panning *{cursor:grabbing!important;user-select:none}.table-scaled-content{zoom:var(--table-scale)}.adjustable-table .table-wrap{border:0;border-radius:0;overflow:visible}.adjustable-table .table{min-width:1040px}.adjustable-table .table :is(th,td){padding:10px 12px}.adjustable-table.is-compact .table :is(th,td){padding:4px 10px}.adjustable-table .table td .actions{flex-wrap:nowrap;gap:6px}.adjustable-table .table .btn{min-height:32px}#view-os>.page-head>:first-child{min-width:240px}#view-os .os-client-cell{max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#view-os>.page-head .actions{flex-wrap:wrap;justify-content:flex-end}@media (max-width:1280px){#view-os>.page-head{flex-direction:column;gap:16px}#view-os>.page-head .actions{justify-content:flex-start}}.record-form-modal{width:min(1280px,calc(100vw - 48px))!important;max-width:calc(100vw - 48px)!important;max-height:calc(100dvh - 48px)!important;display:flex;flex-direction:column;overflow:hidden;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg)}.record-form-modal>form,.service-order-form{display:flex;flex-direction:column;min-height:0;overflow:hidden}.record-form-modal :is(.modal-header,.modal-footer,.modal-tabs){flex-shrink:0}.record-form-modal .modal-body{min-height:0;overflow:auto;padding:20px 24px}.record-form-modal .modal-tabs{overflow-x:auto}.record-form-modal .modal-tab{white-space:nowrap}.record-form-modal :is(.form-group,.form-row,.form-grid){min-width:0}.record-form-modal .form-control{display:block;width:100%;min-width:0;min-height:38px;padding:8px 10px;background:var(--bg);color:var(--fg);border:1px solid var(--border);border-radius:var(--radius-sm)}.employee-form-modal{width:min(1040px,calc(100vw - 48px))!important}.employee-form-modal .modal-subtitle{color:color-mix(in srgb,var(--aton-ivory) 82%,transparent)}.employee-form .form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:16px;margin:16px 0}.employee-form .form-label{display:block;margin-bottom:6px}.employee-form .section-divider{margin:20px 0 12px;padding-bottom:8px;border-bottom:1px solid var(--border);font-size:15px;font-weight:600}.employee-form .section-divider:first-child{margin-top:0}.employee-private-fields{min-width:0;border:1px solid var(--border);border-radius:var(--radius);margin-top:20px;padding:16px}.employee-private-fields legend{padding:0 8px;color:var(--muted);font-size:13px}.employee-privacy-note{color:var(--muted);line-height:1.5;font-size:13px;margin-bottom:16px}.employee-flags,.employee-inactive-filter{display:flex;flex-wrap:wrap;gap:16px;align-items:center}.employee-flags label{display:flex;align-items:center;gap:8px}.employee-row-actions{flex-wrap:nowrap}.technician-schedule-backdrop{z-index:10000}.technician-schedule-dialog{width:min(1040px,calc(100vw - 48px))!important;padding:0;gap:0;z-index:10001}.technician-schedule-dialog .modal-header{padding-right:48px}.technician-schedule-dialog .modal-subtitle{color:var(--muted)}.technician-schedule-body{display:flex;flex-direction:column;gap:16px}.technician-schedule-body .employee-privacy-note{margin:0}.technician-schedule-toggle{display:flex;gap:8px;align-items:center;font-weight:600}.technician-schedule-toggle input{accent-color:var(--primary)}.technician-week-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr));gap:16px}.technician-work-day{min-width:0;padding:12px;border:1px solid var(--border);border-radius:var(--radius-sm)}.technician-work-day legend{padding:0 6px;font-weight:600}.technician-periods{display:flex;flex-direction:column;align-items:flex-start;gap:12px}.technician-period{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px;width:100%}.technician-period label{flex:1;min-width:100px;font-size:12px}.technician-period .form-control{margin-top:4px}.technician-exception-add{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}.technician-exception-add .form-label{display:flex;flex-direction:column;gap:6px}.technician-work-day>.danger{margin-top:12px}#view-employees .table-toolbar{display:flex;flex-wrap:wrap;gap:12px}#view-employees .table-toolbar .control{flex:1;min-width:200px}.record-form-modal :is(.input,.form-control):focus{outline:2px solid var(--focus-ring);outline-offset:2px}.fixed[role=dialog]:has(.customer-form){--bg:var(--background);--fg:var(--foreground);--muted:var(--muted-foreground);--border-strong:var(--muted-foreground);--bg-card:var(--surface);--text-muted:var(--muted-foreground);--radius:var(--radius-md);display:flex;flex-direction:column;gap:0;width:min(1120px,calc(100vw - 48px));max-width:calc(100vw - 48px);max-height:calc(100dvh - 48px);overflow:hidden;padding:0}.customer-form{min-height:0;max-height:none;height:min(760px,calc(100dvh - 160px));overflow:hidden}.customer-form .customer-form-content{min-height:0}.customer-form .inner-tabs{flex-shrink:0;overflow-x:auto}.customer-form .inner-tab{flex-shrink:0;white-space:nowrap}.customer-form :is(input:not([type=checkbox]):not([type=radio]),select,textarea){width:100%;min-width:0;min-height:40px;padding:9px 11px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--bg);color:var(--fg);box-shadow:inset 0 1px 2px color-mix(in srgb,var(--fg) 7%,transparent)}.customer-form :is(input:not([type=checkbox]):not([type=radio]),select,textarea)::placeholder{color:var(--muted);opacity:.82}.customer-form :is(input:not([type=checkbox]):not([type=radio]),select,textarea):focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px;border-color:var(--focus-ring)}.customer-address-layout{display:grid;grid-template-columns:minmax(0,1fr)}.customer-address-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}.customer-address-grid .form-field{min-width:0}.customer-address-grid .form-field label{display:block;margin-bottom:6px;color:var(--fg);font-size:13px;font-weight:600}.customer-address-cep{grid-column:span 3}.customer-address-street{grid-column:span 9}.customer-address-number{grid-column:span 2}.customer-address-neighborhood{grid-column:span 3}.customer-address-city{grid-column:span 5}.customer-address-state{grid-column:span 2}.customer-address-country{grid-column:span 3}.customer-address-complement{grid-column:span 9}.customer-form .customer-address-grid .form-control{min-height:42px;padding:9px 11px;font-size:14px}.record-form-modal .service-order-data-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 24px}.service-order-data-grid>:is(.form-section-title,.form-row){grid-column:1/-1}.service-order-data-grid .form-section-title{margin:0;padding-top:12px}.service-order-data-grid>.form-group:last-child{grid-column:1/-1}.service-order-appointment{grid-column:1/-1;min-width:0;display:flex;flex-direction:column;gap:12px}.service-order-appointment .form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr));gap:16px;margin:0}.service-order-appointment .form-label{display:block;margin-bottom:6px}.service-order-appointment input[type=checkbox]{width:auto;accent-color:var(--primary)}.record-form-modal .form-row .form-group{min-width:140px}.service-order-items-editor{min-width:0}.service-order-items-editor,.service-order-items-editor [data-testid=initial-items-editor]{display:flex;flex-direction:column;gap:16px}.service-order-items-editor>.form-row:first-child{display:grid;grid-template-columns:120px minmax(220px,1fr) 120px 150px 150px;gap:12px}.record-form-modal .service-order-items-editor>.form-row:first-child .form-group{min-width:0}.service-order-items-editor>.btn{align-self:flex-end;min-height:40px}.service-order-items-editor table{width:100%;min-width:760px;border-collapse:collapse}.service-order-items-editor td:not(:nth-child(2)){white-space:nowrap;font-variant-numeric:tabular-nums}.service-order-items-editor td:nth-child(2),.service-order-items-editor th:nth-child(2){width:100%;min-width:240px;white-space:normal;overflow-wrap:anywhere}.service-order-items-editor>.form-row:last-child{justify-content:flex-end;border-top:1px solid var(--border);padding-top:16px}.service-order-items-editor>.form-row:last-child .form-group{flex:0 0 auto;min-width:130px;text-align:right}.document-layout-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;color:var(--muted);font-size:12px}.resizable-document-workspace{display:grid;grid-template-columns:minmax(0,var(--record-width)) 16px minmax(0,1fr);align-items:start}.document-output-panel,.document-record-panel{min-width:0}.document-record-panel>*+*{margin-top:20px}.document-record-panel .data-table td{white-space:normal}.document-record-panel .data-table .text-right{white-space:nowrap;font-variant-numeric:tabular-nums}.quote-line-table{width:100%;min-width:940px;table-layout:auto}.quote-service-table{min-width:760px}.quote-line-code-column{width:120px}.quote-line-unit-column{width:50px}.quote-line-quantity-column{width:80px}.quote-line-money-column{width:120px}.adjustable-table .quote-line-table :is(th,td){padding:10px 12px;vertical-align:top;white-space:nowrap}.adjustable-table.is-compact .quote-line-table :is(th,td){padding:4px 10px}.adjustable-table .quote-line-table .quote-line-description{min-width:320px;white-space:normal;overflow-wrap:anywhere}.quote-line-table tbody tr:hover td{background:var(--bg);color:var(--fg)}.quote-detail-header{flex-wrap:wrap;gap:16px}.quote-detail-header .quote-detail-heading{flex:1 1 320px;min-width:0}.quote-detail-heading>div{min-width:0}.quote-detail-identity{flex-wrap:wrap}.quote-detail-identity .page-title{overflow-wrap:anywhere}.quote-detail-header .page-actions{flex-wrap:wrap;justify-content:flex-end}.quote-secondary-actions{display:flex;flex-wrap:wrap;gap:8px}.quote-mobile-lines,.quote-mobile-nav,.quote-mobile-only,.quote-mobile-total{display:none}#quote-documents,#quote-products,#quote-summary,.quote-costs-panel{scroll-margin-top:16px}.quote-cost-items>summary{padding:12px 0;min-height:44px}.quote-cost-filters{display:grid;gap:12px;margin:12px 0 16px}.quote-pending-filter{display:flex;align-items:center;gap:10px;min-height:44px}.quote-pending-filter input{width:20px;height:20px;accent-color:var(--primary)}.quote-cost-item-list{display:grid;gap:12px;margin:0;padding:0;list-style:none}.quote-cost-item-list>li{border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px;min-width:0}.quote-cost-item-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}.quote-cost-item-values dt{font-size:12px;color:var(--muted)}.quote-cost-item-values dd{margin:4px 0 0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}@media (max-width:768px){.quote-detail-page{min-width:0}.quote-detail-page .quote-detail-header{align-items:stretch}.quote-detail-page .quote-detail-heading{flex-basis:auto;gap:12px}.quote-detail-page .page-title{font-size:24px}.quote-detail-page .page-actions{display:flex;width:100%;justify-content:flex-start}.quote-detail-page .btn,.quote-touch-dialog .btn{min-height:44px;white-space:normal}.quote-detail-page .page-actions>.btn{flex:1 1 auto}.quote-detail-page .quote-mobile-only{display:inline-flex}.quote-secondary-actions{display:none;width:100%}.quote-secondary-actions.is-open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.quote-mobile-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:16px 0}.quote-mobile-nav .btn{padding:8px 4px;font-size:13px}.quote-mobile-total{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:12px 16px;margin-bottom:20px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--card)}.quote-mobile-total strong{font-variant-numeric:tabular-nums;color:var(--primary)}.quote-items-card>.adjustable-table{display:none}.quote-mobile-lines{display:grid;list-style:none;gap:0;margin:0;padding:0 16px}.quote-mobile-lines>li{padding:16px 0;min-width:0;overflow-wrap:anywhere}.quote-mobile-lines>li+li{border-top:1px solid var(--border)}.quote-mobile-line-code{font:12px var(--font-mono);color:var(--muted);margin-bottom:6px}.quote-mobile-lines h4{font-size:14px;line-height:1.5;margin:0 0 12px}.quote-mobile-line-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;font-size:14px}.quote-mobile-line-values dt{font-size:12px;color:var(--muted)}.quote-mobile-line-values dd{margin:4px 0 0;font-variant-numeric:tabular-nums}.quote-cost-item-values{grid-template-columns:minmax(0,1fr);gap:8px}.quote-cost-item-values>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}.quote-cost-item-values dd{margin:0}.quote-cost-item-list .btn,.quote-costs-panel>div>.btn{width:100%}.quote-document-panel .btn{flex:1 1 auto}.quote-detail-page :is(.control,input,select),.quote-touch-dialog :is(input,select){font-size:16px;min-height:44px}.quote-touch-dialog{padding:16px!important;overscroll-behavior:contain}.quote-touch-dialog h2{padding-right:20px}.quote-touch-dialog>button:last-child{min-width:44px;min-height:44px;right:4px;top:4px}}.quote-form-mobile-label,.quote-form-mobile-total,.quote-form-section-picker,.quote-list-cards{display:none}.quote-form-overlay{z-index:10000}.quote-product-search-overlay{z-index:10002}.record-form-modal.quote-product-search{width:min(700px,calc(100vw - 48px))!important}.quote-form-modal .modal-body{min-height:min(420px,45dvh)}.quote-form-tabs{flex-shrink:0}.quote-form-modal .quote-search-control,.quote-product-search .quote-search-control{padding-left:36px}.quote-customer-result-name,.quote-product-search-name{overflow-wrap:anywhere;white-space:normal}.quote-list-page .table-toolbar .control{min-width:0}@media (max-width:768px){.quote-list-page,.quote-list-page .table-wrap{min-width:0}.quote-list-page .page-head,.quote-list-page .page-head .actions{width:100%;min-width:0}.quote-list-page .page-head .actions{display:grid;gap:12px}.quote-list-page .filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.quote-list-page .btn,.quote-list-page .filters button{min-height:44px}.quote-list-page .control{min-height:44px;font-size:16px}.quote-list-page .quote-list-table{display:none}.quote-list-cards{display:grid;gap:12px;list-style:none;padding:12px;margin:0}.quote-list-cards>li{min-width:0;padding:16px;overflow-wrap:anywhere}.quote-list-card-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted)}.quote-list-card-heading p{margin:0}.quote-list-cards h2{font-size:16px;line-height:1.5;margin:12px 0}.quote-list-cards dl{display:grid;gap:12px;margin:12px 0}.quote-list-cards dl>div{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px}.quote-list-cards dt{font-size:12px;color:var(--muted)}.quote-list-cards dd{margin:0;font-variant-numeric:tabular-nums}.quote-list-cards .actions{display:flex;flex-wrap:wrap;gap:8px}.quote-list-cards .actions .btn{flex:1 1 auto}.quote-form-modal,.record-form-modal.quote-product-search{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important}.quote-form-modal .modal-header,.quote-product-search .modal-header{padding:16px}.quote-form-modal .modal-title,.quote-product-search .modal-title{padding-right:44px}.quote-form-modal .modal-close,.quote-product-search .modal-close{width:44px;height:44px}.quote-form-tabs{display:none}.quote-form-section-picker{display:grid;flex-shrink:0;gap:6px;margin:0;padding:12px 16px;border-bottom:1px solid var(--border)}.quote-form-modal .modal-body{min-height:0;padding:16px;overscroll-behavior:contain}.quote-form-modal :is(input:not([type=checkbox]),select,textarea),.quote-product-search input{font-size:16px;min-height:44px;max-width:100%}.quote-form-modal :is(.grid-cols-2,.grid-cols-3){grid-template-columns:minmax(0,1fr)}.quote-form-modal .modal-body :is(.p-6,.p-5){padding:16px}.quote-form-line button,.quote-form-modal .btn,.quote-product-search-result{min-height:44px;white-space:normal}.quote-form-line button{min-width:44px}.quote-form-toolbar{flex-wrap:wrap;gap:12px}.quote-form-toolbar>div{display:flex;flex-wrap:wrap;gap:8px}.quote-form-modal .quote-form-line{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quote-form-line>div{grid-column:span 1;min-width:0}.quote-form-line>:is(.quote-form-line-wide,.col-span-12,.col-span-2){grid-column:1/-1}.quote-form-line>.pt-5{padding-top:0;display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between}.quote-form-mobile-label{display:inline;color:var(--muted)}.quote-form-modal .modal-footer{flex-wrap:wrap;gap:8px;padding:12px 16px}.quote-form-mobile-total{display:flex;flex:0 0 100%;flex-wrap:wrap;justify-content:space-between;gap:8px;margin:0 0 4px;font-size:14px}.quote-form-modal .modal-footer .btn{flex:1 1 120px}.quote-form-modal .modal-body .card>.flex{flex-wrap:wrap;gap:12px}.quote-form-modal .grid-cols-\[1fr_1\.4fr_auto\]{grid-template-columns:minmax(0,1fr)}.quote-product-search .modal-body{padding:16px;min-height:0;overflow:auto}.quote-product-search-result{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:12px}.quote-product-search-result>svg{display:none}.quote-product-search-name{flex-direction:column;align-items:flex-start}.quote-product-search-result .text-right{text-align:left}.quote-product-search-result .items-center{flex-wrap:wrap}}.document-splitter{align-self:stretch;min-height:400px;cursor:col-resize;touch-action:none;position:relative}.document-splitter:after{content:"";position:absolute;inset:0 6px;background:var(--border);border-radius:4px}.document-splitter:focus-visible:after,.document-splitter:hover:after{background:var(--primary)}.is-resizing{user-select:none}.is-resizing iframe{pointer-events:none}.document-preview{overflow:hidden}.document-preview-controls{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:12px 16px}.document-zoom{width:136px;min-width:136px;min-height:34px;flex:0 0 auto}.document-preview-note{font-size:12px;color:var(--muted);padding:0 16px 12px;margin:0}.document-paper-viewport{overflow:auto;max-height:75dvh;padding:16px;background:var(--surface-muted);overscroll-behavior:contain}.document-paper-size{position:relative;margin-inline:auto;flex-shrink:0;box-shadow:var(--shadow-md);background:white}.document-paper-size iframe{display:block;border:0;transform-origin:top left;background:white;max-width:none}.document-preview-backdrop{z-index:10000}.document-preview-dialog{width:calc(100vw - 32px)!important;max-width:1600px!important;height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);display:flex!important;flex-direction:column;gap:8px;overflow:hidden;z-index:10001!important}.document-preview-dialog .document-paper-viewport{flex:1;min-height:0;max-height:none}.document-preview-dialog .document-preview-controls{padding:8px 0}.os-document-workspace{min-width:0}.service-order-view-dialog{width:calc(100vw - 32px)!important;max-width:1250px!important;max-height:calc(100dvh - 32px);display:flex!important;flex-direction:column;overflow:hidden}.service-order-view-dialog .actions{flex-wrap:wrap;gap:8px}.service-order-view-body{overflow:auto;min-height:0}.service-order-view-body>p{margin:8px 0}.service-order-view-pdf{width:100%;height:70dvh;border:1px solid var(--border);background:var(--surface)}.os-document-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.os-document-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:16px;margin-bottom:16px}.os-document-fields .form-label{display:grid;gap:6px;min-width:0}.os-document-actions{flex-wrap:wrap;gap:10px;margin:16px 0}.os-document-result{padding:16px;margin:16px 0;border:1px solid var(--border);border-radius:var(--radius);background:var(--soft)}.os-document-result p{margin:8px 0 12px}.os-document-history{width:min(960px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 32px);display:flex!important;flex-direction:column;overflow:hidden}.os-document-history-body{min-height:0;overflow:auto}.os-document-history-body>.card+.card{margin-top:16px}.os-document-history-body .form-label{display:grid;gap:6px;margin:12px 0}.os-document-history-body .actions{flex-wrap:wrap;gap:8px}@media (max-width:768px){.os-document-fields{grid-template-columns:minmax(0,1fr)}}@media (max-width:1100px){.service-order-items-editor>.form-row:first-child{grid-template-columns:120px minmax(0,1fr) 120px}.resizable-document-workspace{display:flex;flex-direction:column;gap:24px}.document-output-panel,.document-record-panel{width:100%}.document-layout-actions,.document-splitter{display:none}}@media (max-width:640px){.fixed[role=dialog]:has(.customer-form){width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.customer-form{height:calc(100dvh - 120px)}.customer-form .customer-form-content,.customer-form .modal-body{padding:16px}.customer-form .modal-footer{padding:12px 16px;flex-wrap:wrap}.customer-form .modal-footer .btn{flex:1 1 120px;min-width:0}.customer-address-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.customer-address-grid .form-field{grid-column:span 1}.customer-address-complement,.customer-address-street{grid-column:1/-1!important}.record-form-modal{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important}.record-form-modal .modal-body{padding:16px}.record-form-modal .service-order-data-grid{grid-template-columns:1fr}.service-order-items-editor>.form-row:first-child{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.service-order-items-editor>.form-row:first-child .form-group:nth-child(2){grid-column:1/-1;grid-row:2}.record-form-modal .form-grid,.record-form-modal .grid-cols-2,.record-form-modal .grid-cols-3{grid-template-columns:minmax(0,1fr)}.document-preview-controls{padding:10px}.document-preview-dialog{padding:16px}}