:root{font-family:DM Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#202b3d;background:#f5f7fb;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--ink: #202b3d;--muted: #788397;--line: #e8ecf3;--primary: #5667d9;--primary-dark: #4353c3;--panel: #fff}*{box-sizing:border-box}html,#root{min-height:100%}body{min-width:360px;min-height:100vh;margin:0}@supports (min-height: 100dvh){body{min-height:100dvh}}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;min-height:100dvh}.sidebar{position:fixed;inset:0 auto 0 0;z-index:3;display:flex;width:250px;flex-direction:column;padding:27px 16px 16px;border-right:1px solid #e8ebf2;background:#fff}.sidebar-brand{display:flex;align-items:center;gap:11px;padding:0 10px 38px}.brand-mark{display:grid;width:38px;height:38px;place-items:center;border-radius:12px;color:#fff;background:#5667d9;font-family:Manrope,sans-serif;font-size:.85rem;font-weight:800}.sidebar-brand strong,.sidebar-footer strong{display:block;font-size:.9rem}.sidebar-brand small,.sidebar-footer small{display:block;margin-top:3px;color:#8993a5;font-size:.74rem}.sidebar-caption{padding:0 11px 11px;color:#a4acba;font-size:.65rem;font-weight:700;letter-spacing:.12em}.sidebar-caption--split{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.sidebar-nav{display:grid;gap:6px;align-content:start}.nav-item{display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;border:0;border-radius:9px;color:#667287;background:transparent;text-align:left;font-size:.87rem}.nav-item small{display:block;margin-top:2px;color:#98a2b3;font-size:.68rem;font-weight:500;line-height:1.3}.nav-item:hover{color:var(--ink);background:#f6f7fb}.nav-item--active,.nav-item--active:hover{color:#4a59c7;background:#f0f2ff;font-weight:650}.nav-item--active small{color:#7d89c9;font-weight:500}.nav-item__icon{display:grid;width:20px;place-items:center;font-size:1.1rem}.nav-item__badge{margin-left:auto;padding:2px 6px;border-radius:5px;color:#5869d4;background:#e6e9ff;font-size:.6rem;font-weight:800}.sidebar-footer{display:flex;align-items:center;gap:10px;margin-top:auto;padding:14px 7px 4px;border-top:1px solid var(--line)}.admin-avatar{display:grid;width:34px;height:34px;place-items:center;border-radius:50%;color:#5461bb;background:#e9ebff;font-weight:700}.sidebar-footer div{min-width:0}.sidebar-footer strong{font-size:.78rem}.sidebar-footer small{font-size:.68rem}.logout-button{margin-left:auto;border:0;color:#8791a3;background:transparent;font-size:1.2rem}.main-area{display:flex;min-width:0;min-height:100vh;min-height:100dvh;flex-direction:column;margin-left:250px}.topbar{display:flex;height:68px;align-items:center;justify-content:space-between;padding:0 38px;border-bottom:1px solid var(--line);background:#fff;color:#647086;font-size:.82rem}.connection-indicator{display:flex;align-items:center;gap:8px;color:#778398;font-size:.76rem}.connection-indicator span{width:7px;height:7px;border-radius:50%;background:#35b27b;box-shadow:0 0 0 3px #e2f6ec}.page-content{width:100%;max-width:1440px;margin:0 auto;padding:38px}.page-content--pipeline{max-width:1120px}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:27px}.eyebrow{margin:0 0 8px;color:#7785dd;font-size:.65rem;font-weight:750;letter-spacing:.14em}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Manrope,DM Sans,sans-serif;color:var(--ink)}h1{margin-bottom:7px;font-size:clamp(1.7rem,3vw,2.15rem);letter-spacing:-.045em}h2{margin:0;font-size:1.08rem;letter-spacing:-.025em}h3{margin-bottom:5px;font-size:.95rem}.muted{margin:0;color:var(--muted);font-size:.83rem;line-height:1.55}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:22px}.metric-card{min-height:138px;padding:19px 21px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}.metric-card span,.metric-card small{display:block;color:#7b879a;font-size:.77rem}.metric-card strong{display:block;margin:13px 0 5px;font-family:Manrope,sans-serif;font-size:1.8rem;letter-spacing:-.05em}.metric-card small{font-size:.7rem}.metric-card--green strong{color:#178657}.metric-card--amber strong{color:#c58325}.panel{padding:22px;border:1px solid var(--line);border-radius:13px;background:var(--panel);box-shadow:0 5px 18px #222f4b05}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:21px}.panel-heading .muted{margin-top:5px}.history-panel{padding-bottom:8px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{padding:11px 12px;border-bottom:1px solid var(--line);color:#929bad;font-size:.67rem;font-weight:650;text-transform:uppercase;letter-spacing:.06em}td{padding:14px 12px;border-bottom:1px solid #f0f2f6;color:#58657a;font-size:.77rem}td strong{display:block;color:#344055;font-weight:650}.table-subtext{display:block;margin-top:3px;color:#a1aaba;font-size:.67rem}.table-link{margin-left:9px;color:#5263d0;text-decoration:none}.table-link:hover{text-decoration:underline}.processed-table .num{text-align:right;font-variant-numeric:tabular-nums}.file-name{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-text{text-transform:capitalize}.status-pill{display:inline-flex;align-items:center;padding:5px 9px;border-radius:100px;color:#667187;background:#f0f2f5;font-size:.67rem;font-weight:650;text-transform:capitalize}.status-pill--completed,.status-pill--bill_imported{color:#178657;background:#e6f7ee}.status-pill--awaiting_confirmation,.status-pill--confirmed,.status-pill--received,.status-pill--extracting{color:#8d6816;background:#fff5d9}.status-pill--extraction_failed,.status-pill--bill_import_failed,.status-pill--email_failed,.status-pill--missing_information{color:#b44848;background:#fff0ef}.status-pill--cancelled{color:#788397;background:#f0f2f5}.empty-state{padding:34px 12px;color:#919bad;text-align:center;font-size:.84rem}.button{display:inline-flex;min-height:39px;align-items:center;justify-content:center;gap:7px;padding:0 15px;border:1px solid transparent;border-radius:8px;font-size:.78rem;font-weight:650;transition:background .15s,border-color .15s}.button:disabled{cursor:not-allowed;opacity:.58}.button--primary{color:#fff;background:var(--primary)}.button--primary:hover:not(:disabled){background:var(--primary-dark)}.button--secondary{border-color:#e2e6ef;color:#57647a;background:#fff}.button--secondary:hover:not(:disabled){background:#f8f9fc}.button--subtle{color:#657187;background:#f3f5f8}.button--subtle:hover:not(:disabled){background:#e9edf3}.button--small{min-height:31px;padding:0 10px;font-size:.71rem}.button--wide{width:100%;min-height:44px;margin-top:4px}.button--danger-quiet{color:#af5353;background:transparent}.button--danger-quiet:hover:not(:disabled){background:#fff2f1}label{display:grid;gap:7px;color:#59667b;font-size:.75rem;font-weight:600}input,select,textarea{width:100%;min-height:40px;padding:9px 11px;border:1px solid #dfe4ed;border-radius:7px;outline:none;color:#344055;background:#fff;font-size:.78rem;font-weight:400}textarea{resize:vertical}input:focus,select:focus,textarea:focus{border-color:#8793e6;box-shadow:0 0 0 3px #5667d91a}input[type=file]{padding:6px;font-size:.7rem}.alert{padding:11px 13px;border-radius:8px;font-size:.78rem;line-height:1.5}.alert--error{color:#9e3e3e;background:#fff0ef}.alert--warning{margin:18px 0 0;color:#85621b;background:#fff7df}.sidebar-steps{display:grid;gap:14px;margin:2px 0 10px 18px;padding:4px 0 4px 14px;border-left:2px solid #e6eaf2;list-style:none}.sidebar-steps li{display:flex;align-items:center;gap:10px;color:#68758a;font-size:.76rem;line-height:1.4}.sidebar-steps li span{display:grid;width:25px;height:25px;flex:0 0 auto;place-items:center;border:1px solid #e1e6f0;border-radius:50%;color:#667287;font-size:.68rem;font-weight:700}.pipeline-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 22px;padding:0;list-style:none}.pipeline-step{position:relative;display:flex;align-items:center;gap:11px;min-width:0;padding:0 18px}.pipeline-step:first-child{padding-left:0}.pipeline-step:not(:last-child):after{position:absolute;top:16px;right:-2px;left:58px;height:1px;background:#e2e7f0;content:""}.pipeline-step__number{z-index:1;display:grid;width:34px;height:34px;flex:0 0 auto;place-items:center;border:1px solid #dfe4ed;border-radius:50%;color:#8290a4;background:#f5f7fb;font-size:.75rem;font-weight:700}.pipeline-step strong,.pipeline-step small{display:block}.pipeline-step strong{color:#7c8799;font-size:.78rem}.pipeline-step small{margin-top:3px;color:#a0a9b7;font-size:.67rem}.pipeline-step--current .pipeline-step__number{border-color:var(--primary);color:#fff;background:var(--primary);box-shadow:0 0 0 4px #eceeff}.pipeline-step--current strong{color:#3e4eb7}.pipeline-step--complete .pipeline-step__number{border-color:#31a875;color:#fff;background:#31a875}.pipeline-step--complete strong{color:#287c5b}.upload-panel,.invoice-result-panel{margin-bottom:22px}.upload-panel{max-width:780px;margin-right:auto;margin-left:auto;padding:27px}.upload-panel .panel-heading{margin-bottom:19px}.upload-form{display:grid;gap:18px}.upload-organization{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 14px;border:1px solid #e6eaf1;border-radius:8px;background:#fafbfe}.upload-organization span{color:#8591a4;font-size:.74rem}.upload-organization select{width:min(100%,320px);background:#fff}.upload-file{position:relative;display:flex;min-height:84px;align-items:center;gap:13px;padding:15px;border:1px dashed #cfd6e5;border-radius:9px;background:#fcfdff;cursor:pointer}.upload-file:hover{border-color:#8793e6;background:#f8f9ff}.upload-file__icon{display:grid;width:42px;height:42px;flex:0 0 auto;place-items:center;border-radius:10px;color:#5869d4;background:#eef0ff;font-size:1.45rem}.upload-file__text{min-width:0;flex:1}.upload-file__text strong,.upload-file__text small{display:block;overflow:hidden;text-overflow:ellipsis}.upload-file__text strong{color:#435067;font-size:.79rem}.upload-file__text small{margin-top:5px;color:#929daf;font-size:.69rem}.upload-file input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}.upload-file:focus-within{outline:3px solid rgb(86 103 217 / 18%)}.upload-submit{justify-self:center;min-width:220px;min-height:44px}.upload-form>.helper-text{margin:-7px 0 0;text-align:center}.processing-notice{display:flex;align-items:center;gap:12px;margin:16px 0;padding:15px 18px;border:1px solid var(--line);border-radius:10px;background:#fff}.processing-notice strong,.processing-notice small{display:block}.processing-notice strong{color:#46536a;font-size:.78rem}.processing-notice small{margin-top:3px;color:#8995a8;font-size:.7rem}.result-heading-actions{display:flex;align-items:center;gap:10px}.zoho-result-link{display:inline-flex;margin:0 0 20px;color:#5364d1;font-size:.8rem;font-weight:650;text-decoration:none}.zoho-result-link:hover{text-decoration:underline}.invoice-review{padding-top:2px}.invoice-review__note{margin:12px 0 0}.review-issues{margin-bottom:16px}.review-issues ul{margin:8px 0 0;padding-left:18px}.review-issues li+li{margin-top:4px}.field-error{color:#9e3e3e}.field-error input{border-color:#e3a3a3;background:#fff8f8}.line-items--error{border-top-color:#e3a3a3}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.invoice-review .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.line-items{margin-top:25px;padding-top:20px;border-top:1px solid var(--line)}.line-items__heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.line-items__heading h3{margin:0}.line-items__heading span{color:#8b95a6;font-size:.72rem}.line-row{display:grid;grid-template-columns:minmax(150px,1.3fr) repeat(4,minmax(70px,.65fr));gap:9px;margin-bottom:11px}.review-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:23px}.helper-text{color:#8994a6;font-size:.7rem;line-height:1.55}.organization-layout{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(380px,1.1fr);align-items:start;gap:18px}.organization-layout .panel-heading{margin-bottom:18px}.organization-layout .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.field-span-2{grid-column:span 2}.organization-layout .helper-text{margin:-4px 0 0}.org-list{display:grid;gap:12px}.org-card{padding:15px;border:1px solid #edf0f5;border-radius:10px}.org-card__top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.org-card__top .muted{max-width:320px;overflow-wrap:anywhere;font-size:.72rem}.org-meta{display:grid;gap:5px;margin:13px 0;color:#778397;font-size:.7rem}.org-actions{display:flex;gap:7px}.access-editor{display:grid;gap:12px;margin-top:15px;padding-top:15px;border-top:1px solid var(--line)}.access-editor .org-actions{margin-top:2px}.login-page{display:grid;min-height:100vh;place-items:center;padding:24px;background:radial-gradient(circle at 18% 20%,#edf0ff,transparent 35%),#f5f7fb}.login-card{width:min(100%,410px);padding:36px;border:1px solid #e6eaf2;border-radius:15px;background:#fff;box-shadow:0 24px 70px #26335417}.login-card .brand-mark{margin-bottom:26px}.login-card h1{font-size:1.8rem}.login-card>.muted{margin-bottom:25px}.login-card label{margin-bottom:16px}.toast{position:fixed;right:24px;bottom:24px;z-index:10;max-width:min(440px,calc(100vw - 32px));padding:13px 17px;border-radius:9px;color:#fff;background:#263248;box-shadow:0 10px 35px #141e3233;font-size:.8rem}.toast--error{background:#a34242}.toast--success{background:#207d59}.loading-screen{display:flex;min-height:100vh;align-items:center;justify-content:center;gap:12px;color:#778397;font-size:.85rem}.loading-spinner{width:20px;height:20px;border:2px solid #e0e5f1;border-top-color:#5667d9;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1100px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.organization-layout{grid-template-columns:1fr}.invoice-review .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){body{min-width:320px}.sidebar{position:sticky;inset:0 0 auto;width:100%;height:auto;padding:10px 12px;border-right:0;border-bottom:1px solid var(--line)}.sidebar-brand{padding:0 3px 10px}.sidebar-brand .brand-mark{width:32px;height:32px}.sidebar-caption{display:none}.sidebar-caption--split{margin-top:8px;padding-top:8px;border-top:0}.sidebar-steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:0 0 8px;padding:0;border-left:0}.sidebar-steps li{align-items:flex-start;gap:5px;font-size:.59rem}.sidebar-steps li span{width:19px;height:19px;font-size:.58rem}.sidebar-footer{display:none}.main-area{min-height:calc(100dvh - 114px);margin-left:0}.topbar{height:48px;padding:0 18px;font-size:.74rem}.page-content{padding:24px 16px}.page-content--pipeline{padding:20px 12px}.page-content--pipeline .page-heading{margin-bottom:20px}.metric-grid{gap:9px}.metric-card{min-height:116px;padding:15px}.metric-card strong{margin:10px 0 3px;font-size:1.5rem}.panel{padding:17px}.upload-panel{padding:20px 17px}.invoice-review .form-grid,.organization-layout .form-grid{grid-template-columns:1fr}.field-span-2{grid-column:auto}.line-row{grid-template-columns:1fr 1fr}.line-row label:first-child{grid-column:span 2}.review-actions{display:grid;grid-template-columns:1fr}.pipeline-steps{margin-bottom:18px}.pipeline-step{gap:7px;padding:0 7px}.pipeline-step:first-child{padding-left:0}.pipeline-step:not(:last-child):after{right:-3px;left:34px}.pipeline-step__number{width:28px;height:28px;font-size:.67rem}.pipeline-step strong{font-size:.67rem}.pipeline-step small{display:none}.upload-file{gap:9px;padding:11px}.upload-file .button{padding:0 9px;font-size:.69rem}.result-heading-actions{align-items:flex-end;flex-direction:column}.result-heading-actions .status-pill{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
