.schedule-repair{background:#f7dce7!important;color:#6a3e50!important;border-color:#db9fb5!important}
.original-pay-field input{background:#f0f4f5!important;color:#59727c;cursor:default;font-size:12px}.repair-tbd-toggle{float:right;display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:400}.repair-tbd-toggle input{width:auto!important;margin:0}.date-is-tbd input[type=datetime-local]{opacity:.35}.schedule-repair-detail .job-customer h3{margin:0 0 7px}.schedule-repair-detail .job-customer p{margin:5px 0}.repair-payment-footer{margin-right:auto;min-width:160px}.repair-payment-footer label{font-size:12px}.repair-payment-footer select{min-width:150px}.receipt-method-field>.field{margin:0}.receipt-method-field label{display:none}.receipt-method-field select{width:118px}.installer-receipt-payment>div{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.installer-receipt-payment{max-width:calc(100% - 90px)}
.payment-pair{display:flex;align-items:center;gap:4px;width:144px;max-width:100%;min-width:0;box-sizing:border-box;white-space:nowrap}.payment-pair .payment-category{background:#cee5f7!important;color:#20557d!important;border:1px solid #99c5e6;border-radius:6px;font-size:10px;line-height:26px;height:28px;text-align:center;width:49px;flex:0 0 49px;box-sizing:border-box}.payment-pair .delivery-state{width:auto!important;max-width:none!important;min-width:0;flex:1;padding:3px 2px;font-size:10.5px}.payment-pair.single-status .delivery-state{width:100%!important}.payment-pair.has-method .delivery-state{flex:1}.receipt-method-label{flex:0 0 38px;font-size:11px;text-align:center;border:1px solid #d4e3e7;border-radius:5px;line-height:26px;color:#57717a}.delivery-status-table .delivery-width-6{width:164px}.payment-state-cell{min-width:0!important;overflow:hidden!important}.payment-state-cell .payment-pair+.payment-pair{margin-top:4px}
.completed-payroll-table{min-width:1050px}.completed-payroll-table th:nth-child(5),.completed-payroll-table th:nth-child(6){width:76px}.completed-payroll-table th:nth-child(7){width:88px}.completed-payroll-table th:nth-child(8){width:180px}.completed-payroll-table th:last-child{width:75px}.completed-payroll-table th:nth-child(4){width:100px}.completed-payroll-table td:nth-child(n+5){padding-left:5px;padding-right:5px}.payroll-due strong{font-size:12px;white-space:nowrap}.payroll-due small{display:block;font-size:10px!important;opacity:.6;white-space:normal!important;overflow-wrap:anywhere;line-height:1.35;font-weight:400;margin-top:4px}.repair-collection-note{opacity:.55;font-size:12px}.operations-table tfoot td{background:#f3f8f7;border-top:1px solid #cedfe0;vertical-align:top;white-space:normal;font-size:11px}.operations-table tfoot span{display:block;line-height:1.5}.operations-table tfoot strong{display:block;font-weight:700;font-size:15px;margin-top:5px}.compact-period-filters{display:flex;align-items:center;gap:8px}.compact-period-filters>select{width:155px}.compact-period-filters>.field{display:flex;align-items:center;gap:8px;margin:0}.compact-period-filters>.field select{width:135px}.compact-period-filters>.field label{white-space:nowrap;font-size:12px}
.batch-exit{background:#fae1e4;color:#b62e3a!important;border-color:#e8a6ae!important}.finance-payment-heading{display:flex;align-items:center;flex-direction:column;gap:4px}.finance-payment-heading button{font-size:10px!important;font-weight:500;padding:3px 5px!important;white-space:nowrap}.finance-payment-heading span{font-weight:600}.payroll-finance-table{width:100%!important;min-width:var(--finance-min-width)!important;table-layout:fixed!important}.payroll-finance-table th,.payroll-finance-table td{padding:6px 4px!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere;font-size:11px;min-width:0}.payroll-finance-table th{width:auto!important;vertical-align:middle!important}.payroll-finance-table .pinned-first{overflow:hidden!important}.payroll-finance-table .first-column-text{white-space:nowrap}.payroll-finance-table .group-job,.payroll-finance-table .group-wage,.payroll-finance-table .group-sales,.payroll-finance-table .group-profit{border-left:11px solid white}.payroll-finance-table thead .group-job,.payroll-finance-table thead .group-wage,.payroll-finance-table thead .group-sales,.payroll-finance-table thead .group-profit{border-left-color:#f3f8fa}.payroll-finance-table .payment-pair{width:144px}.payroll-finance-table .salary-base span,.payroll-finance-table .salary-extra span{white-space:nowrap}.payroll-finance-table .adjust-editor{display:flex;gap:3px;align-items:center;width:100%;min-width:0}.payroll-finance-table .adjust-editor input{width:calc(100% - 25px);min-width:0;padding:4px 2px;height:28px;font-size:11px}.payroll-finance-table .adjust-editor button{width:22px;min-width:22px;height:28px;padding:2px;flex:0 0 22px}.payroll-finance-table .small{font-size:10px;padding:5px 6px}.payroll-finance-table input.sales-adjustment{width:100%;min-width:0;padding:4px 2px;height:28px;font-size:11px}.sales-notes-editor{display:flex;gap:2px;align-items:center;min-width:0}.sales-notes-editor input{width:calc(100% - 23px);min-width:0;padding:4px 2px;height:28px;font-size:11px}.sales-notes-editor button{width:21px;min-width:21px;padding:2px!important}.payroll-finance-table tfoot td{padding-top:9px!important;padding-bottom:9px!important}.payroll-finance-table tfoot strong{font-size:13px}.payroll-finance-table .payroll-due small{max-width:100%}.finance-record-panel .fixed-list-scroll{max-width:100%;overflow:auto}
.service-table{min-width:1200px}.service-table th:nth-child(5){width:100px}.service-table th:nth-child(6){width:110px}.service-table th:nth-child(7){width:190px}.service-table th:last-child{width:220px}.warranty-summary{font-size:10.5px;line-height:1.35;border:0;background:none;padding:0;text-align:left;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;max-height:4.1em;white-space:normal;color:#536f7a}.warranty-full{font-size:13px;line-height:1.7}.service-record-panel{margin-bottom:0}.service-page-view .content{padding-bottom:6px}.service-record-panel .fixed-list-scroll{height:calc(100dvh - var(--service-filter-height,60px) - 10px);max-height:calc(100dvh - var(--service-filter-height,60px) - 10px);min-height:220px;overscroll-behavior:auto}
@media(max-width:720px){.service-filter-head{padding:8px 12px!important}.service-filter-head input{height:34px;padding:6px 9px;font-size:13px}.service-page-view .panel{border-radius:12px}.repair-form .formactions{flex-wrap:nowrap;align-items:end;gap:8px}.repair-payment-footer{min-width:0;max-width:57%}.repair-payment-footer select{min-width:0;width:100%;font-size:12px;padding:8px 4px}.repair-payment-footer label{font-size:11px}.compact-period-filters{flex-wrap:nowrap;padding:8px 10px!important;gap:7px}.compact-period-filters>select{min-width:0;flex:1;width:100px;font-size:12px}.compact-period-filters>.field{min-width:0;flex:1;display:block}.compact-period-filters>.field label{display:none}.compact-period-filters>.field select{width:100%;font-size:12px}.receipt-method-field select{width:108px;font-size:12px}.installer-receipt-payment select{font-size:12px}.completed-payroll-table tfoot strong{font-size:14px}}
.original-pay-field textarea{background:#f0f4f5!important;color:#59727c;cursor:default;font-size:12px;min-height:46px!important;height:46px;resize:none;padding:8px;line-height:1.4}
.payroll-finance-table.finance-show-wages.finance-show-sales{min-width:1460px!important}.payroll-finance-table.finance-show-wages:not(.finance-show-sales){min-width:1050px!important}.payroll-finance-table.finance-show-sales:not(.finance-show-wages){min-width:1082px!important}.payroll-finance-table col.pf-identity{width:160px}.payroll-finance-table col.pf-group-job{width:112px}.payroll-finance-table col.pf-date{width:90px}.payroll-finance-table col.pf-invoice{width:62px}.payroll-finance-table col.pf-payment{width:156px}.payroll-finance-table col.pf-group-wage{width:72px}.payroll-finance-table col.pf-extra{width:58px}.payroll-finance-table col.pf-adjust{width:96px}.payroll-finance-table col.pf-due{width:152px}.payroll-finance-table col.pf-group-sales{width:66px}.payroll-finance-table col.pf-commission{width:58px}.payroll-finance-table col.pf-sales-adjust{width:82px}.payroll-finance-table col.pf-notes{width:108px}.payroll-finance-table col.pf-sales-due{width:96px}.payroll-finance-table col.pf-group-profit{width:92px}

/* Reserve the full three-button width inside the table's scrollable layout (Safari too). */
@media (max-width:720px), (pointer:coarse) {
 .service-table{width:1200px!important;min-width:1200px!important;max-width:none!important}
 .service-table col:last-child{width:290px!important}
 .service-table th:last-child,.service-table td:last-child{width:290px!important;min-width:290px;box-sizing:border-box;padding-right:16px!important;overflow:visible!important}
 .service-table td:last-child .actions{display:flex;flex-wrap:nowrap;width:max-content;max-width:none;gap:5px;white-space:nowrap}
 .service-table td:last-child .actions>button{flex:0 0 auto;white-space:nowrap}
 .service-record-panel .fixed-list-scroll{overflow-x:auto!important;min-width:0;max-width:100%;-webkit-overflow-scrolling:touch}
}

/* Scoped to iPhone service/finance only: prevent Safari's automatic text inflation. */
.iphone-accounting-table,.iphone-accounting-table *{-webkit-text-size-adjust:none!important;text-size-adjust:none!important}
.iphone-accounting-scroll{box-sizing:border-box;max-width:100%;overflow:auto!important;-webkit-overflow-scrolling:touch;scroll-padding-right:20px}
.iphone-table-end{height:1px;min-height:1px;max-width:none!important;pointer-events:none;visibility:hidden;margin-top:-1px}
.repair-customer-info p{margin:4px 0;font-size:12px;color:#617986}
.repair-form [name=materials]::placeholder{opacity:.55}
