:root{font-family:Inter,Aptos,Segoe UI,system-ui,sans-serif;color:#20332f;background:#f5f5f0;font-synthesis:none;--green: #176b5b;--green-dark: #123c34;--green-soft: #e1f0eb;--ink: #20332f;--muted: #6f7d79;--line: #dfe5e1;--surface: #fff;--warm: #e58a55;--danger: #b44747}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;min-height:100vh}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:var(--green);text-decoration:none;font-weight:600}h1,h2,h3,p{margin-top:0}h1,h2,h3,.metric-card strong{font-family:Inter,Aptos,Segoe UI,system-ui,sans-serif}h1{font-size:clamp(1.75rem,3vw,2.45rem);letter-spacing:-.04em;line-height:1.14;margin-bottom:.6rem;color:#18342e}h2{font-size:1.15rem;letter-spacing:-.025em}h3{letter-spacing:-.02em}.app-shell{min-height:100vh}.sidebar{position:fixed;z-index:30;inset:0 auto 0 0;width:258px;display:flex;flex-direction:column;padding:24px 18px 18px;background:#143a33;color:#fff}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 26px;color:#163b34}.brand.light{color:#fff;padding:0}.sidebar .brand{color:#fff}.brand-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;color:#fff;font-weight:800;letter-spacing:-.08em;background:linear-gradient(145deg,#2e917d,#1e695b);box-shadow:inset 0 1px #ffffff40}.brand>div:last-child{display:flex;flex-direction:column;line-height:1.02}.brand strong{font-size:1.08rem;letter-spacing:-.03em}.brand span{font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;opacity:.72}.sidebar nav{display:flex;flex-direction:column;gap:4px;overflow:auto}.sidebar nav a{color:#c9d9d4;display:flex;align-items:center;gap:12px;min-height:44px;padding:0 12px;border-radius:11px;font-weight:500;font-size:.92rem;transition:.2s}.sidebar nav a:hover{background:#ffffff12;color:#fff}.sidebar nav a.active{color:#fff;background:#246354;box-shadow:inset 3px 0 #71c7b3}.nav-chevron{margin-left:auto;opacity:0}.sidebar nav a.active .nav-chevron{opacity:.7}.sidebar-profile{margin-top:auto;border-top:1px solid rgba(255,255,255,.12);padding:18px 4px 0;display:flex;align-items:center;gap:9px;min-width:0}.sidebar-profile>div:nth-child(2){display:flex;flex-direction:column;min-width:0;flex:1}.sidebar-profile strong,.sidebar-profile span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-profile strong{font-size:.82rem}.sidebar-profile span{font-size:.72rem;color:#9eb6af}.avatar{flex:0 0 auto;width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:#dff0eb;color:#155f51;font-size:.73rem;font-weight:700;text-transform:uppercase}.avatar.small{width:31px;height:31px}.icon-button{border:0;padding:7px;color:inherit;background:transparent;cursor:pointer;display:grid;place-items:center;border-radius:9px}.icon-button:hover{background:#1a524614}.icon-button.danger{color:var(--danger)}.sidebar-close,.mobile-topbar,.bottom-nav,.sidebar-scrim{display:none}.main-area{min-height:100vh;margin-left:258px}.page-container{max-width:1420px;margin:0 auto;padding:42px clamp(24px,4vw,58px) 70px}.page-header{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:30px}.page-header>div{max-width:720px}.page-header h1{margin-bottom:7px}.receipt-chart-card{width:min(360px,100%);flex:0 0 auto;padding:14px 16px 12px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 7px 20px #243a3409}.receipt-chart-card>header{margin-bottom:9px;display:flex;align-items:baseline;justify-content:space-between;gap:12px}.receipt-chart-card header span{color:var(--muted);font-size:.72rem}.receipt-chart-card header strong{font-size:.8rem}.receipt-bars{height:88px;display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.receipt-bars>div{min-width:0;display:grid;grid-template-rows:18px 1fr 16px;justify-items:center}.receipt-bars span{font-size:.62rem;font-weight:700;white-space:nowrap}.receipt-bars i{width:22px;height:51px;align-self:end;display:flex;align-items:flex-end;overflow:hidden;border-radius:6px 6px 3px 3px;background:#e7eeeb}.receipt-bars i b{width:100%;display:block;border-radius:inherit;background:linear-gradient(180deg,#38a68e,var(--green))}.receipt-bars small{color:var(--muted);font-size:.65rem;text-transform:capitalize}.floating-new-appointment{position:fixed;z-index:17;right:28px;bottom:24px;min-height:52px;padding:0 19px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:16px;color:#fff;background:var(--green);box-shadow:0 12px 30px #12483d52;font-weight:700;font-size:.86rem;cursor:pointer}.floating-new-appointment:hover{color:#fff;background:#125c4e;transform:translateY(-1px)}.page-description{color:var(--muted);margin:0;font-size:.96rem;line-height:1.55}.eyebrow{color:var(--green);font-size:.72rem;text-transform:uppercase;letter-spacing:.14em;font-weight:700;margin-bottom:8px}.eyebrow.light-text{color:#7fd1bd}.button{border:1px solid transparent;border-radius:11px;min-height:43px;padding:0 17px;display:inline-flex;justify-content:center;align-items:center;gap:8px;font-weight:700;font-size:.88rem;cursor:pointer;transition:transform .15s,background .15s}.button:hover{transform:translateY(-1px)}.button:disabled{opacity:.55;cursor:not-allowed;transform:none}.button.primary{color:#fff;background:var(--green);box-shadow:0 8px 18px #176b5b2e}.button.primary:hover{background:#125c4e}.button.secondary{color:var(--green);background:var(--green-soft);border-color:#c5e1d9}.button.ghost{color:#566863;background:transparent}.button.ghost:hover{background:#eef1ef}.button.compact{min-height:36px;padding:0 11px;font-size:.8rem}.button.full{width:100%}.button.danger-button,.danger-button{color:#fff;background:var(--danger)}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.metric-card{min-height:146px;border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:21px;display:flex;gap:14px;box-shadow:0 7px 20px #243a3409}.metric-card.featured{background:#173f37;color:#fff;border-color:#173f37}.metric-card.featured span,.metric-card.featured small{color:#b7cdc7}.metric-icon{width:39px;height:39px;flex:0 0 auto;display:grid;place-items:center;border-radius:12px;color:var(--green);background:var(--green-soft)}.metric-icon svg{width:19px}.metric-icon.warm{color:#b85d2a;background:#faeadf}.metric-card>div:last-child{display:flex;flex-direction:column;min-width:0}.metric-card span{color:var(--muted);font-size:.79rem}.metric-card strong{color:inherit;margin:10px 0 4px;font-size:clamp(1.22rem,2.2vw,1.7rem);white-space:nowrap}.metric-card small{color:#89948f}.dashboard-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:20px}.month-navigator{width:fit-content;min-width:310px;margin:-8px auto 20px;padding:6px;display:grid;grid-template-columns:42px minmax(180px,1fr) 42px;align-items:center;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 6px 20px #243a340a}.month-navigator>div{display:flex;flex-direction:column;align-items:center}.month-navigator span{color:var(--muted);font-size:.68rem;text-transform:uppercase;letter-spacing:.08em}.month-navigator strong{margin-top:2px;font-size:.98rem}.month-navigator .icon-button:disabled{opacity:.3;cursor:not-allowed}.monthly-salary .salary-details{padding:0 20px 20px;display:grid;gap:9px}.salary-details>div{padding:12px 13px;display:flex;justify-content:space-between;align-items:center;gap:15px;border-radius:11px;background:#f5f7f5}.salary-details span{color:var(--muted);font-size:.77rem}.salary-details strong{font-size:.9rem}.salary-details .salary-highlight{color:#fff;background:#173f37}.salary-details .salary-highlight span{color:#b8cec8}.salary-details .salary-highlight strong{font-size:1.13rem}.monthly-history{margin-top:20px}.month-history-list{padding:0 12px 14px;display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:9px}.month-history-list>button{padding:14px;display:flex;flex-direction:column;gap:9px;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:#fafbf9;cursor:pointer;text-align:left}.month-history-list>button:hover{border-color:#9fc8bd}.month-history-list>button.active{border-color:var(--green);background:#f0f7f4;box-shadow:inset 3px 0 var(--green)}.month-history-list>button>strong{font-size:.86rem}.month-history-list button>div{display:grid;grid-template-columns:63px 1fr auto;align-items:center;gap:8px}.month-history-list span{color:var(--muted);font-size:.67rem}.month-history-list i{height:5px;overflow:hidden;border-radius:99px;background:#e5ebe8}.month-history-list i b{height:100%;display:block;border-radius:inherit;background:var(--green)}.month-history-list i b.received{background:#df8653}.month-history-list em{min-width:74px;font-size:.7rem;font-style:normal;font-weight:700;text-align:right}.panel{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}.panel>header{display:flex;justify-content:space-between;align-items:center;padding:21px 22px 14px}.panel header h2,.panel header p{margin-bottom:0}.panel header a{font-size:.8rem;display:flex;align-items:center;gap:5px}.simple-list{padding:0 10px 10px}.list-row{min-height:65px;border-top:1px solid #edf0ee;display:flex;align-items:center;gap:12px;padding:9px 12px}.list-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#edf5f2;color:var(--green)}.grow{flex:1;min-width:0}.list-row .grow{display:flex;flex-direction:column}.list-row span,.clinic-progress span{color:var(--muted);font-size:.76rem;margin-top:3px}.list-row>strong{font-size:.88rem}.clinic-progress{border-top:1px solid #edf0ee;min-height:65px;display:flex;justify-content:space-between;align-items:center;padding:10px 12px;gap:12px}.clinic-progress>div{display:flex;flex-direction:column}.clinic-values{text-align:right}.clinic-values strong{font-size:.86rem}.clinic-values span{color:#aa6b47}.quick-actions{margin-top:22px}.quick-actions h2{margin-bottom:12px}.quick-actions>div{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.quick-actions a{background:#fff;border:1px solid var(--line);border-radius:15px;padding:17px;display:flex;align-items:center;gap:12px;color:var(--ink)}.quick-actions a>svg:first-child{color:var(--green)}.quick-actions a>svg:last-child{margin-left:auto;width:17px;color:#9aa7a3}.quick-actions a span{display:flex;flex-direction:column}.quick-actions small{color:var(--muted);font-weight:400;margin-top:2px}.toolbar{min-height:58px;display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.toolbar>span{color:var(--muted);font-size:.82rem}.search{width:min(430px,100%);height:43px;border:1px solid var(--line);background:#fff;border-radius:11px;display:flex;align-items:center;padding:0 13px;gap:9px;color:#84918d}.search input,.search select{width:100%;border:0;outline:0;color:var(--ink);background:transparent}.entity-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.entity-card{display:flex;align-items:flex-start;gap:13px;min-height:118px;padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff}.entity-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;color:var(--green);background:var(--green-soft)}.entity-icon svg{width:19px}.entity-card h3{font-size:.98rem;margin:3px 0 4px}.entity-card p,.entity-card small{margin:0;color:var(--muted);font-size:.78rem;line-height:1.4}.entity-card small{display:block;margin-top:8px}.empty{min-height:340px;border:1px dashed #cfd9d5;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px;background:#ffffff80}.empty-mark{width:54px;height:54px;border-radius:17px;display:grid;place-items:center;background:var(--green-soft);color:var(--green);font-weight:800;margin-bottom:16px}.empty h3{margin-bottom:6px}.empty p{color:var(--muted);max-width:400px}.empty .button{margin-top:5px}.loading{min-height:180px;display:flex;justify-content:center;align-items:center;color:var(--muted);gap:9px}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.notice{display:flex;align-items:flex-start;gap:8px;padding:12px 14px;border-radius:10px;font-size:.84rem;line-height:1.4}.notice.error{color:#8d3535;background:#f9e7e7}.notice.success{color:#17614f;background:#e1f2ec}.error-text{color:var(--danger)}.success-icon{color:var(--green)}.modal-backdrop{position:fixed;z-index:100;inset:0;background:#0c1f1b8c;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:grid;place-items:center;padding:20px}.modal{width:min(520px,100%);max-height:calc(100vh - 40px);overflow:auto;border-radius:18px;padding:22px;background:#fff;box-shadow:0 24px 70px #00000038}.modal.modal-wide{width:min(850px,100%)}.modal>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px}.modal>header h2{margin:0}.form-stack,.form-grid{display:flex;flex-direction:column;gap:15px}.form-grid{display:grid;grid-template-columns:1fr 1fr}.span-2{grid-column:span 2}.form-stack label,.form-grid label,.modal>form>label{display:flex;flex-direction:column;gap:6px;color:#354a44;font-size:.82rem;font-weight:600}.optional{color:#8c9894;font-weight:400}.form-stack input,.form-stack select,.form-stack textarea,.form-grid input,.form-grid select,.form-grid textarea,.modal>form>label input{width:100%;min-height:43px;border:1px solid #d9e0dd;border-radius:10px;padding:9px 11px;outline:none;color:var(--ink);background:#fff}.form-stack textarea,.form-grid textarea{resize:vertical}.form-stack input:focus,.form-stack select:focus,.form-grid input:focus,.form-grid select:focus,textarea:focus{border-color:#4b9c8a;box-shadow:0 0 0 3px #2d85721a}.form-stack small,.form-grid small{color:var(--muted);font-weight:400}.form-inline{display:flex;gap:12px}.form-inline>*{flex:1}.form-inline.end{justify-content:flex-end}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:6px}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:16px}table{width:100%;border-collapse:collapse;min-width:780px}th,td{text-align:left;padding:14px 16px;border-bottom:1px solid #e9edeb;font-size:.83rem}th{color:var(--muted);font-size:.71rem;text-transform:uppercase;letter-spacing:.07em;background:#fafbf9}td strong,td small{display:block}td small{color:var(--muted);margin-top:3px}.appointment-mobile-list{display:none}.appointment-detail-head{margin-bottom:14px;padding:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:12px;background:#eef6f3}.appointment-detail-head>div{display:flex;flex-direction:column}.appointment-detail-head span,.appointment-detail-grid span{color:var(--muted);font-size:.7rem}.appointment-detail-head strong{margin-top:3px}.appointment-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:15px}.appointment-detail-grid>div{padding:11px 12px;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:10px}.appointment-detail-grid strong{margin-top:3px;font-size:.82rem}.appointment-detail-items{border-block:1px solid var(--line)}.appointment-detail-items>div{padding:12px 3px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf0ee}.appointment-detail-items>div:last-child{border-bottom:0}.appointment-detail-items span{display:flex;flex-direction:column}.appointment-detail-items small{margin-top:3px;color:var(--muted)}.appointment-notes{padding:12px;display:flex;flex-direction:column;gap:4px;border-radius:10px;color:var(--muted);background:#f5f7f5;font-size:.8rem;line-height:1.45}.appointment-notes strong{color:var(--ink)}.danger-text{color:var(--danger)!important}.badge{display:inline-flex;padding:4px 8px;border-radius:99px;font-size:.68rem;font-weight:700;background:#edf0ee;color:#66736f;white-space:nowrap}.badge.completed,.badge.confirmed,.badge.paid,.badge.auto-matched{color:#19604f;background:#def0e9}.badge.cancelled,.badge.failed,.badge.rejected{color:#984040;background:#f6e2e2}.badge.pending,.badge.needs-review,.badge.processing,.badge.partial{color:#925924;background:#f9ead9}.preview-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:18px}.preview-summary>div{padding:13px;background:#f4f7f5;border-radius:11px;display:flex;flex-direction:column}.preview-summary span{color:var(--muted);font-size:.72rem}.preview-summary strong{margin-top:3px}.preview-items{border-block:1px solid var(--line)}.preview-items>div{display:flex;justify-content:space-between;padding:13px 4px}.preview-items div div{display:flex;flex-direction:column}.preview-items span{color:var(--muted);font-size:.75rem;margin-top:3px}.preview-total{background:#173f37;color:#fff;border-radius:14px;padding:17px;margin:18px 0;display:grid;grid-template-columns:1fr auto}.preview-total span{color:#bad0ca}.preview-total strong{font-size:1.45rem}.preview-total small{grid-column:span 2;color:#a9c1bb;margin-top:4px}.procedure-picker{position:relative;display:flex;flex-direction:column;gap:9px}.procedure-search{min-height:43px;display:flex;align-items:center;gap:8px;padding:0 11px;border:1px solid #d9e0dd;border-radius:10px;background:#fff;color:#84918d}.procedure-search:focus-within{border-color:#4b9c8a;box-shadow:0 0 0 3px #2d85721a}.procedure-search input{min-height:39px;padding:0;border:0;box-shadow:none!important}.procedure-results{position:absolute;z-index:4;top:70px;left:0;right:0;max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:11px;background:#fff;box-shadow:0 14px 35px #19372f29}.procedure-results button{width:100%;min-height:51px;display:flex;justify-content:space-between;align-items:center;padding:8px 12px;border:0;border-bottom:1px solid #edf0ee;color:var(--ink);background:#fff;cursor:pointer;text-align:left}.procedure-results button:hover{background:#f0f7f4}.procedure-results button:last-of-type{border-bottom:0}.procedure-results button span{display:flex;flex-direction:column}.procedure-results small{color:var(--muted);margin-top:2px}.procedure-results p{margin:0;padding:15px;color:var(--muted);font-size:.82rem}.selected-procedures{display:flex;flex-direction:column;gap:8px}.selected-procedures>div{min-height:65px;display:flex;align-items:center;gap:11px;padding:9px 10px;border:1px solid var(--line);border-radius:11px;background:#f9fbfa}.selected-procedures>div>span:nth-of-type(1){flex:1;display:flex;flex-direction:column;min-width:0}.selected-procedures small{color:var(--muted);margin-top:2px}.selected-check{width:28px;height:28px;flex:0 0 auto;display:grid;place-items:center;border-radius:9px;color:var(--green);background:var(--green-soft)}.procedure-price{width:130px;display:flex;flex-direction:column;gap:3px;font-size:.68rem!important}.procedure-price input{min-height:35px!important;padding:6px 8px!important}.locked-price{flex:0 0 185px!important;color:var(--muted);font-size:.73rem;text-align:right}.procedure-empty{margin:0;padding:14px;border:1px dashed #ccd7d3;border-radius:10px;color:var(--muted);text-align:center;font-size:.8rem}.import-grid{display:flex;flex-direction:column;gap:11px}.import-card{min-height:92px;display:flex;align-items:center;gap:14px;padding:16px;background:#fff;border:1px solid var(--line);border-radius:15px}.file-icon{width:45px;height:45px;display:grid;place-items:center;border-radius:13px;color:var(--green);background:var(--green-soft)}.card-title-line{display:flex;align-items:center;gap:9px}.card-title-line h3{margin:0;font-size:.93rem}.import-card p{color:var(--muted);margin:4px 0 0;font-size:.77rem}.progress{height:5px;max-width:360px;overflow:hidden;border-radius:99px;background:#e9eeeb;margin-top:9px}.progress span{display:block;height:100%;background:var(--green)}.review-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.review-head p{color:var(--muted)}.review-list{border:1px solid var(--line);border-radius:12px;overflow:hidden}.review-row{display:grid;grid-template-columns:minmax(160px,1fr) auto minmax(170px,.8fr) auto;gap:10px;align-items:center;padding:11px;border-bottom:1px solid var(--line)}.review-row:last-child{border:0}.review-row>div{display:flex;flex-direction:column}.review-row span{color:var(--muted);font-size:.72rem}.review-row select{min-height:36px;border:1px solid var(--line);border-radius:8px}.matched-name{text-align:right}.mobile-import-guide{display:none}.import-toolbar-actions{display:flex;align-items:center;gap:7px}.import-prompt-text{width:100%;min-height:390px;padding:14px;resize:vertical;border:1px solid var(--line);border-radius:11px;outline:none;color:var(--ink);background:#f8faf9;font-size:.78rem;line-height:1.5}.import-prompt-text:focus{border-color:#4b9c8a;box-shadow:0 0 0 3px #2d85721a}.plan-import-hint{min-height:20px;display:block;color:var(--muted);line-height:1.45}.plan-import-hint.active{padding:9px 11px;border-radius:9px;color:#31584e;background:var(--green-soft)}.plan-selection-fieldset{margin:3px 0 0;padding:15px;border:1px solid #cfe0da;border-radius:12px;background:#f8fbfa}.plan-selection-fieldset legend{padding:0 7px;display:flex;align-items:center;gap:7px;color:var(--green);font-size:.82rem;font-weight:700}.plan-selection-fieldset>p{margin:0 0 11px;color:var(--muted);font-size:.75rem;line-height:1.45}.plan-selection-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.plan-selection-list label{min-height:49px;padding:9px 10px;display:flex;flex-direction:row;align-items:center;gap:9px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:#fff;cursor:pointer;font-size:.78rem;font-weight:500}.plan-selection-list label.selected{border-color:var(--green);background:var(--green-soft)}.form-stack .plan-selection-list input{width:17px;min-height:17px;height:17px;flex:0 0 auto;padding:0;accent-color:var(--green);box-shadow:none}.plan-selection-list span{min-width:0;display:flex;flex-direction:column}.plan-selection-list strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.plan-selection-list small{margin-top:2px}.plan-selection-fieldset>small{display:block;margin-top:9px}.payout-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.payout-card{padding:18px;background:#fff;border:1px solid var(--line);border-radius:16px}.payout-card header{display:flex;justify-content:space-between;gap:12px}.payout-card header p{color:var(--muted);margin-bottom:5px;font-size:.78rem}.payout-card h3{font-size:1.5rem;margin-bottom:14px}.payout-meta{border-block:1px solid var(--line);padding:12px 0;display:flex;justify-content:space-between}.payout-meta span{display:flex;flex-direction:column;color:var(--muted);font-size:.7rem}.payout-meta strong{color:var(--ink);margin-top:3px;font-size:.81rem}.payout-card>p{color:var(--muted);font-size:.8rem;margin:12px 0}.section-help{color:var(--muted);margin:12px 0;font-size:.84rem}.allocation-list{max-height:400px;overflow:auto;border:1px solid var(--line);border-radius:11px}.allocation-list label{display:flex;align-items:center;gap:11px;padding:11px;border-bottom:1px solid var(--line);cursor:pointer}.allocation-list label:last-child{border:0}.allocation-list label span{display:flex;flex:1;flex-direction:column}.allocation-list small{color:var(--muted)}.reconciliation-total{margin:14px 0;padding:15px 17px;display:grid;grid-template-columns:1fr auto;align-items:center;border-radius:13px;color:#fff;background:#173f37}.reconciliation-total span{color:#bad0ca}.reconciliation-total strong{font-size:1.45rem}.reconciliation-total small{grid-column:1 / -1;margin-top:3px;color:#a9c1bb}.receivable-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.receivable-summary article{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:3px 12px;min-height:91px;padding:16px;border:1px solid var(--line);border-radius:15px;background:#fff}.receivable-summary .metric-icon{grid-row:1 / 3}.receivable-summary span{color:var(--muted);font-size:.75rem}.receivable-summary strong{font-size:1.25rem}.receivable-controls{display:grid;grid-template-columns:minmax(240px,1fr) 210px auto;align-items:center;gap:12px;margin-bottom:16px}.receivable-controls>select{min-height:43px;padding:0 11px;border:1px solid var(--line);border-radius:11px;outline:none;color:var(--ink);background:#fff}.receivable-controls>select:focus{border-color:#4b9c8a;box-shadow:0 0 0 3px #2d85721a}.status-tabs{display:flex;gap:3px;padding:3px;border-radius:11px;background:#e9eeeb}.status-tabs button{min-height:35px;padding:0 11px;border:0;border-radius:8px;color:#61706b;background:transparent;font-size:.76rem;font-weight:700;cursor:pointer;white-space:nowrap}.status-tabs button.active{color:var(--green);background:#fff;box-shadow:0 2px 7px #1c3d351a}.receivable-table table{min-width:1050px}.receivable-table tbody tr{transition:background .15s}.receivable-table tbody tr:hover td{background:#f8faf9}.receivable-table tbody tr.selected td{background:#edf7f3}.receivable-table input[type=checkbox]{width:17px;height:17px;accent-color:var(--green);cursor:pointer}.receivable-table input[type=checkbox]:disabled{cursor:not-allowed}.receipt-action-bar{position:sticky;z-index:10;bottom:18px;max-width:760px;margin:16px auto 0;padding:13px 14px 13px 18px;display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid rgba(255,255,255,.12);border-radius:16px;color:#fff;background:#173f37;box-shadow:0 14px 35px #123c3447}.receipt-action-bar>div{display:grid;grid-template-columns:auto auto;column-gap:15px;align-items:baseline}.receipt-action-bar span{color:#bdd0cb;font-size:.77rem}.receipt-action-bar strong{font-size:1.18rem}.receipt-action-bar small{grid-column:1 / -1;margin-top:2px;color:#a9c1bb}.receipt-confirm-summary{margin:0 0 16px;padding:15px 16px;display:grid;grid-template-columns:1fr auto;align-items:center;border-radius:13px;background:#f0f6f3}.receipt-confirm-summary span{color:var(--muted);font-size:.8rem}.receipt-confirm-summary strong{font-size:1.3rem}.receipt-confirm-summary small{grid-column:1 / -1;margin-top:4px;color:var(--muted)}.receivable-mobile-list{display:none}.receipt-detail-values{margin:15px 0;display:grid;grid-template-columns:1fr 1fr;gap:9px}.receipt-detail-values>div{padding:12px;display:flex;flex-direction:column;border-radius:10px;background:#f4f7f5}.receipt-detail-values>div.pending{grid-column:1 / -1;color:#fff;background:#173f37}.receipt-detail-values span{color:var(--muted);font-size:.7rem}.receipt-detail-values .pending span{color:#b8cec8}.receipt-detail-values strong{margin-top:4px;font-size:.95rem}.receipt-detail-values .pending strong{font-size:1.2rem}.commission-fields{margin:3px 0 0;padding:15px;border:1px solid #cfe0da;border-radius:12px;background:#f5faf8}.commission-fields legend{padding:0 7px;display:flex;align-items:center;gap:7px;color:var(--green);font-size:.82rem;font-weight:700}.commission-fields>p{margin:0 0 10px;color:var(--muted);font-size:.75rem}.commission-fields>div:not(.notice){display:grid;grid-template-columns:1fr 1fr;gap:11px}.commission-fields label{display:flex;flex-direction:column;gap:5px;color:#354a44;font-size:.8rem;font-weight:600}.commission-fields>small{display:block;margin-top:9px;color:var(--muted);line-height:1.4}.percentage-input{position:relative}.percentage-input input{padding-right:34px}.percentage-input span{position:absolute;top:50%;right:12px;transform:translateY(-50%);color:var(--muted);font-weight:700}.notice.warning{margin-bottom:11px;color:#805022;background:#f8ead9}.settings-layout{display:grid;grid-template-columns:210px minmax(0,760px);gap:24px;align-items:start}.settings-nav{position:sticky;top:20px;display:flex;flex-direction:column;gap:4px}.settings-nav a,.settings-nav button{min-height:43px;padding:0 11px;display:flex;align-items:center;gap:10px;color:#586b65;background:transparent;border:0;border-radius:9px;font-weight:600;cursor:pointer}.settings-nav a:hover,.settings-nav button:hover{background:#e9efec;color:var(--green)}.settings-nav svg{width:18px}.settings-content{display:flex;flex-direction:column;gap:18px}.settings-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:22px}.settings-card>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.settings-card header h2{margin-bottom:4px}.settings-card header p{color:var(--muted);font-size:.8rem;margin:0}.profile-avatar{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;color:var(--green);background:var(--green-soft);font-weight:800}.privacy-copy{color:#596b66;line-height:1.6;font-size:.88rem}.privacy-copy h3{color:var(--ink)}.danger-zone{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid #eddede;margin-top:22px;padding-top:20px}.danger-zone h3{color:#913d3d;margin-bottom:4px}.danger-zone p{color:var(--muted);margin:0;font-size:.8rem}.auth-page{min-height:100vh;display:grid;grid-template-columns:minmax(380px,.9fr) minmax(440px,1.1fr);background:#f7f7f3}.auth-story{min-height:100vh;padding:42px clamp(34px,6vw,88px);color:#fff;background:radial-gradient(circle at 80% 15%,rgba(77,167,147,.22),transparent 28%),linear-gradient(145deg,#11372f,#185448);display:flex;flex-direction:column;justify-content:space-between}.auth-promise{max-width:560px}.auth-promise h1{color:#fff;font-size:clamp(2.4rem,5vw,4.5rem);line-height:1.02}.auth-promise>p:last-child{color:#bdd2cc;max-width:450px;line-height:1.6}.auth-benefits{display:flex;gap:24px;flex-wrap:wrap}.auth-benefits span{display:flex;align-items:center;gap:7px;color:#c6d9d4;font-size:.77rem}.auth-benefits svg{width:17px;color:#75cab6}.auth-form-wrap{min-height:100vh;padding:40px 24px;display:flex;flex-direction:column;justify-content:center;align-items:center}.auth-card{width:min(420px,100%)}.auth-card h2{font-size:1.7rem;margin-bottom:7px}.auth-card>p{color:var(--muted);margin-bottom:26px}.auth-card .form-stack{gap:17px}.auth-card .button.primary{min-height:48px;margin-top:3px}.auth-switch{text-align:center;font-size:.86rem;margin:20px 0 0!important}.auth-footer{color:#8c9894;font-size:.72rem;margin-top:40px}.back-link{display:inline-flex;align-items:center;gap:6px;margin-top:20px;font-size:.84rem}.muted{color:var(--muted)}.padded{padding:20px}@media(max-width:1120px){.metric-grid,.entity-grid,.payout-grid{grid-template-columns:repeat(2,1fr)}.quick-actions>div{grid-template-columns:1fr}.auth-page{grid-template-columns:.8fr 1fr}.auth-promise h1{font-size:2.8rem}}@media(max-width:780px){.sidebar{transform:translate(-100%);transition:transform .22s;box-shadow:12px 0 40px #0003}.sidebar.open{transform:translate(0)}.sidebar-close{display:grid;position:absolute;top:21px;right:15px}.sidebar-scrim{display:block;position:fixed;z-index:20;inset:0;border:0;background:#0a1c1866}.main-area{margin-left:0}.mobile-topbar{height:58px;position:sticky;z-index:15;top:0;padding:0 14px;display:flex;justify-content:space-between;align-items:center;background:#f7f7f3f0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}.mobile-topbar>strong{font-size:.9rem}.page-container{padding:25px 16px 92px}.bottom-nav{position:fixed;z-index:18;display:grid;grid-template-columns:repeat(5,1fr);inset:auto 0 0;min-height:66px;padding-bottom:env(safe-area-inset-bottom);background:#fffffff5;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-top:1px solid var(--line)}.bottom-nav a{color:#7c8985;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:.58rem}.bottom-nav a.active{color:var(--green)}.bottom-nav a svg{width:20px}.page-header{align-items:flex-start;flex-direction:column;margin-bottom:22px}.page-header .button,.receipt-chart-card{width:100%}.floating-new-appointment{right:17px;bottom:calc(78px + env(safe-area-inset-bottom));width:56px;min-height:56px;padding:0;border-radius:50%}.floating-new-appointment span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.metric-grid{grid-template-columns:1fr 1fr;gap:10px}.metric-card{min-height:140px;padding:15px;flex-direction:column;gap:8px}.metric-card strong{margin-top:6px}.dashboard-grid,.entity-grid,.payout-grid{grid-template-columns:1fr}.toolbar{align-items:stretch;flex-direction:column}.search{width:100%}.form-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.form-inline{flex-direction:column}.preview-summary{grid-template-columns:1fr}.review-row{grid-template-columns:1fr auto}.review-row select,.matched-name{grid-column:1 / -1;text-align:left}.imports-desktop-only{display:none}.mobile-import-guide{display:block;padding:22px 18px;border:1px solid var(--line);border-radius:18px;background:#fff}.mobile-import-icon{width:48px;height:48px;margin-bottom:17px;display:grid;place-items:center;border-radius:15px;color:var(--green);background:var(--green-soft)}.mobile-import-guide h2{margin-bottom:8px;font-size:1.2rem}.mobile-import-guide>p:not(.eyebrow){color:var(--muted);font-size:.84rem;line-height:1.5}.mobile-import-guide ol{margin:18px 0;padding-left:23px;color:#425650;font-size:.82rem;line-height:1.8}.mobile-import-guide>div:last-child{display:flex;flex-direction:column;gap:8px}.mobile-import-guide .button{width:100%}.import-prompt-text{min-height:48vh}.settings-layout{grid-template-columns:1fr}.settings-nav{position:static;flex-direction:row;overflow:auto}.settings-nav a,.settings-nav button{white-space:nowrap}.danger-zone{align-items:stretch;flex-direction:column}.auth-page{display:block}.auth-story{display:none}.auth-form-wrap{padding:30px 20px}.modal-backdrop{padding:0;align-items:end}.modal,.modal.modal-wide{width:100%;max-height:92vh;border-radius:20px 20px 0 0;padding-bottom:calc(22px + env(safe-area-inset-bottom))}.selected-procedures>div{align-items:flex-start;flex-wrap:wrap}.procedure-price{width:calc(100% - 50px);margin-left:39px}.locked-price{flex:1 0 calc(100% - 50px)!important;margin-left:39px;text-align:left}.receivable-summary{grid-template-columns:1fr;gap:9px}.receivable-summary article{min-height:76px;padding:12px 14px}.receivable-controls{grid-template-columns:1fr}.status-tabs{overflow-x:auto}.status-tabs button{flex:1 0 auto}.receipt-action-bar{bottom:76px;align-items:stretch;flex-direction:column;gap:10px;padding:14px}.receipt-action-bar .button{width:100%}.month-navigator{width:100%;min-width:0;margin-top:0}.monthly-history{margin-top:14px}.month-history-list{grid-template-columns:1fr}.appointments-desktop,.receivables-desktop{display:none}.appointment-mobile-list,.receivable-mobile-list{display:flex;flex-direction:column;gap:9px}.appointment-mobile-card,.receivable-mobile-card{width:100%;min-height:76px;padding:13px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid var(--line);border-radius:14px;color:var(--ink);background:#fff;text-align:left;cursor:pointer}.appointment-mobile-card>div,.receivable-mobile-card>div{display:flex;flex-direction:column;min-width:0}.appointment-mobile-card>div:first-child,.receivable-mobile-card>div:first-child{flex:1}.appointment-mobile-card>div:last-child,.receivable-mobile-card>div:last-child{flex-direction:row;align-items:center;gap:8px}.appointment-mobile-card span,.receivable-mobile-card span{margin-top:5px;color:var(--muted);font-size:.76rem}.appointment-mobile-card svg,.receivable-mobile-card svg{color:#95a39f}.receivable-mobile-card.selected{border-color:var(--green);background:#edf7f3}.receivable-mobile-card.selected svg{color:var(--green)}.appointment-detail-grid{grid-template-columns:1fr}}@media(max-width:430px){.metric-grid{grid-template-columns:1fr}.metric-card{min-height:114px;flex-direction:row}.page-header h1{font-size:1.7rem}.card-title-line{align-items:flex-start;flex-direction:column}.modal-actions{flex-direction:column-reverse}.modal-actions .button{width:100%}}@media(max-width:430px){.commission-fields>div:not(.notice),.plan-selection-list{grid-template-columns:1fr}}
