@font-face{font-family:Inter;src:url('assets/inter.ttf') format('truetype');font-weight:400;font-display:swap}@font-face{font-family:Inter;src:url('assets/inter-bold.ttf') format('truetype');font-weight:600 900;font-display:swap}@font-face{font-family:Faruma;src:url('assets/Faruma.otf') format('opentype');font-display:swap;unicode-range:U+0780-07BF}
:root{--bg:#eef3f1;--ink:#344640;--muted:#83908b;--accent:#508d7b;--accent-rgb:80,141,123;--glass:rgba(255,255,255,.67);--line:rgba(98,125,113,.12);--input:rgba(255,255,255,.56);--shadow:0 10px 30px rgba(54,81,68,.035);font-family:Inter,Faruma,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);color-scheme:light}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-size:13px;line-height:1.5;min-height:100vh;transition:background .4s,color .4s}body.dark{--bg:#172420;--ink:#e0eae5;--muted:#91a49a;--accent:#88bfa9;--accent-rgb:136,191,169;--glass:rgba(30,47,40,.72);--line:rgba(174,207,188,.13);--input:rgba(17,32,24,.35);--shadow:0 10px 30px rgba(0,0,0,.07);color-scheme:dark}button,input,a,summary{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a,summary{touch-action:manipulation}button,a{color:inherit}a{text-decoration:none}button{cursor:pointer}button:disabled{cursor:default}button{border:0}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:4px}[hidden]{display:none!important}.ambient{position:fixed;pointer-events:none;z-index:-1;filter:blur(65px);border-radius:50%;animation:drift 22s ease-in-out infinite alternate}.ambient-one{width:740px;height:420px;right:0;top:-210px;background:rgba(138,211,181,.26)}.ambient-two{width:470px;height:360px;left:210px;bottom:-240px;background:rgba(209,192,123,.22);animation-delay:-7s}.dark .ambient{opacity:.3}@keyframes drift{to{transform:translate(-40px,50px) scale(1.13)}}.glass{background:var(--glass);border:1px solid rgba(255,255,255,.65);box-shadow:var(--shadow);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}.dark .glass{border-color:rgba(255,255,255,.07)}.sidebar{position:fixed;left:20px;top:20px;bottom:20px;width:238px;border-radius:28px;padding:36px 20px 22px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:12px;padding:0 7px}.brand-mark{display:grid;place-items:center;width:45px;height:45px;background:rgba(var(--accent-rgb),.07);border:1px solid var(--line);border-radius:14px;color:var(--accent)}.brand-mark svg{width:40px;height:40px}.brand strong{display:block;font-size:27px;letter-spacing:-1.3px;line-height:1.3;font-weight:750}.brand small{font-size:9px;letter-spacing:3px;font-weight:600;color:var(--muted)}nav{margin-top:57px}.nav-item{display:flex;align-items:center;gap:12px;min-height:47px;padding:12px 14px;border-radius:14px;font-size:12px;font-weight:550;color:var(--muted);transition:background .25s,color .25s,transform .25s}.nav-item:hover{background:rgba(var(--accent-rgb),.04);transform:translateX(2px)}.nav-item.active{color:var(--accent);background:rgba(var(--accent-rgb),.055);border:1px solid rgba(var(--accent-rgb),.065)}.nav-item i{width:5px;height:5px;border-radius:50%;background:var(--accent);margin-left:auto}.nav-label{font-size:9px;letter-spacing:1.8px;color:var(--muted);padding:32px 14px 14px}svg.icon{width:18px;height:18px;display:block;stroke:currentColor;stroke-width:1.5;fill:none;stroke-linecap:round;stroke-linejoin:round}.hospital{margin-top:auto;padding:22px 0 1px;display:flex;align-items:center;gap:11px;border-top:1px solid var(--line)}.hospital-mark{background:rgba(var(--accent-rgb),.05);border:1px solid var(--line);padding:7px;border-radius:10px;color:var(--accent)}.hospital strong{font-size:10px;font-weight:550;display:block}.hospital small{font-size:10px;color:var(--muted)}main{margin-left:258px;padding:31px 40px 22px;max-width:1800px}.topbar{display:flex;align-items:center;justify-content:space-between;height:40px;margin-bottom:49px}.breadcrumb{font-size:11px;display:flex;gap:18px;align-items:center}.breadcrumb>span:first-child,.breadcrumb b{color:var(--muted);font-weight:400}.top-actions{display:flex;align-items:center;gap:24px;color:var(--muted);font-size:11px}.icon-button{width:35px;height:35px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.5);color:var(--muted);transition:color .2s,background .2s,transform .25s}.icon-button:hover{color:var(--accent);background:rgba(var(--accent-rgb),.09);transform:rotate(5deg)}.dark .icon-button{background:rgba(255,255,255,.04)}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:34px;gap:20px}.eyebrow{font-size:9px;font-weight:650;letter-spacing:2.2px;color:var(--muted);margin:0 0 9px}h1{font-size:34px;letter-spacing:-1.8px;line-height:1.2;margin:0;font-weight:700}h1>span{color:var(--accent)}.button{display:inline-flex;align-items:center;justify-content:center;gap:11px;border-radius:14px;padding:15px 24px;font-weight:600;font-size:12px;transition:transform .25s,box-shadow .25s,opacity .25s}.primary{color:white;background:var(--accent);box-shadow:0 5px 15px rgba(var(--accent-rgb),.1)}.primary:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 24px rgba(var(--accent-rgb),.2)}.primary:disabled{opacity:.45}.primary .icon{width:16px;height:16px}.workspace{display:grid;grid-template-columns:330px minmax(0,1fr);gap:25px;align-items:start}.controls{display:flex;flex-direction:column;gap:20px;min-width:0}.panel{border-radius:23px;padding:25px}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}h2{font-size:13px;letter-spacing:-.3px;margin:0;font-weight:600}.panel-heading>span{font-size:11px;color:var(--muted);opacity:.6}.dropzone{position:relative;border:1px dashed rgba(114,141,128,.32);border-radius:14px;min-height:149px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;transition:background .2s,border .2s,transform .2s}.dropzone:hover,.dropzone.dragging{border-color:var(--accent);background:rgba(var(--accent-rgb),.04)}.dropzone.dragging{transform:scale(.98)}.dropzone input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.dropzone:focus-within{outline:2px solid var(--accent);outline-offset:4px}.upload-icon{border-radius:12px;padding:9px;background:var(--input);color:var(--accent);margin-bottom:7px}.dropzone strong{font-size:11px;font-weight:600}.dropzone small{font-size:11px;color:var(--muted)}.upload-loaded{display:flex;align-items:center;gap:10px;min-height:70px}.upload-loaded>div{min-width:0;flex:1}.upload-loaded strong{font-size:11px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-loaded small{font-size:10px;color:var(--muted)}.file-icon{color:var(--accent)}.error{font-size:11px;color:#ad4b48;margin:14px 0 0;line-height:1.6;overflow-wrap:anywhere}#details{display:flex;flex-direction:column;gap:18px}label{font-size:10px;color:var(--muted);display:flex;flex-direction:column;gap:6px;min-width:0}input:not([type=file]){border:1px solid var(--line);box-shadow:inset 0 1px 2px rgba(48,77,64,.02);background:var(--input);color:var(--ink);border-radius:9px;min-width:0;width:100%;padding:10px 12px;height:40px;font-size:11px;transition:border-color .2s,box-shadow .2s}input:not([type=file]):focus{outline:none;border-color:rgba(var(--accent-rgb),.5);box-shadow:0 0 0 3px rgba(var(--accent-rgb),.06)}input[dir=auto]{font-family:Inter,Faruma,sans-serif}input.thaana-input{font-family:Faruma,sans-serif;font-size:12px}input::placeholder{color:var(--muted);opacity:.45}input[type=date]{padding:9px 8px;font-size:10px;letter-spacing:-.2px}input::-webkit-calendar-picker-indicator{opacity:.55;cursor:pointer}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:13px}.divider{border-top:1px solid var(--line);margin:3px 0 5px}.sub-field{margin-top:-9px;margin-left:11px;padding-left:12px;border-left:1px solid var(--line);font-size:9px}.sub-field input{height:37px}.account{border-top:1px solid var(--line);margin-top:7px;padding-top:16px}.account summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;font-size:10px;color:var(--muted)}.account summary::-webkit-details-marker{display:none}.account summary .icon{width:13px;height:13px;transition:transform .25s}.account[open] summary .icon{transform:rotate(180deg)}.account label{margin-top:16px}.report-column{min-width:0;display:flex;flex-direction:column;gap:24px}.summary{display:grid;grid-template-columns:.75fr 1.13fr 1.13fr 1.13fr;border-radius:23px;padding:23px 0}.summary>div{padding:0 23px;border-left:1px solid var(--line);min-width:0}.summary>div:first-child{border:0}.summary span{font-size:9px;color:var(--muted);white-space:nowrap}.summary small{font-size:8px;opacity:.8;margin-left:3px}.summary strong{display:block;margin-top:12px;font-size:23px;letter-spacing:-.9px;font-weight:550;line-height:1.3;font-variant-numeric:tabular-nums}.summary .total strong{color:var(--accent)}.preview-panel{border-radius:23px;overflow:hidden;min-width:0}.preview-heading{min-height:61px;padding:14px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.preview-heading h2{font-size:10px;letter-spacing:0;display:flex;align-items:center;gap:9px;font-weight:550}.preview-heading h2 i{width:6px;height:6px;border-radius:50%;background:#98aba1}.preview-actions{display:flex;gap:8px;align-items:center;font-size:10px;color:var(--muted)}.preview-actions .icon-button{width:27px;height:27px;background:transparent}.preview-actions .icon{width:14px;height:14px}.empty-preview{min-height:503px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:22px}.empty-preview p{color:var(--muted);font-size:11px;margin:0}.paper-illustration{width:190px;height:142px;padding:19px 19px 12px;background:linear-gradient(140deg,rgba(255,255,255,.92),rgba(255,255,255,.35));border:1px solid rgba(209,219,214,.3);box-shadow:0 14px 35px rgba(56,84,67,.055);transform:rotate(-6deg);border-radius:6px;opacity:.72;animation:paperfloat 6s ease-in-out infinite}.paper-illustration>div{height:6px;width:88px;background:#e6ede8;border-radius:2px;margin-bottom:12px}.paper-illustration table{border-collapse:collapse;width:100%;height:67px}.paper-illustration td{border:1px solid #e9edea}.paper-illustration footer{margin-top:12px;display:flex;justify-content:space-between}.paper-illustration i{display:block;height:3px;width:47px;background:#e9eeeb}.dark .paper-illustration{opacity:.18}@keyframes paperfloat{50%{transform:translateY(-7px) rotate(-3deg)}}.preview-footer{height:45px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px;color:var(--muted);font-size:9px}.page-footer{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);opacity:.6;margin-top:36px}.date-tabs{display:flex;gap:7px;padding:12px 18px;overflow:auto;border-bottom:1px solid var(--line)}.date-tabs button{white-space:nowrap;background:transparent;color:var(--muted);border-radius:8px;padding:7px 11px;font-size:10px}.date-tabs button.active{color:var(--accent);background:rgba(var(--accent-rgb),.08)}.report-preview{padding:27px 20px 36px;overflow:auto;min-height:503px;background:rgba(255,255,255,.05)}.sheet-preview{background:white;color:#111;padding:25px 20px 28px;box-shadow:0 4px 20px rgba(0,0,0,.04);min-width:890px;font-family:Calibri,Arial,Faruma,sans-serif;font-size:10px;line-height:1.3}.report-meta{display:grid;grid-template-columns:13% 6% 7.5% 30.5% 18.5% 24.5%;border:1px solid black;margin-bottom:15px;min-height:24px;text-align:center;align-items:stretch}.report-meta>span{display:flex;align-items:center;justify-content:center;border-left:1px solid black;font-size:9px;overflow-wrap:anywhere}.report-meta>span:first-child{border:0}.dv{font-family:Faruma,sans-serif;direction:rtl}.sheet-title{border:1px solid #111;border-bottom:0;text-align:center;font-size:12px;font-weight:bold;padding:6px}.report-table{border-collapse:collapse;width:100%;table-layout:fixed;text-align:center}.report-table th,.report-table td{border:1px solid black;padding:3px 2px;font-weight:400;height:20px}.report-table thead th{font-size:10px;vertical-align:middle;height:62px;overflow-wrap:anywhere;line-height:1.9}.report-table .codes td{height:19px;font-size:9px;line-height:1.3}.report-table td:nth-last-child(-n+3),.report-table th:nth-last-child(-n+3){background:#f2f2f2}.report-table td:nth-last-child(3),.report-table th:nth-last-child(3){border-left-width:2px}.report-table .totals td{font-weight:bold;border-top:2px solid black;border-bottom:2px solid black}.report-table .cancelled td{background:#ff0000;color:#000}.report-signatures{position:relative;height:75px;font-size:11px;direction:ltr}.approve-block{position:absolute;top:9px;left:11%;width:20%;text-align:center}.check-block{position:absolute;top:32px;left:34%;width:25%;display:flex;flex-direction:row-reverse;align-items:center;justify-content:center;gap:15px}.prepare-block{position:absolute;top:9px;right:0;width:43%;text-align:right}.signature-name{margin-top:8px}.signature-title{margin-top:8px;font-size:10px}.signature-label{display:flex;justify-content:space-between;gap:12px;direction:rtl}.prepare-block .signature-label>span:first-child{margin-left:auto}.preview-panel.expanded{position:fixed;inset:25px;z-index:50;display:flex;flex-direction:column;background:var(--bg)}.preview-panel.expanded .report-preview{flex:1}.preview-panel.expanded .sheet-preview{max-width:1500px;margin:auto}.tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,330px));gap:25px}.tool-card{border-radius:24px;padding:30px;position:relative;transition:transform .3s,box-shadow .3s}.tool-card:hover{transform:translateY(-5px);box-shadow:0 15px 35px rgba(var(--accent-rgb),.1)}.tool-card-icon{display:inline-block;color:var(--accent);background:rgba(var(--accent-rgb),.07);border-radius:14px;padding:14px}.tool-card-icon .icon{width:24px;height:24px}.tool-tag{position:absolute;right:28px;top:28px;color:var(--muted);font-size:11px}.tool-card h2{font-size:20px;margin:22px 0 33px;letter-spacing:-.7px}.tool-card-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:18px;font-size:11px;color:var(--accent)}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);border-radius:13px;padding:13px 19px;display:flex;gap:10px;z-index:100;font-size:12px;color:var(--accent);animation:enter .3s}.view{animation:enter .4s ease-out}@keyframes enter{from{opacity:0;translate:0 7px}to{opacity:1;translate:0 0}}
@media(min-width:1600px){.workspace{grid-template-columns:350px minmax(0,1fr)}.empty-preview{min-height:550px}.summary strong{font-size:27px}main{padding-left:50px;padding-right:50px}}
@media(max-width:1200px){.sidebar{width:215px;padding-left:16px;padding-right:16px}main{margin-left:235px;padding-left:28px;padding-right:28px}.workspace{grid-template-columns:295px minmax(0,1fr);gap:20px}.panel{padding:23px}.summary>div{padding:0 14px}.summary strong{font-size:20px}.brand strong{font-size:25px}.brand{gap:10px;padding:0 4px}.summary{padding:22px 0}}
@media(max-width:1000px){.sidebar{width:190px;left:15px;top:15px;bottom:15px;padding:28px 12px}.brand{gap:8px}.brand strong{font-size:22px}.brand-mark{width:37px;height:37px;border-radius:11px}.brand-mark svg{width:33px;height:33px}.brand small{font-size:8px}.nav-item{font-size:11px;padding:12px 10px;gap:8px}main{margin-left:205px;padding:25px}.workspace{grid-template-columns:270px minmax(0,1fr);gap:18px}.panel{padding:21px}.summary{grid-template-columns:1fr 1fr;row-gap:20px}.summary>div:nth-child(3){border-left:0}.summary strong{margin-top:5px}.page-heading{margin-bottom:26px}h1{font-size:30px}.button{padding:14px 18px}.hospital{gap:7px}.hospital strong{font-size:9px}.hospital small{font-size:9px}.empty-preview{min-height:480px}}
@media(max-width:800px){.sidebar{position:relative;left:auto;top:auto;bottom:auto;width:auto;margin:14px;padding:16px 20px;border-radius:21px;flex-direction:row;align-items:center;justify-content:space-between}.brand strong{font-size:23px}.brand small{font-size:7px}.brand-mark{width:38px;height:38px}.sidebar nav{display:flex;gap:5px;margin:0}.nav-label,.hospital,.nav-item i{display:none}.nav-item{min-height:40px;padding:10px}.nav-item .icon{width:16px;height:16px}.nav-item.active{border-color:transparent}main{margin:0;padding:12px 24px 25px}.topbar{margin-bottom:28px}.workspace{grid-template-columns:300px minmax(0,1fr)}.top-actions{gap:14px}.preview-heading{padding:13px 18px}.empty-preview{min-height:500px}.preview-footer{padding:0 18px}.button{font-size:11px}.panel{border-radius:20px}}
@media(max-width:650px){.sidebar{padding:15px 17px}.brand small{letter-spacing:2px}.nav-item{font-size:0;gap:0;padding:12px}.nav-item .icon{width:18px;height:18px}.sidebar nav{gap:8px}main{padding:8px 19px 25px}.topbar{margin-bottom:28px;height:35px}.breadcrumb{font-size:10px;gap:12px}.top-actions{font-size:10px;gap:10px}.icon-button{width:32px;height:32px}.page-heading{align-items:flex-end;margin-bottom:25px;gap:12px}h1{font-size:28px;letter-spacing:-1.4px}.eyebrow{font-size:8px;letter-spacing:1.8px;margin-bottom:8px}.button{font-size:10px;padding:13px 15px;gap:7px;border-radius:12px}.primary .icon{width:14px;height:14px}.workspace{grid-template-columns:1fr;gap:20px}.controls{gap:16px}.upload-panel{padding:20px}.upload-panel .panel-heading{margin-bottom:15px}.dropzone{min-height:125px}.report-column{gap:18px}.summary{grid-template-columns:.7fr 1.1fr 1.1fr 1.1fr;padding:21px 0;row-gap:0;order:0}.summary>div{padding:0 12px}.summary>div:nth-child(3){border-left:1px solid var(--line)}.summary strong{font-size:18px;letter-spacing:-.8px;margin-top:10px}.summary span{font-size:8px}.summary small{display:none}.empty-preview{min-height:320px}.details-panel{padding:23px}.preview-panel{border-radius:20px}.preview-heading{min-height:56px}.preview-footer{height:43px}.page-footer{margin-top:27px}.preview-panel.expanded{inset:10px}.report-preview{min-height:320px;padding:18px 12px}.toast{max-width:calc(100% - 30px);width:max-content;font-size:11px}.two-fields input{font-size:12px}.tool-grid{grid-template-columns:1fr}#details{gap:19px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
