:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17342c;background:#f4f7f4;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.52}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #69c5aa;outline-offset:2px}.topbar{height:78px;padding:0 38px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #dce7de}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#147b5d;color:#fff;font-weight:800;font-size:26px;line-height:1}.brand strong{display:block;font-size:15px;letter-spacing:-.02em}.brand small{display:block;color:#778a7e;font-size:11px;margin-top:2px}.topbar-actions{display:flex;align-items:center;gap:18px}.preview-badge{background:#fff5db;color:#795624;border:1px solid #f2ddb2;border-radius:999px;padding:7px 12px;font-size:12px;font-weight:700}.text-button{border:0;background:none;color:#567167;font-size:12px;font-weight:700}.text-button:hover{text-decoration:underline}.app-shell{display:grid;grid-template-columns:226px minmax(0,1fr);min-height:calc(100vh - 78px)}.sidebar{display:flex;flex-direction:column;gap:3px;padding:31px 15px 20px;background:#fafdFA;border-right:1px solid #dce7de}.sidebar-heading,.mini-label,.eyebrow{font-size:10px;font-weight:800;letter-spacing:.16em;color:#2e9774}.sidebar-heading{color:#84968a;margin:0 13px 17px}.nav-item{display:flex;align-items:center;gap:11px;width:100%;background:transparent;border:0;border-radius:10px;padding:12px 13px;text-align:left;color:#637970;font-size:13px;font-weight:650}.nav-item:hover{background:#eef5f0}.nav-item.active{background:#e3f2e8;color:#0d7051}.nav-icon{font-size:18px;line-height:1}.nav-count{margin-left:auto;padding:2px 7px;border-radius:7px;background:#e1eae4;font-size:11px}.sidebar-spacer{flex:1}.side-note{border-radius:14px;background:#ebf3ec;padding:18px 17px;color:#37584a}.side-note strong{font-size:12px}.side-note p{font-size:11px;line-height:1.55;margin:7px 0 0;color:#678073}.content{min-width:0;width:100%;max-width:1440px;padding:42px 46px 70px}.view{display:none}.view.active{display:block}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:9px 0 28px}.page-head h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(30px,3vw,42px);letter-spacing:-.04em;font-weight:600;line-height:1.14;margin:0 0 9px}.page-head p{color:#6c8175;font-size:13px;line-height:1.6;max-width:620px;margin:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border-radius:9px;padding:0 16px;font-size:12px;font-weight:800;white-space:nowrap}.button.primary{border:1px solid #147b5d;background:#147b5d;color:#fff;box-shadow:0 3px 8px rgba(7,102,70,.12)}.button.primary:hover{background:#0c684d}.button.outline{background:#fff;border:1px solid #cbdcd0;color:#235741}.button.outline:hover{background:#f5faf5}.button.ghost{background:transparent;border:0;color:#117c5a;padding:0 5px;min-height:30px}.button.ghost:hover{text-decoration:underline}.button.small{min-height:32px;padding:0 11px;font-size:11px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}.stat{position:relative;padding:18px 20px;border:1px solid #dfebe1;background:#fff;border-radius:14px;box-shadow:0 3px 14px rgba(24,62,40,.025)}.stat strong{display:block;font-family:Georgia,serif;font-size:30px;font-weight:500;margin-top:3px}.stat span{font-size:11px;color:#72897b;font-weight:700}.stat:after{content:"";position:absolute;right:17px;top:19px;width:8px;height:8px;border-radius:50%;background:#78c9a9}.workspace-grid{display:grid;grid-template-columns:minmax(270px,.9fr) minmax(430px,1.55fr);gap:18px;align-items:start}.panel{background:#fff;border:1px solid #dfebe1;border-radius:16px;box-shadow:0 4px 22px rgba(24,62,40,.035)}.tree-panel{padding:23px 20px}.detail-panel{padding:23px 25px;min-height:450px}.panel-head{display:flex;justify-content:space-between;align-items:start;gap:10px}.panel h2{font-family:Georgia,serif;font-size:22px;font-weight:500;letter-spacing:-.025em;margin:4px 0 0}.panel-intro{color:#788b80;font-size:11px;line-height:1.55;margin:8px 0 21px}.patient-block{margin:0 0 17px}.patient-head,.episode-head,.hospital-row{width:100%;display:flex;align-items:center;gap:10px;text-align:left;background:transparent;border:0;color:#245241}.patient-head{font-weight:800;font-size:13px;padding:11px 9px 7px}.avatar{display:grid;place-items:center;width:32px;height:32px;flex:none;background:#e2f2e9;color:#137653;border-radius:10px;font-size:11px}.patient-meta,.episode-meta{color:#83988a;font-size:10px;margin-left:auto;white-space:nowrap}.episode-group{margin-left:23px;border-left:1px solid #d9e8df;padding-left:14px}.episode-head{font-size:12px;font-weight:730;padding:10px 4px}.episode-head:hover,.hospital-row:hover{color:#0f9369}.hospital-row{font-size:11px;color:#60786b;padding:9px 9px 9px 13px;border-radius:8px}.hospital-row.selected{background:#e8f5ec;color:#087650;font-weight:800}.hospital-row::before{content:"";width:6px;height:6px;border:1.5px solid currentColor;border-radius:50%}.inline-add{border:0;background:transparent;color:#12815c;font-weight:800;font-size:11px;padding:8px 5px}.inline-add:hover{text-decoration:underline}.tree-add{margin-left:17px}.divider{height:1px;background:#e8efe9;margin:20px 0}.detail-kicker{display:flex;align-items:center;gap:8px;color:#15835d;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}.detail-kicker .dot{width:7px;height:7px;border-radius:50%;background:#20b37a}.detail-title{display:flex;justify-content:space-between;gap:14px;align-items:start;margin:11px 0 4px}.detail-title h2{font-size:26px}.detail-sub{font-size:12px;color:#728679;margin:6px 0 18px}.pill{border-radius:999px;padding:5px 9px;font-size:10px;font-weight:800;background:#edf4ef;color:#3a7755;white-space:nowrap}.info-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:0;background:#f5f9f5;border:1px solid #e3ede4;border-radius:12px;margin:19px 0 24px}.info-strip div{padding:13px 16px;border-right:1px solid #e1eae2}.info-strip div:last-child{border-right:0}.info-strip span{display:block;font-size:10px;color:#7c9082;margin-bottom:5px}.info-strip strong{display:block;font-size:11px;font-weight:750;color:#2c5641}.section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 0 11px}.section-head h3{font-size:14px;letter-spacing:-.01em;margin:0}.section-note{font-size:11px;color:#84998a;margin:0 0 14px}.bill-table{width:100%;border-collapse:collapse;font-size:11px}.bill-table th{text-align:left;text-transform:uppercase;letter-spacing:.1em;font-size:9px;color:#9aac9d;font-weight:800;padding:9px 9px 11px;border-bottom:1px solid #e5eee5}.bill-table td{padding:12px 9px;border-bottom:1px solid #edf2ed;color:#415d4d;vertical-align:top}.bill-table td strong{color:#1c4835}.bill-table td:last-child,.bill-table th:last-child{text-align:right}.status{display:inline-block;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:800}.status.approved{background:#e3f3e8;color:#13744e}.status.pending{background:#fff1dd;color:#916423}.status.claimed{background:#e5edf8;color:#355e8c}.detail-footer{border-top:1px solid #e7eee7;margin-top:22px;padding-top:19px;display:flex;align-items:center;justify-content:space-between;gap:15px}.detail-footer p{margin:0;color:#7b8f81;font-size:11px;line-height:1.45}.empty{padding:44px 22px;text-align:center;background:#f8fbf8;border:1px dashed #ccdccc;border-radius:12px;color:#698272}.empty strong{display:block;color:#315845;font-size:14px;margin-bottom:5px}.empty p{font-size:12px;line-height:1.5;margin:0 0 14px}.claim-list{display:grid;gap:13px}.claim-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 23px;background:#fff;border:1px solid #dfeae0;border-radius:14px}.claim-card h2{font-size:15px;margin:0 0 6px}.claim-card p{font-size:11px;color:#6d8274;margin:0}.claim-card .amount{font-family:Georgia,serif;font-size:23px;color:#175d42}.claim-side{text-align:right;display:flex;align-items:center;gap:22px}.notice{display:none;border-radius:10px;padding:12px 15px;font-size:12px;margin-bottom:18px}.notice.show{display:block}.notice.success{background:#e3f4e8;color:#225c3f}.notice.error{background:#fff0e9;color:#8c422c}.notice.info{background:#eaf2f7;color:#335d75}dialog{width:min(620px,calc(100vw - 30px));max-height:90vh;border:1px solid #d8e6dc;border-radius:17px;box-shadow:0 24px 90px rgba(24,48,35,.25);padding:0;color:#183e2c}dialog::backdrop{background:rgba(16,41,29,.48)}.dialog-head{display:flex;align-items:start;justify-content:space-between;padding:24px 27px 14px}.dialog-head h2{font-family:Georgia,serif;font-size:25px;font-weight:500;margin:5px 0 0}.close-button{font-size:25px;background:transparent;border:0;color:#7c9183;line-height:1}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;padding:18px 27px 25px;border-top:1px solid #edf1ed}.dialog-content{padding:4px 27px 23px;max-height:60vh;overflow:auto}.fields{display:grid;grid-template-columns:1fr 1fr;gap:13px}.field{display:flex;flex-direction:column;gap:5px}.field.full{grid-column:1/-1}.field label{font-size:11px;color:#476551;font-weight:800}.field input,.field select,.field textarea{width:100%;border:1px solid #cfddd2;background:#fff;border-radius:8px;padding:10px 11px;color:#1d4230;font-size:12px}.field textarea{min-height:70px;resize:vertical}.help{font-size:11px;color:#738d7a;line-height:1.5;margin:10px 0}.form-subhead{margin:20px 0 9px;font-size:12px;font-weight:800;color:#2b5740}.item-row{display:grid;grid-template-columns:1fr 1fr 1fr 1fr .75fr auto;gap:7px;align-items:end;margin-bottom:8px}.item-row .field label{font-size:9px}.item-row .field input,.item-row .field select{font-size:11px;padding:8px}.remove-item{background:#fbecea;border:0;color:#9a4c43;border-radius:7px;height:33px;width:30px}.check-row{display:flex;align-items:flex-start;gap:9px;border:1px solid #e3ebe2;border-radius:9px;padding:11px 12px;margin:8px 0;font-size:12px}.check-row input{margin-top:2px}.check-row span{flex:1}.check-row small{color:#718978}.warning-box{background:#fff7e7;border:1px solid #efdfb9;border-radius:10px;padding:12px 14px;color:#785e2a;font-size:11px;line-height:1.55;margin:13px 0}.certificate-shell{display:grid;gap:16px}.certificate-page{background:white;border:1px solid #dae5dc;box-shadow:0 7px 24px rgba(22,54,34,.05);padding:35px;max-width:840px;margin:0 auto;width:100%;min-height:750px;color:#1b2922}.cert-top{font-size:11px;display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #6c7d70;padding-bottom:13px}.cert-kicker{text-align:center;text-transform:uppercase;letter-spacing:.16em;font-size:10px;margin-top:20px}.certificate-page h2{text-align:center;font-family:Georgia,serif;font-size:19px;letter-spacing:.035em;margin:7px 0 17px}.cert-note{font-size:10px;line-height:1.65;margin:6px 0 16px}.cert-table{width:100%;border-collapse:collapse;font-size:10px}.cert-table th,.cert-table td{border:1px solid #8e9e91;padding:8px 6px;vertical-align:top}.cert-table th{background:#f5f8f4;text-align:left}.cert-table .money{text-align:right;white-space:nowrap}.cert-summary{margin-top:15px;font-size:10px;display:grid;grid-template-columns:1fr 1fr;gap:16px}.cert-summary table{width:100%;border-collapse:collapse}.cert-summary td{padding:4px 0;border-bottom:1px solid #e1e7df}.cert-summary td:last-child{text-align:right}.cert-totals{border:1px solid #b8c8bb;padding:11px 13px}.cert-totals p{display:flex;justify-content:space-between;gap:10px;margin:5px 0}.cert-totals .grand{border-top:1px solid #abbcad;padding-top:7px;font-size:12px;font-weight:800}.cert-signatures{display:flex;justify-content:space-between;gap:20px;margin-top:70px;font-size:10px}.cert-signatures div{width:45%;border-top:1px solid #7c8c7d;padding-top:6px}.cert-signatures small{display:block;margin-top:4px;color:#697b6c}.preview-warning{max-width:840px;margin:0 auto 17px;background:#fff6e4;border:1px solid #efdeb3;border-radius:10px;padding:12px 15px;font-size:11px;color:#74582a}.no-print{}@media(max-width:1050px){.app-shell{grid-template-columns:175px minmax(0,1fr)}.content{padding:30px 24px}.workspace-grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.topbar{height:auto;min-height:70px;padding:13px 17px;gap:10px}.topbar-actions{gap:5px;flex-direction:column;align-items:flex-end}.preview-badge{font-size:9px;padding:5px 7px}.app-shell{display:block}.sidebar{border-right:0;border-bottom:1px solid #dce7de;padding:8px 12px;flex-direction:row;align-items:center;overflow:auto}.sidebar-heading,.side-note,.sidebar-spacer{display:none}.nav-item{width:auto;white-space:nowrap;padding:9px}.content{padding:27px 16px}.page-head{display:block}.page-head .button{margin-top:17px}.stats{gap:8px}.stat{padding:14px}.stat strong{font-size:23px}.detail-panel,.tree-panel{padding:19px 15px}.info-strip{grid-template-columns:1fr 1fr}.info-strip div:nth-child(2){border-right:0}.info-strip div:last-child{grid-column:1/-1;border-top:1px solid #e1eae2}.bill-table{font-size:10px}.bill-table th,.bill-table td{padding:9px 5px}.fields{grid-template-columns:1fr}.item-row{grid-template-columns:1fr 1fr}.item-row .remove-item{grid-column:2}.claim-card{display:block}.claim-side{text-align:left;margin-top:15px;justify-content:space-between}.certificate-page{padding:16px;overflow:auto}.cert-table{min-width:630px}.cert-summary{grid-template-columns:1fr}.dialog-content{padding:4px 18px 20px}.dialog-head{padding:20px 18px 10px}.dialog-actions{padding:16px 18px 20px}}@media print{@page{size:A4 portrait;margin:12mm}body{background:#fff}.topbar,.sidebar,.page-head,.eyebrow,.notice,.preview-warning{display:none!important}.app-shell,.content,.certificate-shell{display:block!important;padding:0!important;max-width:none!important}.view{display:none!important}#certificate-view{display:block!important}.certificate-page{border:0;box-shadow:none;padding:0;max-width:none;min-height:0;page-break-after:always}.certificate-page:last-child{page-break-after:auto}.cert-table{min-width:0}#print-certificate{display:none!important}}

