:root{--ink:#202538;--muted:#8b91a3;--line:#eceef3;--purple:#6558dc;--purple-dark:#5548cd;--canvas:#f7f8fb;--white:#fff;--font:'DM Sans',Arial,sans-serif;--display:'Manrope','DM Sans',Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--canvas);color:var(--ink);font-family:var(--font);font-size:14px;-webkit-font-smoothing:antialiased}.app-shell{min-height:100vh}.sidebar{width:240px;background:#fff;border-right:1px solid #eff0f4;position:fixed;inset:0 auto 0 0;padding:27px 17px 16px;display:flex;flex-direction:column;z-index:2}.brand{display:flex;align-items:center;gap:10px;color:#222638;text-decoration:none;font:800 21px var(--display);letter-spacing:-1px;padding:0 9px 48px}.brand-mark{height:32px;width:32px;border-radius:11px;color:#fff;background:linear-gradient(145deg,#8174f3,#5648d4);display:grid;place-items:center;font:800 18px var(--display);box-shadow:0 6px 14px #6d60dd38}.brand-dot{color:#796ded}.side-label{font-size:9px;font-weight:700;letter-spacing:1.2px;color:#a6aaba;padding:0 12px 12px}.side-link{display:flex;align-items:center;gap:12px;text-decoration:none;color:#80869a;font-size:13px;font-weight:500;padding:11px 12px;border-radius:8px;margin:2px 0}.side-link.active{color:#5b4fd2;background:#f2f0ff;font-weight:700}.nav-icon{font-size:16px;width:18px;text-align:center}.sidebar-bottom{margin-top:auto}.sidebar-help{border:1px solid #eeecff;background:linear-gradient(135deg,#faf9ff,#f5f3ff);border-radius:11px;padding:14px 12px;margin-bottom:18px}.help-icon{color:#6558dc;font-size:18px;display:block;margin-bottom:8px}.sidebar-help strong{font-size:11px}.sidebar-help p{font-size:10px;line-height:1.5;color:#9295a6;margin:5px 0 0}.user-chip{border-top:1px solid #f0f1f4;padding:16px 3px 0;display:flex;align-items:center;gap:9px}.avatar,.top-avatar{width:32px;height:32px;border-radius:50%;background:#eeeafd;color:#6558dc;display:grid;place-items:center;font-weight:700}.user-chip strong,.user-chip small{display:block}.user-chip strong{font-size:10px}.user-chip small{font-size:9px;color:#9a9eac;margin-top:3px}.online-dot{margin-left:auto;width:7px;height:7px;border-radius:50%;background:#42c998}.main-area{margin-left:240px;min-height:100vh}.topbar{height:66px;border-bottom:1px solid #eceef3;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 42px}.breadcrumb{font-size:11px;color:#a0a4b2}.breadcrumb span{padding:0 10px;color:#d4d6dd}.breadcrumb strong{font-weight:600;color:#555b6d}.topbar-right{display:flex;align-items:center;gap:16px}.today{font-size:10px;color:#898ea0}.top-avatar{width:30px;height:30px;font-size:11px}.mobile-brand{display:none}.content{max-width:1440px;margin:0 auto;padding:38px 42px 22px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:26px}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.15px;color:#969bad;display:flex;align-items:center;gap:7px}.eyebrow-line{height:2px;width:14px;border-radius:3px;background:#8173eb}.page-heading h1{font:700 27px var(--display);letter-spacing:-1px;margin:9px 0 5px}.page-heading h1 span{color:#695dde}.page-heading p,.section-heading p{font-size:11px;color:#989dad;margin:0}.button{border:0;border-radius:7px;padding:10px 15px;font:600 11px var(--font);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:all .16s ease}.button-primary{background:var(--purple);color:#fff;box-shadow:0 4px 10px #6558dc24}.button-primary:hover{background:var(--purple-dark);transform:translateY(-1px)}.plus{font-size:16px;line-height:10px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:28px}.stat-card{position:relative;overflow:hidden;min-height:133px;background:#fff;border:1px solid #eceef3;border-radius:10px;padding:16px 17px;box-shadow:0 2px 5px #28305004}.stat-top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;color:#858b9c;font-size:10px;font-weight:500}.stat-icon{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;font-size:13px}.violet{color:#695ce0;background:#f0eeff}.blue{color:#4c94dd;background:#edf6ff}.green{color:#31ae83;background:#eaf9f3}.amber{color:#dfa44b;background:#fff6e8}.stat-value{position:relative;z-index:1;font:700 26px var(--display);letter-spacing:-1px;margin-top:12px;color:#252a3c}.stat-value small{font:500 10px var(--font);letter-spacing:0;color:#969bab}.stat-value.money{font-size:19px;letter-spacing:-.6px}.stat-caption{position:relative;z-index:1;font-size:9px;color:#a3a7b4;margin-top:5px}.stat-decoration{position:absolute;width:77px;height:77px;border:1px solid;border-radius:50%;right:-33px;bottom:-47px;opacity:.42}.stat-decoration:after{content:'';position:absolute;width:77px;height:77px;border:1px solid;border-radius:50%;left:-12px;top:-13px}.decor-violet{border-color:#d7d2ff}.decor-violet:after{border-color:#d7d2ff}.decor-blue{border-color:#d4eaff}.decor-blue:after{border-color:#d4eaff}.decor-green{border-color:#c9f1e2}.decor-green:after{border-color:#c9f1e2}.decor-amber{border-color:#fbe6c3}.decor-amber:after{border-color:#fbe6c3}.inventory-section{background:#fff;border:1px solid #eceef3;border-radius:10px;box-shadow:0 2px 5px #28305004}.section-heading{padding:20px 20px 15px;display:flex;align-items:center;justify-content:space-between}.section-title-row{display:flex;align-items:center;gap:10px}.section-title-row h2{font:700 14px var(--display);margin:0;letter-spacing:-.25px}.count-pill{font-size:9px;color:#6b5de0;background:#f1efff;padding:4px 7px;border-radius:20px}.section-heading p{margin-top:5px;font-size:10px}.search-box{height:33px;width:260px;border:1px solid #e8eaf0;border-radius:6px;display:flex;align-items:center;padding:0 9px;gap:8px;color:#9ba0ae}.search-box>span{font-size:20px;line-height:1;transform:rotate(-20deg)}.search-box input{border:0;outline:0;min-width:0;width:100%;font:10px var(--font);color:#454b5e}.search-box input::placeholder{color:#b4b7c2}.search-box kbd{border:1px solid #eceef2;border-radius:3px;padding:1px 4px;font:9px var(--font);color:#a6a9b3}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left}thead{background:#fafbfc}th{padding:10px 12px;color:#9b9faf;font-size:8px;font-weight:700;letter-spacing:.65px;white-space:nowrap}th:first-child,td:first-child{padding-left:20px}th:last-child,td:last-child{padding-right:18px}td{padding:12px;color:#596073;font-size:10px;border-top:1px solid #f0f1f4;white-space:nowrap}.product-cell{display:flex;align-items:center;gap:9px}.product-cell strong{font-size:10px;font-weight:600;color:#373d50}.product-avatar{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;font-size:10px;font-weight:700}.tone-0{background:#f0eeff;color:#695ce0}.tone-1{background:#eaf7f3;color:#39a984}.tone-2{background:#fff2e9;color:#df9256}.tone-3{background:#edf5ff;color:#538fd2}.tone-4{background:#fff5e5;color:#c38b39}.code-text{font:10px 'DM Sans',sans-serif;color:#858a9b}.category-pill{font-size:9px;color:#73798c;background:#f5f6f8;border-radius:5px;padding:5px 8px}.stock{display:inline-flex;align-items:center;gap:5px;font-size:9px;color:#5b9d7e;background:#ecf8f1;padding:5px 7px;border-radius:20px}.stock i,.footer-note i{height:5px;width:5px;border-radius:50%;background:#55be8c}.stock-low{color:#c68d36;background:#fff6e8}.stock-low i{background:#e9ae4d}.value-cell{font-weight:600;color:#4e5466}.row-actions{display:flex;justify-content:flex-end;gap:4px}.row-actions form{margin:0}.icon-button{height:27px;width:27px;border:1px solid transparent;background:transparent;border-radius:6px;color:#9da1af;font-size:14px;cursor:pointer}.icon-button:hover{background:#f3f2ff;color:#6558dc}.delete-button:hover{background:#fff0f0;color:#e26666}.table-footer{height:43px;padding:0 20px;border-top:1px solid #f0f1f4;display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#a0a4b2}.table-footer strong{font-weight:600;color:#71778a}.footer-note{display:flex;align-items:center;gap:6px}.page-footer{display:flex;justify-content:space-between;padding:18px 2px;color:#afb2bd;font-size:9px}.empty-state{padding:35px 15px;text-align:center;white-space:normal;color:#969bad}.empty-state>span{margin:auto auto 10px;width:33px;height:33px;border-radius:10px;background:#f3f1ff;color:#695ce0;display:grid;place-items:center;font-size:21px}.empty-state strong{display:block;font:600 12px var(--display);color:#555b6d}.empty-state p{font-size:10px;margin:5px 0 12px}.button-small{padding:8px 11px;font-size:10px}.alert{border-radius:7px;padding:12px 14px;margin-bottom:18px;font-size:11px;display:flex;gap:7px;align-items:center}.alert button{margin-left:auto;border:0;background:transparent;font-size:18px;color:inherit;cursor:pointer}.alert-success{background:#eaf8f1;color:#318563}.alert-error{background:#fff0ef;color:#bc5b53}.alert-error strong{white-space:nowrap}.modal-backdrop{position:fixed;inset:0;background:#22243b80;display:none;align-items:center;justify-content:center;padding:20px;z-index:5;backdrop-filter:blur(3px)}.modal-backdrop.is-open{display:flex}.modal{width:min(100%,490px);border-radius:13px;background:#fff;padding:25px;box-shadow:0 25px 80px #14172835;animation:modal-in .18s ease}@keyframes modal-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.modal-heading{display:flex;justify-content:space-between;align-items:flex-start;padding-bottom:19px;border-bottom:1px solid #f0f1f4}.modal-heading h2{font:700 20px var(--display);letter-spacing:-.5px;margin:8px 0 4px}.modal-heading p{font-size:10px;color:#999eac;margin:0}.modal-close{border:0;background:#f6f7f9;color:#818697;border-radius:7px;font-size:20px;height:29px;width:29px;cursor:pointer}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px;padding:20px 0}.form-field{display:flex;flex-direction:column;gap:7px;color:#565c6e;font-size:10px;font-weight:600}.form-field input{height:37px;border:1px solid #e7e9ef;border-radius:6px;padding:0 10px;font:11px var(--font);color:#343a4d;outline:0;width:100%}.form-field input:focus{border-color:#978de9;box-shadow:0 0 0 3px #6d60dd14}.form-field input::placeholder{color:#b9bdc7}.input-prefix{height:37px;border:1px solid #e7e9ef;border-radius:6px;display:flex;align-items:center;padding:0 9px;color:#9297a6;font-size:10px}.input-prefix:focus-within{border-color:#978de9;box-shadow:0 0 0 3px #6d60dd14}.input-prefix input{border:0;height:34px;padding:0 5px;box-shadow:none!important}.modal-footer{display:flex;justify-content:flex-end;gap:8px;padding-top:15px;border-top:1px solid #f0f1f4}.button-quiet{color:#7e8393;background:#f5f6f8}.button-quiet:hover{background:#edeef2}body.modal-visible{overflow:hidden}@media(min-width:1500px){.content{padding-top:46px}}@media(max-width:1050px){.sidebar{width:205px}.main-area{margin-left:205px}.content{padding:30px 24px 18px}.topbar{padding:0 24px}.stats-grid{gap:10px}.stat-card{padding:14px 13px}.stat-value{font-size:23px}.stat-value.money{font-size:17px}th,td{padding-left:9px;padding-right:9px}}@media(max-width:760px){.sidebar{display:none}.main-area{margin-left:0}.topbar{height:58px;padding:0 17px}.breadcrumb{display:none}.mobile-brand{display:flex;align-items:center;gap:8px;font:700 16px var(--display);letter-spacing:-.5px}.mobile-brand .brand-mark{height:28px;width:28px;font-size:15px;border-radius:9px}.topbar-right{gap:8px}.today{font-size:9px}.content{padding:26px 16px 16px}.page-heading{align-items:flex-start;gap:12px}.page-heading h1{font-size:23px}.page-heading p{font-size:10px;max-width:250px;line-height:1.5}.page-heading>.button{font-size:0;width:37px;height:37px;padding:0;flex:none}.page-heading>.button .plus{font-size:20px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:20px}.stat-card{min-height:119px;padding:13px}.stat-top{font-size:9px}.stat-value{font-size:23px;margin-top:12px}.stat-value.money{font-size:16px}.section-heading{align-items:flex-start;gap:12px;flex-direction:column;padding:16px}.search-form,.search-box{width:100%}.search-box{height:36px}th{font-size:8px}td{font-size:10px}.table-wrap{margin:0}.table-footer{padding:0 14px}.page-footer{font-size:8px;gap:10px;line-height:1.5}.page-footer span:last-child{text-align:right}.modal{padding:20px}.alert{align-items:flex-start;flex-wrap:wrap}.alert-error strong{width:100%}}@media(max-width:390px){.today{max-width:116px;text-align:right;line-height:1.35}.page-heading h1{font-size:21px}.page-heading p{max-width:205px}.stat-card{padding:11px}.stat-value.money{font-size:14px}.form-grid{grid-template-columns:1fr;gap:12px}.modal{max-height:92vh;overflow:auto}.table-footer{font-size:8px}}

/* Expense report controls */
.brand-mark{font-size:12px!important;letter-spacing:-.5px}.date-filter{display:flex;align-items:center;gap:9px;padding:0 20px 14px;color:#858b9c;font-size:10px}.date-filter label{display:flex;align-items:center;gap:6px}.date-filter input{height:31px;border:1px solid #e8eaf0;border-radius:6px;padding:0 8px;color:#555b6d;font:10px var(--font)}.filter-submit{border:0;background:transparent;color:#6558dc;font:600 10px var(--font);cursor:pointer;padding:5px}.clear-filter{font-size:10px;color:#888ea0;text-decoration:none}.note-cell{max-width:190px;overflow:hidden;text-overflow:ellipsis}.form-field small{font-size:9px;color:#9da1af;font-weight:400}.form-grid{grid-template-columns:1fr 1fr}.modal{max-height:92vh;overflow:auto}@media(max-width:760px){.date-filter{padding:0 16px 14px;flex-wrap:wrap}.date-filter label{flex:1;min-width:130px}.date-filter input{min-width:0;width:100%}.filter-submit{font-size:10px}.note-cell{max-width:130px}}
.aggregate-section,.daily-section{margin-bottom:16px}.unit-select{border:0;background:transparent;color:#555b6d;font:10px var(--font);outline:0;max-width:92px}.unit-select option{color:#343a4d}.stat-card:last-child .stat-value.money{font-size:16px;letter-spacing:-.4px}@media(max-width:760px){.stat-card:last-child .stat-value.money{font-size:14px}}
.summary-search{height:36px;width:min(100%,310px);border:1px solid #e8eaf0;border-radius:7px;display:flex;align-items:center;gap:9px;padding:0 10px;color:#9297a6;background:#fff}.summary-search:focus-within{border-color:#978de9;box-shadow:0 0 0 3px #6d60dd14}.summary-search>span{font-size:20px;line-height:1}.summary-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#454b5e;font:11px var(--font)}.summary-search input::placeholder{color:#a9adba}.summary-clear{border:0;background:transparent;color:#858b9c;font-size:18px;cursor:pointer;padding:0 2px}.summary-data-row[hidden],.summary-no-match[hidden],.summary-clear[hidden]{display:none}@media(max-width:760px){.aggregate-section .section-heading{gap:12px}.summary-search{width:100%}.summary-footer{align-items:flex-start;gap:8px;height:auto;min-height:43px;padding-top:11px;padding-bottom:11px;line-height:1.4}}
.history-search{width:min(100%,320px);height:36px}.history-search input{font-size:11px}.history-no-match[hidden],.history-initial-empty[hidden]{display:none}@media(max-width:760px){.history-search{width:100%}}
.project-brand{align-items:flex-start;gap:10px;padding:0 8px 38px;letter-spacing:0}.project-brand .brand-mark,.mobile-brand .brand-mark{flex:0 0 auto;font-size:11px!important;letter-spacing:-.5px}.brand-name{font:700 12px/1.45 var(--display);letter-spacing:-.2px;color:#34394d;max-width:155px}.brand-name strong{display:block;color:#6558dc;font-size:13px}.mobile-brand{gap:9px}.mobile-brand strong{font:700 11px/1.25 var(--display);letter-spacing:0;color:#34394d}.mobile-brand strong span{color:#6558dc}.page-heading p{line-height:1.55}.history-data-row[hidden]{display:none}
@media(min-width:761px){.content{max-width:1500px;padding-left:clamp(28px,3vw,52px);padding-right:clamp(28px,3vw,52px)}.page-heading{margin-bottom:30px}.inventory-section{margin-bottom:18px}.section-heading{gap:20px}.table-wrap{overflow-x:auto}th{font-size:9px}td{font-size:11px}.stat-card{min-height:142px;padding:18px}.stat-top{font-size:11px}.stat-caption{font-size:10px}}
@media(max-width:760px){.topbar{padding:0 13px}.mobile-brand{max-width:calc(100% - 48px)}.mobile-brand strong{font-size:10px}.topbar-right{margin-left:auto}.today,.top-avatar{display:none}.content{padding:20px 12px 20px}.page-heading{align-items:center;margin-bottom:18px;gap:8px}.page-heading h1{font-size:22px;line-height:1.2}.page-heading p{font-size:11px;max-width:230px}.page-heading>.button{font-size:0;width:42px;height:42px;flex:0 0 42px}.page-heading>.button .plus{font-size:21px}.stats-grid{gap:9px;margin-bottom:15px}.stat-card{min-height:112px;padding:12px;border-radius:10px}.stat-top{font-size:10px;gap:5px}.stat-icon{width:24px;height:24px;flex:0 0 24px}.stat-value{font-size:21px;margin-top:10px}.stat-value.money,.stat-card:last-child .stat-value.money{font-size:clamp(13px,4vw,17px);letter-spacing:-.4px;overflow-wrap:anywhere}.stat-caption{font-size:9px;line-height:1.35}.inventory-section{border-radius:10px;margin-bottom:14px}.section-heading{padding:15px 13px;gap:12px}.section-title-row h2{font-size:14px}.section-heading p{font-size:10px;line-height:1.45}.search-box,.summary-search{height:40px}.date-filter{padding:0 13px 13px;gap:8px}.date-filter label{font-size:10px}.date-filter input{height:37px;font-size:12px}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}.table-wrap table{min-width:760px}th,td{padding:11px 10px}th{font-size:9px}td{font-size:11px}.table-footer{min-height:44px;height:auto;padding:10px 13px;gap:8px;font-size:9px;line-height:1.4}.footer-note{white-space:nowrap}.page-footer{padding:15px 2px;font-size:9px;line-height:1.5}.modal-backdrop{padding:10px;align-items:flex-end}.modal{width:100%;max-height:92dvh;border-radius:16px 16px 10px 10px;padding:20px 16px calc(16px + env(safe-area-inset-bottom))}.modal-heading h2{font-size:19px}.form-grid{grid-template-columns:1fr;gap:13px;padding:16px 0}.form-field{font-size:11px}.form-field input,.input-prefix{height:43px;font-size:13px}.input-prefix input{height:39px}.modal-footer{position:sticky;bottom:-16px;background:#fff;padding:13px 0 4px}.button{min-height:40px;font-size:12px}.amount-hint{font-size:10px}.alert{font-size:12px;line-height:1.45}}
@media(min-width:500px) and (max-width:760px){.form-grid{grid-template-columns:1fr 1fr}.modal{max-width:560px;margin:auto;align-self:center;border-radius:14px}.modal-backdrop{align-items:center}.page-heading p{max-width:360px}}
@media(max-width:360px){.mobile-brand strong{font-size:9px}.content{padding-left:9px;padding-right:9px}.stats-grid{gap:7px}.stat-card{padding:10px}.page-heading h1{font-size:20px}}
.logout-form{margin-left:auto}.logout-button{border:1px solid #eceef3;background:#fff;border-radius:6px;padding:6px 9px;color:#73798c;font:600 10px var(--font);cursor:pointer}.logout-button:hover{color:#bc5b53;background:#fff5f4;border-color:#f3d9d6}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at top left,#eeecff 0,transparent 42%),var(--canvas)}.login-card{width:min(100%,430px);background:#fff;border:1px solid #eceef3;border-radius:16px;padding:32px;box-shadow:0 18px 55px #25294a12}.login-brand{padding:0;margin-bottom:38px}.login-brand .brand-name{max-width:none}.login-heading h1{font:700 25px var(--display);letter-spacing:-.7px;margin:10px 0 5px;color:#252a3c}.login-heading p{font-size:12px;color:#898ea0;margin:0}.login-form{display:grid;gap:17px;margin-top:24px}.login-form .form-field{font-size:11px}.login-form .form-field input{height:45px;font-size:13px}.login-submit{width:100%;height:45px;margin-top:4px;font-size:12px}.login-error{margin:18px 0 0;line-height:1.5}.login-project{border-top:1px solid #f0f1f4;padding-top:15px;margin:22px 0 0;font-size:10px;color:#9a9eac;text-align:center}@media(max-width:480px){.login-page{padding:15px}.login-card{padding:24px 19px;border-radius:13px}.login-brand{margin-bottom:31px}}
