.notification-popover{width:360px;max-width:calc(100vw - 24px);max-height:min(620px,calc(var(--app-viewport-height,100dvh) - 130px));flex-direction:column;display:flex;overflow:hidden}.notification-heading{flex:none;min-height:46px;padding:7px 12px}.notification-heading .icon{min-width:40px;min-height:40px}.notification-read-all,.notification-load{flex:none;min-height:40px;padding:8px 12px}.notification-items{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex:1;min-height:0;max-height:none;overflow-y:auto}.notification-item{cursor:pointer;touch-action:manipulation;gap:4px;min-height:68px;padding:10px 12px;overflow:hidden}.notification-item.unread{padding-left:9px}.notification-item b{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:1.4;display:-webkit-box;overflow:hidden}.notification-item span{-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:11px;line-height:1.45;display:-webkit-box;overflow:hidden}.notification-item small{font-size:10px;line-height:1.4}.notification-popover>.error{flex:none;max-height:70px;overflow:auto}.desktop-notification-controls{flex:none;padding:0;overflow:hidden}.desktop-notification-controls summary{cursor:pointer;touch-action:manipulation;align-items:center;gap:8px;min-height:48px;padding:11px 12px;list-style:none;display:flex}.desktop-notification-controls summary::-webkit-details-marker{display:none}.desktop-notification-controls summary>span{flex:1;gap:3px;min-width:0;display:grid}.desktop-notification-controls summary b{font-size:11px;line-height:1.4}.desktop-notification-controls summary small{color:#8a929c;font-size:10px}.desktop-notification-controls[open] summary>svg:last-child{transform:rotate(180deg)}.device-notification-options{overscroll-behavior:contain;max-height:min(250px,38dvh);padding:0 12px 12px;overflow-y:auto}.device-notification-options p{margin:5px 0 10px;font-size:11px;line-height:1.6}.device-notification-options .btn,.device-notification-options .text-btn{min-height:40px}.push-install-help{color:#365976;background:#eff6ff;border-radius:8px;padding:10px;font-size:11px;line-height:1.7}.notification-bell:focus-visible,.notification-item:focus-visible,.desktop-notification-controls summary:focus-visible{outline-offset:-3px;outline:2px solid #2480e8}.activity-toast b{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.activity-toast small{max-width:100%;overflow:hidden}.activity-toast>button:first-child{padding:12px}.activity-toast>button:first-child>span{min-width:0}@media screen and (max-width:900px){.notification-popover{top:calc(var(--app-viewport-top,0px) + 68px + env(safe-area-inset-top,0px));width:auto;max-width:none;max-height:min(580px,calc(var(--app-viewport-height,100dvh) - 158px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)));border-radius:14px;position:fixed;left:12px;right:12px;overflow:hidden}.notification-heading{min-height:44px;padding:6px 10px;position:static}.notification-heading .icon{min-width:44px;min-height:44px}.notification-read-all,.notification-load{min-height:44px;font-size:11px}.notification-item{gap:4px;min-height:64px;padding:10px 12px}.notification-item b{font-size:12px}.notification-item span{font-size:11px;line-height:1.45}.notification-item small{font-size:10px}.desktop-notification-controls summary{min-height:50px;padding:9px 12px}.desktop-notification-controls summary b{font-size:12px}.device-notification-options .btn,.device-notification-options .text-btn{min-height:44px}.activity-toast{max-width:calc(100vw - 24px);bottom:calc(82px + env(safe-area-inset-bottom,0px))}.activity-toast b{font-size:12px}.activity-toast small{font-size:11px}}@media screen and (max-height:500px){.notification-popover{top:calc(var(--app-viewport-top,0px) + 10px);max-height:calc(var(--app-viewport-height,100dvh) - 24px);z-index:120}.notification-item{min-height:56px}.desktop-notification-controls summary{min-height:44px}.device-notification-options{max-height:28dvh}}.desktop-notification-controls[open]{min-height:52px;max-height:min(280px,calc((var(--app-viewport-height,100dvh) - 130px)*.48));overscroll-behavior:contain;flex-shrink:1;overflow-y:auto}.desktop-notification-controls[open] summary{z-index:1;background:#fafafa;position:sticky;top:0}.device-notification-options{max-height:none;overflow:visible}@media screen and (max-width:900px){.desktop-notification-controls[open]{max-height:max(52px,calc((var(--app-viewport-height,100dvh) - 158px)*.48))}}@media screen and (max-height:500px){.desktop-notification-controls[open]{max-height:max(48px,calc((var(--app-viewport-height,100dvh) - 24px)*.45))}.notification-popover>.error{max-height:42px}}@media screen and (max-height:360px){.notification-heading,.notification-heading .icon,.notification-read-all,.notification-load{min-height:36px}.desktop-notification-controls summary{min-height:44px}}@media screen and (max-height:500px){.notification-popover{width:min(360px,100vw - 24px);left:auto;right:12px;top:calc(var(--app-viewport-top,0px) + 10px);position:fixed}}.device-notification-bar{min-height:64px;max-height:max(64px,calc((var(--app-viewport-height,100dvh) - 130px)*.45));overscroll-behavior:contain;flex-shrink:1;padding:10px 12px;overflow-y:auto}.notification-enable-row{z-index:1;background:#fafafa;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;position:sticky;top:-10px;display:flex!important}.notification-enable-copy{flex:1;align-items:center;gap:8px;min-width:110px;display:flex}.notification-enable-copy>svg{flex:none}.notification-enable-copy>span{gap:4px;min-width:0;display:grid}.notification-enable-copy b{font-size:11px;line-height:1.4}.notification-enable-copy small{color:#88919c;font-size:10px;line-height:1.4}.notification-enable-actions{flex-shrink:0;align-items:center;gap:5px;display:flex}.device-notification-bar .notification-enable-button{white-space:nowrap;min-height:44px;margin:0;padding:9px 12px;font-size:11px}.notification-enable-actions>.icon{min-width:44px;min-height:44px}.device-notification-bar .notification-permission-status{color:#687582;overflow-wrap:anywhere;margin:8px 0 0;font-size:10px;line-height:1.6}.notification-enable-button:focus-visible{outline-offset:2px;outline:2px solid #2480e8}@media screen and (max-width:900px){.device-notification-bar{max-height:max(64px,calc((var(--app-viewport-height,100dvh) - 158px)*.45))}.notification-enable-copy b{font-size:12px}.device-notification-bar .notification-enable-button{min-height:44px}}@media screen and (max-height:500px){.device-notification-bar{max-height:max(64px,calc((var(--app-viewport-height,100dvh) - 24px)*.45))}}
.typed-date-row{align-items:center;min-width:0;display:flex;position:relative}.typed-date-row>input{box-sizing:border-box;width:100%;padding-right:42px!important}.date-picker-trigger{color:#6a737c;cursor:pointer;background:0 0;border:0;border-radius:7px;justify-content:center;align-items:center;min-width:36px;display:flex;position:absolute;top:2px;bottom:2px;right:2px}.date-picker-trigger:hover{background:#f2f3f4}.date-picker-trigger:focus-visible{outline:2px solid #1b8078}.date-calendar{z-index:600;color:#171717;box-sizing:border-box;background:#fff;border:1px solid #dfe3e6;border-radius:12px;flex-direction:column;min-width:0;margin:0;padding:10px;font-family:inherit;display:flex;position:fixed;inset:auto;overflow:hidden;box-shadow:0 12px 40px #10203030}.date-calendar[popover]:not(:popover-open){display:none}.date-calendar-header{flex:none;align-items:flex-end;gap:5px;padding-top:6px;padding-right:20px;display:flex;position:relative}.date-calendar-header>span{gap:4px;min-width:0;display:grid}.date-calendar-header small{color:#8a929b;font-size:10px}.date-calendar-header input,.date-calendar-header select{font:inherit;color:#171717;box-sizing:border-box;background:#fff;border:1px solid #e5e7eb;border-radius:6px;font-size:13px;width:100%!important;min-height:36px!important;margin:0!important;padding:7px!important}.date-calendar-header>span:first-of-type{width:78px}.date-calendar-header>span:nth-of-type(2){flex:1}.date-calendar-header>.icon{cursor:pointer;background:#fff;border:0;min-width:28px;min-height:36px;padding:3px}.date-calendar-header>.date-calendar-close{min-width:24px;min-height:24px;padding:2px;position:absolute;top:-5px;right:-5px}.date-weekdays{flex:none;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;padding-top:12px;padding-bottom:5px;display:grid}.date-weekdays b{text-align:center;color:#858e98;font-size:10px;font-weight:500}.date-calendar-grid{overscroll-behavior:contain;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;min-height:0;display:grid;overflow-y:auto}.date-calendar-grid button{color:#363c43;min-height:32px;font:inherit;cursor:pointer;background:#fff;border:0;border-radius:7px;padding:4px;font-size:12px}.date-calendar-grid button:hover{background:#eef3f2}.date-calendar-grid button.outside-month{color:#b4bac2}.date-calendar-grid button.today{box-shadow:inset 0 0 0 1px #c8d7d4}.date-calendar-grid button.selected{color:#fff;background:#171717}.date-calendar-grid button:disabled{color:#c9ced4;cursor:default;background:#fafafa}.date-calendar-footer{flex:none;justify-content:space-between;align-items:center;gap:10px;padding-top:7px;display:flex}.date-calendar-footer .text-btn{min-height:32px;font-size:11px}.calendar-date-field{max-width:200px}.calendar-date-field>.typed-date{width:180px}.calendar-date-field .typed-date-row>input{width:100%;min-width:0}.calendar-date-field .date-picker-trigger{min-width:32px}.date-calendar .icon:focus-visible,.date-calendar-grid button:focus-visible{outline-offset:-2px;outline:2px solid #16877e}@supports not selector(:popover-open){.date-calendar[popover]{display:flex}}@media screen and (max-width:700px){.date-calendar-header input,.date-calendar-header select{font-size:16px;min-height:40px!important}.date-calendar-header>.icon{min-height:40px}.date-calendar-grid button{min-height:36px;font-size:13px}.date-calendar-footer .text-btn{min-height:40px}.typed-date-row>input{font-size:16px}.date-picker-trigger{min-width:40px}.calendar-date-field>.typed-date{width:176px}}
.work-staff-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:22px;display:grid}.work-staff-card{text-align:left;cursor:pointer;color:#171717;background:#fff;border:1px solid #e4e7eb;border-radius:12px;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;padding:20px;transition:border-color .15s;display:flex}.work-staff-card:hover,.work-staff-card.selected{background:#fafafa;border-color:#171717}.work-staff-card strong{font-size:15px}.work-staff-card>span:not(.avatar){color:#8a929b;font-size:12px}.work-staff-card>small{color:#747e89;font-size:11px}.work-staff-card>b{margin-top:8px;font-size:11px}.work-staff-detail{scroll-margin-top:100px}.staff-rate-form{border:1px solid #e5e7eb;border-radius:10px;flex-wrap:wrap;align-items:flex-end;gap:16px;margin:16px 0;padding:16px;display:flex}.staff-rate-form label{min-width:100px;margin:0}.staff-rate-form .rate-apply{min-width:0;max-width:330px}.work-service-counts{flex-wrap:wrap;gap:8px;margin:18px 0;display:flex}.work-service-counts>span{color:#6c7580;background:#f5f6f7;border-radius:7px;padding:8px 11px;font-size:11px}.work-service-counts b{color:#222;margin-left:7px}.work-entry-actions{flex-wrap:wrap;gap:7px;display:flex}.clinical-source-note{background:#f6f8f8;border-left:2px solid #a6bfba;padding:12px}.billing-bottom-report{margin-top:24px!important}.billing-bottom-report h4{margin:24px 0 10px;font-size:14px}.invoice-report-summary{margin-top:12px}.clinical-complete-check{background:#f7faf9;border:1px solid #e1e7e5;border-radius:8px;align-items:center;padding:13px;font-size:12px;flex-direction:row!important;gap:10px!important;display:flex!important}.clinical-complete-check input{accent-color:#171717;min-width:18px;width:18px!important;min-height:18px!important;margin:0!important}.clinical-work-fields{border:1px solid #e4e9e7;border-radius:10px;margin:14px 0;padding:16px}.booking-step-label>span:first-child{color:#343a40;font-weight:600}.booking-steps{gap:0}.revenue-controls .typed-date input{width:100%;font-size:14px}.revenue-controls .typed-date small{color:#949ca5;font-size:10px}@media screen and (max-width:1000px){.work-staff-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media screen and (max-width:700px){.work-staff-grid{grid-template-columns:minmax(0,1fr);gap:10px}.work-staff-card{padding:16px}.staff-rate-form{gap:12px;padding:12px}.staff-rate-form>label:first-child{width:100%}.staff-rate-form .btn,.work-entry-actions .btn{min-height:44px}.work-staff-detail{scroll-margin-top:80px}.clinical-work-fields{padding:12px}.revenue-controls .typed-date input{font-size:16px}.calendar-quick-ranges{flex-wrap:wrap;max-width:100%;margin-left:0}.calendar-quick-ranges .btn{padding:8px 10px;font-size:11px}.clinical-complete-check{font-size:12px;line-height:1.7}}
html{scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#b8bec4 #f5f6f7}*{scrollbar-width:thin;scrollbar-color:#bac1c7 transparent}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#bac1c7 padding-box padding-box;border:2px solid #0000;border-radius:8px}::-webkit-scrollbar-thumb:hover{background-color:#939da6}::-webkit-scrollbar-button{width:0;height:0;display:none}::-webkit-scrollbar-corner{background:0 0}select:not([multiple]){appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%237d8791' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-position:right 15px center;background-repeat:no-repeat;background-size:16px;padding-right:42px!important}.select-wrap select{background-position:right 9px center}.date-calendar-header select{background-position:right 8px center;padding-right:29px!important}.operations-stack{gap:24px;display:grid}.operations-panel{padding:24px}.operations-panel>.panel-title{border-bottom:1px solid #edf0f2;gap:16px;margin:0 0 20px;padding:0 0 20px}.operations-heading{gap:20px;margin-bottom:24px}.operations-heading>div{flex-direction:column;align-items:flex-start;gap:10px}.operations-heading h3,.operations-panel .panel-title h3{margin:0;line-height:1.6}.operations-heading p{margin:0;line-height:1.8}.work-report{gap:20px;display:grid}.work-totals{gap:20px}.work-totals>div{gap:12px;padding:22px}.work-doctors{gap:16px;margin:0}.work-doctors article{gap:10px;padding:20px}.work-report>.form-hint{margin:0;line-height:1.9}.operations-panel>.period-controls{align-items:flex-start;gap:16px;margin:0 0 18px}.period-controls label{gap:9px;min-width:0;display:grid}.operations-panel>.period-controls .typed-date-row>input{min-height:48px}.operations-panel>.period-controls>.btn{min-height:48px;margin-top:26px}.operations-panel>.form-hint{margin:16px 0 24px;line-height:1.9}.work-staff-grid{gap:18px;margin-top:24px}.work-staff-card{gap:10px;padding:22px}.work-entry-actions{gap:10px;margin-top:14px}.staff-rate-form{gap:20px;margin:24px 0;padding:20px}.work-staff-detail .work-totals{margin-bottom:24px}.work-entries article{padding:24px 0}.work-entries article p{margin:10px 0;line-height:1.8}.surgery-gate{max-width:620px;padding:36px}.surgery-gate-icon{background:#f3f5f5;border-radius:12px;justify-content:center;align-items:center;width:48px;height:48px;margin-bottom:24px;font-size:20px;display:flex}.surgery-gate h3{margin:0 0 14px;font-size:21px}.surgery-gate>p{color:#828b95;max-width:460px;margin:0 0 24px;line-height:1.9}.surgery-gate form{max-width:400px}.surgery-gate form label{margin:0 0 20px}.surgery-gate form>small{color:#929aa3;margin-top:16px;line-height:1.7;display:block}.surgery-access-bar{color:#818a94;justify-content:space-between;align-items:center;gap:16px;font-size:12px;display:flex}.surgery-access-bar .btn{min-height:42px}.today-income{margin-bottom:28px;padding:24px}.today-income-heading{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px;display:flex}.today-income h3{margin:0 0 9px;font-size:17px}.today-income p{color:#89929d;margin:0;font-size:11px;line-height:1.8}.today-income .billing-summary{gap:20px;margin:0}.today-income .billing-summary>div{background:#fafbfb;padding:22px}.today-income .billing-summary strong{font-size:25px}.today-income .error .text-btn{margin-left:14px}.billing-toolbar{align-items:center;gap:16px;margin:0 0 24px}.billing-toolbar select,.billing-toolbar>.btn{min-height:48px}.billing-toolbar select{min-width:160px;padding-left:15px}.billing-panel>.panel{margin-bottom:0}.billing-bottom-report{margin-top:28px!important}.revenue-report{padding:26px}.revenue-heading{margin-bottom:26px}.revenue-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:start;gap:18px}.revenue-controls label,.revenue-action-field{color:#747e89;gap:8px;min-width:0;font-size:11px;line-height:20px;display:grid}.revenue-controls .typed-date-row>input,.revenue-action-field>.btn{height:48px;min-height:48px!important}.revenue-controls .typed-date>small,.revenue-action-field>small{color:#9aa2ab;margin:6px 0 0;font-size:10px;line-height:18px;display:block}.revenue-action-field>span{visibility:hidden}.revenue-action-field>small{margin-top:-2px}.revenue-presets{gap:10px 20px;margin:20px 0 26px}.revenue-result-heading{gap:20px;margin:28px 0 24px}.revenue-report h4{margin:28px 0 14px;line-height:1.6}.revenue-report h4+.form-hint{margin:0 0 20px;line-height:1.9}.revenue-report .billing-summary{gap:20px;margin:20px 0 24px}.billing-summary>div{min-width:0}.revenue-report .billing-summary>div{padding:22px}.revenue-methods{gap:16px;margin:0 0 26px}.revenue-methods>div{gap:12px;padding:20px}.revenue-footnote{margin-top:24px;line-height:1.9}.revenue-report .table-wrap{margin-top:24px}@media screen and (max-width:900px){.revenue-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.revenue-action-field{grid-column:1/-1;align-items:center;gap:16px;display:flex}.revenue-action-field>span{display:none}.revenue-action-field>small{margin:0}.billing-toolbar{flex-wrap:wrap}}@media screen and (max-width:700px){.operations-panel,.revenue-report,.today-income{padding:18px}.operations-stack{gap:18px}.work-totals,.today-income .billing-summary{gap:12px}.work-totals>div,.work-doctors article,.revenue-report .billing-summary>div,.today-income .billing-summary>div{padding:18px}.work-staff-grid{gap:12px}.work-staff-card{padding:18px}.surgery-gate{padding:24px}.surgery-access-bar{font-size:11px}.revenue-controls{grid-template-columns:minmax(0,1fr);gap:16px}.revenue-action-field{flex-wrap:wrap;grid-column:auto}.revenue-action-field>.btn{flex:1}.revenue-presets{gap:10px 16px}.revenue-methods{gap:12px}.revenue-methods>div{padding:16px}.today-income-heading{flex-wrap:wrap;gap:12px}.today-income{margin-bottom:22px}.billing-toolbar select{flex:1;min-width:0}.billing-toolbar>.btn{flex:1}.operations-panel>.period-controls>.btn{width:100%;margin-top:0}.work-entry-actions .btn{flex:1}.staff-rate-form{gap:16px;padding:16px}}@media (forced-colors:active){select:not([multiple]){appearance:auto;background-image:none}.surgery-gate-icon{border:1px solid canvastext}}
.billing-panel>.today-income{margin-bottom:28px}.billing-toolbar{background:#fff;border:1px solid #eceff1;border-radius:12px;grid-template-columns:minmax(180px,1fr) minmax(150px,190px) auto;align-items:center;gap:20px;margin:0 0 24px;padding:18px 20px;display:grid}.billing-toolbar .search{min-width:0}.billing-toolbar .search input{min-height:48px;font-size:13px}.billing-toolbar>select,.billing-toolbar>.btn{height:48px;min-height:48px;margin:0}.billing-toolbar>select{width:100%;min-width:0}.billing-panel>.panel{margin-top:0}.billing-panel>.revenue-report{margin-top:28px!important}[data-tone=answered]{--tone-bg:#fbf5e7;--tone-edge:#c7b375;--tone-text:#776539}[data-tone=unanswered]{--tone-bg:#faeded;--tone-edge:#c89a9a;--tone-text:#865a5a}[data-tone=completed]{--tone-bg:#edf5ef;--tone-edge:#9ab8a2;--tone-text:#526f5b}[data-tone=returned]{--tone-bg:#faeded;--tone-edge:#c89a9a;--tone-text:#865a5a}[data-tone=arrived]{--tone-bg:#edf6f7;--tone-edge:#97bbc0;--tone-text:#547c81}[data-tone=neutral]{--tone-bg:#f5f6f7;--tone-edge:#b1b8bf;--tone-text:#69737c}[data-tone=cancelled]{--tone-bg:#f5f1f1;--tone-edge:#c6b6b6;--tone-text:#8e7b7b}.appointment.compact-appointment[data-tone],.period-booking[data-tone],.appointment-row[data-tone]{background:var(--tone-bg);border-left:3px solid var(--tone-edge);color:var(--tone-text)}.appointment.compact-appointment[data-tone]:hover,.period-booking[data-tone]:hover,.appointment-row[data-tone]:hover{filter:brightness(.98);background:var(--tone-bg)}.tone-answered{background:#e5d7aa!important}.tone-unanswered{background:#e3bbbb!important}.tone-completed{background:#bdd4c2!important}.tone-returned{background:#e3bbbb!important}.schedule-legend{flex-wrap:wrap;gap:12px 18px}.contact-controls{flex-wrap:wrap;gap:10px;margin:20px 0;display:flex}.contact-controls .btn[aria-pressed=true]{background:#eef4f6;border-color:#738b95}.refund-badge{color:#936666;background:#faecec;border:1px solid #e9caca;border-radius:6px;align-items:center;margin-top:6px;padding:4px 8px;font-size:10px;font-weight:500;line-height:1.6;display:inline-flex}.refund-panel{padding:24px}.refund-heading{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:28px;display:flex}.refund-heading h3{margin:0 0 10px;font-size:18px}.refund-heading p{color:#8a949d;margin:0;font-size:12px;line-height:1.9}.refund-filters{grid-template-columns:1.2fr 1fr 1fr;gap:20px;margin-bottom:24px;display:grid}.refund-filters label{color:#7f8994;gap:8px;font-size:12px;display:grid}.refund-filters input{background:#fff;border:1px solid #e5e8eb;border-radius:8px;width:100%;min-width:0;min-height:46px;padding:12px}.refund-list article{border-bottom:1px solid #edf0f2;justify-content:space-between;gap:24px;padding:24px 0;display:flex}.refund-list article>div{overflow-wrap:anywhere;min-width:0}.refund-list article>div:last-child{flex-direction:column;align-items:flex-end;gap:16px;max-width:360px;display:flex}.refund-list article p{color:#7b8792;white-space:pre-wrap;font-size:12px;line-height:1.8}.refund-list article small{color:#949ea7;font-size:10px}.refund-list article strong{color:#936666;font-size:20px}.refund-voided{opacity:.65}.refund-form{background:#fafbfc;border:1px solid #e4e9ee;border-radius:12px;max-width:800px;margin-bottom:28px;padding:24px}.refund-void-control{width:100%;font-size:12px}.refund-void-control summary{cursor:pointer;color:#8b7777;padding:10px 0}.refund-void-control form{border:1px solid #e4e9ed;border-radius:10px;padding:16px}.invoice-refunds,.revenue-refunds{background:#fcf3f3;border-radius:9px;margin:20px 0;padding:18px}.invoice-refunds p,.revenue-refunds p{color:#718092;font-size:12px;line-height:1.8}.code-recovery-toggle{margin-top:24px;line-height:1.8;display:block}.code-recovery-form{border-top:1px solid #e7ebef;margin-top:22px;padding-top:22px}.surgery-gate .code-visibility{margin:-8px 0 20px;display:block}.surgery-gate .info-box{line-height:1.8}@media (max-width:900px){.billing-toolbar{grid-template-columns:minmax(0,1fr) auto}.billing-toolbar .search{grid-column:1/-1}.refund-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.refund-filters>label:first-child{grid-column:1/-1}}@media (max-width:700px){.billing-toolbar{gap:14px;margin-bottom:20px;padding:16px}.billing-toolbar>.btn{padding:10px 12px;font-size:11px}.billing-panel>.today-income{margin-bottom:22px}.refund-panel{padding:18px}.refund-heading{flex-wrap:wrap}.refund-form{padding:16px}.refund-filters{grid-template-columns:minmax(0,1fr);gap:16px}.refund-filters>label:first-child{grid-column:auto}.refund-filters input{font-size:16px}.refund-list article{flex-direction:column;gap:14px}.refund-list article>div:last-child{align-items:flex-start;width:100%;max-width:none}.contact-controls .btn{flex:1;min-height:44px;font-size:11px}.schedule-legend{font-size:10px}}@media (max-width:420px){.billing-toolbar{grid-template-columns:minmax(0,1fr)}.billing-toolbar>.search,.billing-toolbar>select,.billing-toolbar>.btn{grid-column:1/-1;width:100%}.billing-toolbar>.btn{font-size:12px}}.tone-arrived{background:#b6d5d9!important}
.billing-table th,.billing-table td{vertical-align:middle;text-align:center}.billing-table .invoice-cell-name,.billing-table .invoice-cell-patient{text-align:left}.invoice-cell-refund{min-width:115px}.invoice-refund-button{justify-content:center;min-width:90px;min-height:40px}.invoice-has-refund{background:#fcf1f1!important}.invoice-has-refund:hover{background:#fae9e9!important}.invoice-has-refund .invoice-refund-button{color:#936666;background:#faecec;border-color:#e9caca}.refund-note-preview{white-space:nowrap;text-overflow:ellipsis;max-width:170px;margin:7px auto 0;overflow:hidden}.billing-table th{white-space:nowrap}.work-totals>div{text-align:center;justify-content:center;align-items:center;min-height:150px}.work-totals strong{font-variant-numeric:tabular-nums}.work-edit-anchor{scroll-margin-top:24px}.work-calculation-label{color:#8a969f;margin-bottom:10px;font-size:10px;display:block}.work-auto-preview small{color:#86939e;margin-bottom:10px;display:block}.work-auto-preview strong{font-size:19px;display:block}.work-auto-preview p{font-size:11px;line-height:1.9}.refund-filters{align-items:start;gap:20px}.refund-filters>label{grid-template-rows:20px auto;align-content:start;gap:8px;margin:0;line-height:20px;display:grid}.refund-filters>label>input,.refund-filters .typed-date-row>input{box-sizing:border-box;height:48px!important;min-height:48px!important}.refund-filters .typed-date>small{margin-top:6px;line-height:18px;display:block}.inline-refund-history{background:#fcf3f3;border:1px solid #eed7d7;border-radius:9px;margin:16px 0;padding:16px}.inline-refund-history p{font-size:12px;line-height:1.8}.invoice-refund-note{border-bottom:1px solid #edf0f2;margin-bottom:24px;padding:20px 0}.invoice-refund-note textarea{width:100%}.status-undo-button{background:#f7fafb;border-color:#c5d5dc;margin-top:14px}.invoice-refund-panel .refund-form{margin-top:24px}@media (max-width:700px){.billing-table th,.billing-table td,.billing-table .invoice-cell-name,.billing-table .invoice-cell-patient{text-align:left}.invoice-cell-refund{grid-column:1/-1}.invoice-refund-button{width:100%;min-height:44px}.refund-note-preview{white-space:normal;max-width:none;margin-left:0}.work-totals>div{min-height:120px}.work-auto-preview strong{font-size:17px}.refund-filters>label{grid-template-rows:20px auto}.invoice-refund-note{padding:16px 0}}.refund-heading-actions,.refund-date-shortcuts,.refund-plan-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.refund-heading-actions{justify-content:flex-end}.refund-date-shortcuts>span{color:#82909b;font-size:12px}.refund-date-shortcuts .btn{min-height:42px}.refund-pending-section{background:#fffdfa;border:1px solid #e9e4d7;border-radius:12px;margin:24px 0;padding:22px}.refund-pending-heading{align-items:center;gap:12px;margin-bottom:18px;display:flex}.refund-pending-heading h3{margin:0;font-size:16px}.refund-pending-heading>span{color:#87724b;background:#f1eadb;border-radius:20px;padding:5px 10px;font-size:12px}.refund-pending-card{background:#fff;border:1px solid #eee8db;border-radius:10px;margin:14px 0;padding:20px}.refund-plan-title{justify-content:space-between;align-items:center;gap:16px;display:flex}.refund-plan-title p{color:#87919b;font-size:12px}.refund-pending-badge{color:#8b774d;white-space:normal;background:#faf5e8;border:1px solid #e9dfc7;border-radius:6px;padding:5px 8px;font-size:10px;line-height:1.7;display:inline-block}.invoice-cell-refund>.refund-pending-badge{margin-top:8px}.refund-plan-due{color:#926969;background:#faeded;border-color:#ecd7d7}.refund-plan-date{color:#8a7b5b;margin:18px 0 12px;font-size:12px}.refund-plan-note{white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0 22px;font-size:13px;line-height:1.9}.refund-plan-actions .btn{min-height:44px}.refund-plan-actions .text-btn{padding:12px}.refund-plan-new,.refund-money-now,.refund-plan-history{margin:20px 0}.refund-plan-new>summary,.refund-money-now>summary,.refund-plan-history>summary{cursor:pointer;padding:12px 0;font-size:13px;line-height:1.8}.refund-plan-history article{white-space:pre-wrap;overflow-wrap:anywhere;border-top:1px solid #e9e4d7;padding:16px 0;font-size:12px}.refund-plan-history p{color:#8b9197;line-height:1.9}.refund-pending-notice{white-space:pre-wrap;background:#faf5e8;border-radius:8px;padding:14px;font-size:12px;line-height:1.9}.refund-pending-card .refund-form{margin:24px 0 0}.refund-plan-form{margin-top:16px}@media (max-width:700px){.refund-heading-actions{justify-content:flex-start;width:100%}.refund-heading-actions .btn{flex:180px;min-height:44px}.refund-pending-section,.refund-pending-card{padding:16px}.refund-plan-title{flex-direction:column;align-items:flex-start;gap:8px}.refund-plan-actions{gap:12px}.refund-plan-actions .btn{width:100%;font-size:12px}.refund-date-shortcuts .btn{flex:1;min-height:44px}.refund-date-shortcuts>span{width:100%}.refund-plan-note{font-size:14px}}.patient-has-refund{background:#fcf1f1!important}.patient-has-refund:hover{background:#fae9e9!important}.patient-has-refund .refund-badge{color:#936666;background:#faecec;border-color:#e9caca}.refund-code-gate{margin-bottom:24px}.refund-code-gate>p{line-height:1.9}.refund-unlocked>.surgery-access-bar{margin-bottom:22px}.refund-unlocked .refund-list article:not(.refund-voided){background:snow;border-left:3px solid #d9aaaa;padding-left:18px}.refund-code-gate .form-hint{max-width:640px}
.patient-refund-entry{justify-content:space-between;align-items:center;gap:24px;padding:24px;display:flex;margin-top:24px!important}.patient-refund-entry h3{margin:0 0 10px;font-size:15px}.patient-refund-entry p{color:#8a949d;margin:0;font-size:12px;line-height:1.9}.patient-refund-panel>label{gap:10px;margin-bottom:24px;font-size:13px;display:grid}.patient-refund-panel>label>select{width:100%;min-height:48px}.appointment-history{padding:20px}.history-search-heading{justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px;display:flex}.history-search-heading h3{margin:0 0 8px;font-size:16px}.history-search-heading p{color:#8b969f;margin:0;font-size:12px;line-height:1.8}.history-search-row{border:1px solid #edf0f2;border-left:3px solid var(--tone-edge);background:var(--tone-bg);border-radius:9px;align-items:center;gap:16px;margin:12px 0;padding:16px;display:flex}.history-search-open{cursor:pointer;text-align:left;background:0 0;border:0;grid-template-columns:125px minmax(110px,1fr) minmax(130px,1.5fr) auto;align-items:center;gap:18px;width:100%;min-width:0;display:grid}.history-search-open span{min-width:0}.history-search-open b,.history-search-open small{overflow-wrap:anywhere;display:block}.history-search-open b{font-size:12px;line-height:1.9}.history-search-open small{color:#89949f;margin-top:6px;font-size:11px;line-height:1.7}.history-search-row>.text-btn{flex-shrink:0;font-size:11px}.lab-panel{padding:28px}.lab-filters{grid-template-columns:1.3fr 1fr 1fr;gap:20px;margin:24px 0;display:grid}.lab-filters label{color:#89949e;align-content:start;gap:10px;font-size:12px;display:grid}.lab-filters input{min-height:48px}.lab-list article{border-bottom:1px solid #edf0f2;grid-template-columns:minmax(100px,1fr) minmax(130px,1.3fr) minmax(130px,1fr) auto;align-items:center;gap:24px;padding:24px 0;display:grid}.lab-list p{color:#89949e;overflow-wrap:anywhere;font-size:12px;line-height:1.8}.lab-list b{overflow-wrap:anywhere;font-size:13px;line-height:1.8}@media (max-width:1000px){.history-search-open{grid-template-columns:110px 1fr 1fr}.history-search-open>.badge{grid-column:2/-1;justify-self:start}.lab-list article,.lab-filters{grid-template-columns:1fr 1fr}.lab-filters>label:first-child{grid-column:1/-1}}@media (max-width:700px){.patient-refund-entry{flex-direction:column;align-items:stretch;gap:16px;padding:18px}.patient-refund-entry .btn{min-height:44px}.appointment-history{padding:16px}.history-search-heading{flex-direction:column;align-items:flex-start}.history-search-heading .btn{min-height:44px}.history-search-row{flex-direction:column;align-items:stretch;padding:16px}.history-search-open{grid-template-columns:1fr 1fr;gap:16px}.history-search-open>span:nth-child(3),.history-search-open>.badge{grid-column:1/-1}.history-search-open b{font-size:13px}.history-search-open small{font-size:12px}.history-search-row>.text-btn{text-align:left;min-height:44px}.lab-panel{padding:18px}.lab-filters{grid-template-columns:1fr}.lab-filters>label:first-child{grid-column:auto}.lab-filters input{font-size:16px}.lab-list article{grid-template-columns:1fr;gap:14px}.lab-list article>.btn{min-height:44px}}