.table-wrap{max-width:100%;overflow-x:auto}.workspace-grid,.panel,.content{min-width:0}@media(max-width:700px){body{overflow-x:hidden}.workspace-grid{display:block}.tree-panel{margin-bottom:16px}.sidebar{scrollbar-width:none}.sidebar::-webkit-scrollbar{display:none}}

.claim-editor{width:100%;height:calc(100vh - 180px);min-height:720px;border:1px solid #d5dfd8;border-radius:10px;background:#e2e8f0}body:has(#certificate-view.active) .content{max-width:none;padding:20px}body:has(#certificate-view.active) .app-shell{grid-template-columns:170px minmax(0,1fr)}@media(max-width:700px){.claim-editor{min-height:760px}body:has(#certificate-view.active) .content{padding:12px}}

.profile-mode .app-shell{display:block;min-height:calc(100vh - 78px)}.profile-mode .sidebar{display:none}.profile-mode .content{max-width:880px;margin:0 auto;padding-top:58px}.profile-card{background:#fff;border:1px solid #dfebe1;border-radius:20px;padding:38px 42px;box-shadow:0 8px 32px rgba(24,62,40,.05)}.profile-card h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(30px,4vw,42px);letter-spacing:-.04em;font-weight:600;line-height:1.12;margin:13px 0 10px}.profile-lede{max-width:650px;color:#6c8175;font-size:13px;line-height:1.65;margin:0 0 20px}.profile-preview-note{border:1px solid #efdfb9;background:#fff7e7;border-radius:10px;padding:12px 15px;color:#785e2a;font-size:11px;line-height:1.55;margin-bottom:24px}.profile-section-title{font-size:12px;font-weight:850;color:#2b5740;margin:20px 0 12px}.profile-form .fields{gap:15px}.profile-form .field input,.profile-form .field textarea{padding:11px 12px}.profile-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #e8efe9;padding-top:20px;margin-top:25px}.profile-actions span{font-size:11px;color:#718679}.profile-mode .topbar{position:relative}@media(max-width:700px){.profile-mode .content{padding:25px 14px}.profile-card{padding:25px 19px}.profile-actions{align-items:stretch;flex-direction:column}.profile-actions .button{width:100%}}
.profile-list-head{display:flex;align-items:center;justify-content:space-between;color:#2b5740;font-size:12px;margin:21px 0 9px}.profile-list-head span{color:#718679;font-size:11px}.employee-profile-list{display:grid;gap:8px}.employee-profile-card{display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid #e1ebe2;background:#f9fcf9;border-radius:10px;padding:11px 13px}.employee-profile-card strong,.employee-profile-card span{display:block}.employee-profile-card strong{font-size:12px;color:#244e39}.employee-profile-card span{font-size:10px;color:#718679;margin-top:3px}.employee-list-empty{font-size:11px;color:#829487;margin:0}.profile-action-buttons{display:flex;gap:9px;align-items:center}.profile-continue{margin-top:18px}.profile-form[hidden]{display:none!important}@media(max-width:700px){.profile-action-buttons{flex-direction:column-reverse;align-items:stretch}.employee-profile-card .button{width:auto!important}}
.claim-amount-block{display:flex;flex-direction:column;align-items:flex-end;gap:3px;min-width:205px}.claim-amount-label{font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#668071}.claim-amount-details{font-size:9px;line-height:1.4;color:#829286}.claim-amount-warning{font-size:9px;font-weight:800;color:#9a4c43}@media(max-width:700px){.claim-amount-block{align-items:flex-start;min-width:0}}
[hidden]{display:none!important}
/* Stateless OCR trial */
.ocr-actions{display:flex;gap:8px;flex-wrap:wrap}.ocr-consent{display:flex;align-items:flex-start;gap:9px;margin:18px 0;font-size:13px;line-height:1.5}.ocr-consent input{margin-top:3px;flex:none}#ocr-dialog{width:min(760px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto}#ocr-dialog::backdrop{background:rgba(15,39,31,.57)}#ocr-dialog form{padding:28px}#ocr-dialog .field{margin-top:18px}#ocr-dialog input[type=file]{width:100%;padding:12px}#ocr-results{margin-top:20px}#ocr-results .table-wrap{max-height:300px;overflow:auto}#ocr-results .warning-box{margin-top:14px}#ocr-results .warning-box ul{margin:8px 0 0;padding-left:20px}.ocr-summary{background:#f4faf7;border:1px solid #d5e8de;border-radius:10px;padding:14px;margin-bottom:14px}.ocr-summary p{line-height:1.7;margin:8px 0 0}
.ocr-review-dialog{width:min(1150px,calc(100vw - 24px))}.ocr-review-dialog .dialog-content{max-height:68vh}.ocr-reconcile{margin:12px 0;padding:12px 14px;background:#fff7e7;border:1px solid #efdfb9;border-radius:9px;color:#785e2a;font-size:12px;font-weight:700;line-height:1.5}.ocr-reconcile.reconciled{background:#ecf7ef;border-color:#b9ddc5;color:#166546}.ocr-page-nav{position:sticky;top:0;z-index:2;display:flex;gap:7px;flex-wrap:wrap;padding:9px 0;background:#fff}.ocr-page{border:1px solid #dce9df;border-radius:12px;padding:15px;margin:14px 0;scroll-margin-top:54px}.ocr-page h4{margin:0 0 12px;font-size:13px;color:#225b40}.ocr-page-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:16px}.ocr-page-image{min-width:0}.ocr-page-image img{display:block;width:100%;max-height:370px;object-fit:contain;object-position:top;border:1px solid #dce9df;border-radius:7px;background:#f7f9f7}.ocr-page-image p{font-size:11px;line-height:1.4;color:#738d7a}.ocr-page .page-item-rows{min-width:0}.ocr-page .item-row{grid-template-columns:1fr 1fr 1fr 1.3fr .75fr auto}.ocr-page .item-row .field{min-width:0}.ocr-page .item-row .field input,.ocr-page .item-row .field select{min-width:0}.ocr-page .button.ghost{margin-top:5px}@media(max-width:900px){.ocr-page-layout{grid-template-columns:1fr}.ocr-page-image img{max-height:300px}.ocr-page .item-row{grid-template-columns:repeat(2,minmax(0,1fr))}.ocr-page .item-row .remove-item{grid-column:2}}
#ocr-file-order ol{list-style:none;margin:8px 0;padding:0;display:grid;gap:6px}#ocr-file-order li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;border:1px solid #dce9df;border-radius:8px;font-size:11px;color:#315b43}#ocr-file-order li span:first-child{overflow-wrap:anywhere}#ocr-file-order li span:last-child{display:flex;gap:5px;flex:none}
#image-editor-dialog{width:min(1050px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto}#image-editor-dialog::backdrop{background:rgba(15,39,31,.68)}.image-editor-body{padding:0 27px 18px}.image-editor-tools{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0 8px}.image-editor-tools [aria-pressed="true"]{background:#e3f2e8;border-color:#147b5d;color:#0d7051}.image-editor-stage{display:grid;place-items:center;min-height:220px;max-height:58vh;overflow:auto;padding:15px;background:#e9eeeb;border:1px solid #d4dfd7;border-radius:10px}.image-editor-stage canvas{display:block;max-width:100%;height:auto;touch-action:none;cursor:crosshair;background:#fff;box-shadow:0 2px 15px rgba(0,0,0,.14)}@media(max-width:700px){.image-editor-body{padding:0 18px 16px}.image-editor-stage{padding:7px;max-height:50vh}}
.claim-side{flex-wrap:wrap;justify-content:flex-end;gap:10px 14px}.claim-amount-warning{display:block;margin-top:6px}
