@font-face{font-family:Lato;src:url("fonts/Lato-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Lato;src:url("fonts/Lato-Bold.ttf") format("truetype");font-style:normal;font-weight:700;font-display:swap}
:root{--purple:#463489;--deep:#463489;--gold:#F9B522;--ink:#000000;--muted:#595959;--line:#E5E5E5;--bg:#f6f7fb;--green:#147b62;--radius:16px;--shadow:0 16px 60px #31234812;font-family:Lato,Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:1rem;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}[hidden]{display:none!important}svg.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.app-shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100dvh}.sidebar{background:white;border-right:1px solid var(--line);padding:30px 18px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100dvh;z-index:20}.brand{display:block;padding:0 12px 30px}.brand img{display:block;width:177px;height:67px;object-fit:contain;object-position:left}.brand>span{font-size:.75rem;letter-spacing:.23em;font-weight:700;color:var(--purple);display:block;margin:12px 0 0 2px}.nav-label,.small-label{font-size:.7rem;font-weight:700;letter-spacing:.13em;color:#8a8596}.nav-label{padding:12px 14px}.nav-item{display:flex;align-items:center;gap:12px;padding:13px 15px;margin:5px 0;border-radius:11px;font-size:.9rem;color:#6b6479;font-weight:500}.nav-item:hover{background:#f8f6fb}.nav-item.active{background:#D7D0ED;color:var(--purple);font-weight:700}.nav-item.active:after{content:'';height:6px;width:6px;background:var(--gold);border-radius:50%;margin-left:auto}.side-note{margin-top:auto;padding:38px 15px 10px}.side-note p{color:var(--deep);font-size:1.1rem;line-height:1.6;margin:12px 0}.gold-rule{display:block;height:3px;width:30px;border-radius:3px;background:var(--gold)}.workspace{min-width:0}.topbar{height:82px;background:#ffffffd9;border-bottom:1px solid var(--line);padding:0 36px;display:flex;align-items:center;justify-content:space-between;gap:18px}.breadcrumb{font-size:.875rem;color:var(--muted)}.breadcrumb span{margin:0 14px;color:#bdb7c7}.breadcrumb strong{font-weight:700;color:var(--ink)}.top-actions{display:flex;align-items:center;gap:12px}.avatar{height:35px;width:35px;border-radius:50%;display:inline-grid;place-items:center;background:#ece5f5;color:var(--purple);font-size:.8rem;font-weight:700}.user-name{font-size:.85rem;font-weight:700}.demo-strip{background:#fff7df;color:#775a1a;padding:9px 36px;display:flex;align-items:center;justify-content:space-between;font-size:.75rem;gap:12px}.demo-strip b{font-size:.67rem;letter-spacing:.09em;margin-right:8px}.demo-strip select{margin-left:8px;border:1px solid #e6d7a9;background:#fffcf2;padding:4px 25px 4px 8px;max-width:180px;font-size:.75rem;border-radius:6px}main{max-width:1500px;margin:auto;padding:34px 36px 42px;min-height:calc(100dvh - 132px)}.page-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.eyebrow{font-size:.7rem;letter-spacing:.14em;font-weight:700;color:var(--purple);margin:0 0 7px}h1{font-size:1.9rem;letter-spacing:-.035em;line-height:1.25;margin:0 0 8px;font-weight:700}h2{font-size:1.05rem;margin:0;font-weight:700;letter-spacing:-.01em}h3{font-size:1rem;margin:0 0 10px}p{margin:0 0 12px}.subtle{font-size:.875rem;color:var(--muted);margin:0}.button{border:1px solid transparent;border-radius:9px;padding:11px 17px;font-size:.875rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;background:var(--purple);color:white;line-height:1.3}.button:hover{filter:brightness(.96)}.button.quiet{background:white;border-color:var(--line);color:var(--purple)}.button.gold{background:var(--gold);color:#000}.button.small{padding:8px 12px;font-size:.8rem}.button.danger{background:#fff0f1;border-color:#f1d6dc;color:#b23b57}.icon-button{border:0;background:transparent;padding:7px;color:var(--muted);display:inline-flex;align-items:center;justify-content:center}.button-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.hero{background:var(--purple);border-radius:var(--radius);padding:29px 30px;margin-bottom:24px;color:white;display:flex;align-items:center;justify-content:space-between;gap:25px;position:relative;overflow:hidden}.hero:after{content:'';position:absolute;width:280px;height:280px;border:1px solid #ffffff12;transform:rotate(35deg);right:-30px;top:-180px;border-radius:55px;pointer-events:none}.hero .eyebrow{color:#FBD37A}.hero h1{font-size:1.85rem;margin-bottom:9px}.hero p{font-size:.875rem;color:#fff;max-width:560px;margin:0}.hero .button{position:relative;z-index:1}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}.metric{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:20px 21px}.metric-head{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:.8rem}.metric-icon{color:var(--purple);background:#f2edf8;border-radius:9px;padding:7px;height:35px;width:35px;display:grid;place-items:center}.metric-value{font-size:1.5rem;font-weight:700;letter-spacing:-.035em;margin:9px 0 3px}.metric-value small{font-size:.7rem;font-weight:500;letter-spacing:0;margin-right:5px;color:var(--muted)}.metric-note{font-size:.75rem;color:var(--muted)}.grid-two{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,1fr);gap:22px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;margin-bottom:22px}.panel-header{display:flex;justify-content:space-between;align-items:center;padding:20px 22px;gap:12px;border-bottom:1px solid var(--line)}.text-link{color:var(--purple);font-size:.8rem;font-weight:700;background:transparent;border:0;padding:0}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:.875rem;text-align:left}th{font-size:.7rem;text-transform:uppercase;letter-spacing:.055em;color:#8a8397;font-weight:700;background:#fcfbfd;padding:13px 21px;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:16px 21px;border-bottom:1px solid #f0edf4;vertical-align:middle}tbody tr:last-child td{border-bottom:0}tbody tr.clickable{cursor:pointer}tbody tr.clickable:hover{background:#fbf9fe}.cell-title{font-weight:700;display:block;max-width:320px}.cell-meta{display:block;color:var(--muted);font-size:.75rem;margin-top:4px}.money{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.money small{font-size:.7rem;font-weight:400;color:var(--muted);margin-right:5px}.status{display:inline-flex;align-items:center;border-radius:6px;padding:4px 8px;font-size:.7rem;font-weight:700;white-space:nowrap;background:#f1eff5;color:#756e82}.status.approved,.status.paid{background:#e9f5ef;color:#237251}.status.submitted,.status.reviewed{background:#fff4d9;color:#8d6b18}.status.rejected,.status.changes-requested{background:#fceff1;color:#b34059}.status.posted{background:#edf1fb;color:#4a64a2}.empty{padding:46px 24px;text-align:center;color:var(--muted)}.empty .metric-icon{height:48px;width:48px;margin:0 auto 15px}.empty h3{color:var(--ink);margin-bottom:7px}.empty p{font-size:.875rem;max-width:360px;margin:0 auto 18px}.mini-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 22px;border-bottom:1px solid var(--line)}.mini-row:last-child{border-bottom:0}.mini-row h3{font-size:.85rem;margin:0 0 4px}.mini-row p{font-size:.75rem;margin:0;color:var(--muted)}.activity-card{padding:20px 22px;border-bottom:1px solid var(--line)}.activity-card:last-child{border:0}.activity-card .row{display:flex;align-items:center;justify-content:space-between;gap:12px}.activity-card h3{font-size:.875rem;margin:0}.activity-card p{font-size:.75rem;color:var(--muted);margin:5px 0 12px}.progress{height:6px;border-radius:6px;overflow:hidden;background:#f0edf5;margin:12px 0 8px}.progress>span{height:100%;display:block;background:var(--purple);border-radius:6px}.progress-label{display:flex;justify-content:space-between;font-size:.7rem;color:var(--muted)}.filter-bar{display:flex;align-items:center;gap:12px;padding:16px 20px;flex-wrap:wrap}.search{position:relative;flex:1;min-width:180px}.search .icon{position:absolute;left:12px;top:11px;color:#a49bac;width:18px}.search input{padding-left:38px}.filter-bar input,.filter-bar select{font-size:.8rem;padding-top:10px;padding-bottom:10px}.filter-bar select{width:auto;min-width:150px}.count{font-size:.75rem;color:var(--muted)}.overlay{position:fixed;inset:0;z-index:100;background:#20132a70;display:flex;align-items:center;justify-content:center;padding:28px;backdrop-filter:blur(3px)}.dialog{background:white;width:min(830px,100%);max-height:calc(100dvh - 56px);overflow:auto;border-radius:18px;box-shadow:0 25px 90px #150c2460}.dialog-head{padding:24px 28px 20px;border-bottom:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-between;gap:20px;position:sticky;top:0;background:white;z-index:3}.dialog-head h2{font-size:1.3rem;margin:0 0 5px}.dialog-body{padding:24px 28px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px}.full{grid-column:1/-1}.field label{font-size:.8rem;font-weight:700;color:#524a60;display:block;margin-bottom:7px}.required{color:var(--purple);margin-left:3px}.optional{font-weight:400;color:#a29aaa;font-size:.7rem;margin-left:5px}input,select,textarea{border:1px solid #ded8e7;border-radius:8px;padding:11px 12px;width:100%;color:var(--ink);background:white;font-size:.875rem;line-height:1.3;min-height:42px}input:focus,select:focus,textarea:focus{border-color:#8466af;outline:2px solid #46348924}input[readonly]{background:#f7f5f9;color:var(--muted)}select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%23746a83' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;padding-right:34px}textarea{min-height:85px;resize:vertical}.help{font-size:.7rem;color:var(--muted);margin:6px 0 0}.amount-pair{display:grid;grid-template-columns:1fr 100px;gap:8px}.section-label{font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;color:var(--purple);font-weight:700;margin:7px 0 0;padding-bottom:8px;border-bottom:1px solid var(--line)}.dialog-footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:18px 28px;border-top:1px solid var(--line);position:sticky;bottom:0;background:white;z-index:3}.receipt-zone{padding:20px;border:1px dashed #c9bddb;border-radius:12px;background:#faf8fd;display:flex;align-items:center;justify-content:space-between;gap:15px}.receipt-zone h3{font-size:.85rem;margin:0 0 3px}.receipt-zone p{font-size:.7rem;color:var(--muted);margin:0}.receipt-zone .button{font-size:.75rem}.file-list{font-size:.75rem;color:var(--purple);margin-top:9px}.info{font-size:.8rem;line-height:1.6;background:#f5f1fa;border:1px solid #e7def2;color:#665276;border-radius:9px;padding:12px 15px;margin:0}.info.gold{background:#fffaed;border-color:#f2e4bc;color:#87703d}.charge-head,.charge-row{display:grid;grid-template-columns:minmax(140px,1fr) 72px 110px 100px 25px;gap:10px;align-items:center}.charge-head{font-size:.7rem;color:var(--muted);margin:0 0 9px}.charge-row{margin-bottom:9px}.charge-row input{font-size:.8rem;padding:10px}.charge-row .line-total{font-size:.8rem;text-align:right}.charge-row .icon-button{padding:1px}.line-product{margin-bottom:8px}.totals{padding:15px 18px;border:1px solid var(--line);border-radius:10px;background:#fcfbfe}.totals .row{display:flex;justify-content:space-between;font-size:.8rem;padding:4px 0;color:var(--muted)}.totals .total{font-size:1rem;font-weight:700;color:var(--deep);border-top:1px solid var(--line);padding-top:10px;margin-top:7px}.detail-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:23px}.detail-title{font-size:1.35rem;margin:7px 0}.detail-amount{font-size:1.65rem;font-weight:700;white-space:nowrap;letter-spacing:-.03em}.detail-amount small{font-size:.8rem;color:var(--muted);font-weight:500;letter-spacing:0}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.detail-item>span{font-size:.7rem;color:var(--muted);display:block;margin-bottom:5px}.detail-item strong{font-size:.875rem;font-weight:700}.detail-section{margin-top:25px}.detail-section h3{font-size:.8rem;color:var(--purple);padding-bottom:10px;border-bottom:1px solid var(--line)}.attachment{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;font-size:.8rem;margin:8px 0;width:100%;text-align:left;background:white;color:var(--purple)}.history-item{padding:8px 0;font-size:.8rem}.history-item small{color:var(--muted);display:block;margin-top:4px}.history-item p{margin:5px 0;color:#5c526c}.toast{pointer-events:none;position:fixed;bottom:28px;left:50%;transform:translateX(-50%);z-index:200;background:#34234b;color:white;padding:13px 20px;border-radius:12px;box-shadow:0 10px 35px #0003;font-size:.875rem;max-width:min(90vw,620px)}.toast.error{background:#96334c}.spinner{display:inline-block;width:24px;height:24px;border:2px solid #e7dfef;border-top-color:var(--purple);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.desktop-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding:16px 36px;font-size:.7rem;color:#96909f}.mobile-toggle,.bottom-nav{display:none}.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.report-card{padding:22px;display:flex;align-items:center;gap:15px;cursor:pointer;border:1px solid var(--line);border-radius:12px;background:white;text-align:left}.report-card:hover{border-color:#cdbddb}.report-card h3{font-size:.9rem;margin:0 0 5px}.report-card p{font-size:.75rem;color:var(--muted);margin:0}.login{max-width:440px;margin:60px auto;text-align:center;background:white;border:1px solid var(--line);border-radius:18px;padding:38px}.login img{width:220px;max-height:90px;margin-bottom:28px}.login h1{font-size:1.6rem}.login p{color:var(--muted);font-size:.875rem;margin:10px 0 25px}.request-error{font-size:.8rem;color:#b34059;background:#fff0f3;padding:12px;border-radius:8px;margin-bottom:18px}.tag{display:inline-block;font-size:.65rem;font-weight:700;color:var(--purple);background:#D7D0ED;padding:4px 7px;border-radius:5px}
@media(min-width:1500px){main{padding:40px 48px}.topbar{padding:0 48px}}
@media(max-width:1150px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.brand img{width:155px}.topbar{padding:0 25px}main{padding:28px 25px}.grid-two{grid-template-columns:1fr}.metric{padding:17px}.metric-value{font-size:1.3rem}.hero{padding:25px}.user-name{display:none}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:fixed;left:0;top:0;bottom:0;width:250px;transform:translateX(-100%);transition:transform .2s;box-shadow:20px 0 60px #20132a20}.sidebar.open{transform:translateX(0)}.mobile-toggle{display:inline-flex}.topbar{height:66px;padding:0 16px;gap:10px}.breadcrumb{margin-right:auto;font-size:.8rem}.breadcrumb{font-size:0}.breadcrumb>span{display:none}.breadcrumb strong{color:var(--ink);font-size:.8rem}.top-actions{gap:8px}.top-actions .button{font-size:.75rem;padding:8px}.avatar{width:31px;height:31px}.demo-strip{padding:8px 16px;font-size:.65rem}.demo-strip b{display:block;font-size:.6rem}.demo-strip select{max-width:130px;font-size:.7rem}.demo-strip label{white-space:nowrap;font-size:0}.demo-strip label select{font-size:.7rem}.demo-strip>span{max-width:200px}main{padding:23px 16px 95px;min-height:calc(100dvh - 100px)}.page-head{align-items:flex-start;gap:12px;margin-bottom:20px}.page-head h1{font-size:1.5rem}.page-head .subtle{font-size:.8rem;max-width:210px}.page-head .button{padding:10px 12px;font-size:.75rem}.page-head .button svg{width:16px}.hero{padding:23px 21px;display:block;margin-bottom:18px}.hero h1{font-size:1.55rem}.hero .button-row{margin-top:21px}.hero p{font-size:.8rem}.metrics{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}.metric{padding:16px 15px;border-radius:12px}.metric-head{font-size:.7rem}.metric-icon{width:28px;height:28px;padding:6px}.metric-icon .icon{width:16px;height:16px}.metric-value{font-size:1.2rem}.metric-value small{font-size:.6rem}.metric-note{font-size:.65rem}.panel{border-radius:12px;margin-bottom:18px}.panel-header{padding:17px 16px}.panel-header h2{font-size:.95rem}.grid-two{gap:0}.filter-bar{padding:13px 14px;gap:9px}.filter-bar .search{min-width:100%;flex:1}.filter-bar select{flex:1;min-width:0}th{padding:11px 15px;font-size:.65rem}td{padding:14px 15px;font-size:.8rem}.cell-title{max-width:200px;min-width:150px}.cell-meta{font-size:.65rem}.table-hide-mobile{display:none}.mini-row,.activity-card{padding:16px}.status{font-size:.65rem;padding:4px 6px}.desktop-footer{display:none}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;height:72px;padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:#fffffff5;backdrop-filter:blur(14px);border-top:1px solid var(--line);z-index:30;align-items:center;justify-content:space-around}.bottom-nav a,.bottom-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;color:#8d849b;min-width:52px;padding:6px 7px;font-size:.63rem;font-weight:700;border:0;background:none;white-space:nowrap}.bottom-nav .active{color:var(--purple)}.bottom-nav svg{width:20px;height:20px}.overlay{padding:0;align-items:flex-end}.dialog{border-radius:18px 18px 0 0;width:100%;max-height:94dvh}.dialog-head{padding:20px 20px 17px}.dialog-head h2{font-size:1.17rem}.dialog-body{padding:20px}.dialog-footer{padding:15px 20px calc(15px + env(safe-area-inset-bottom));gap:8px}.dialog-footer .button{font-size:.8rem;padding:12px 14px;flex:1}.form-grid{grid-template-columns:1fr;gap:17px}.full{grid-column:auto}.field label{font-size:.8rem}.receipt-zone{padding:16px;align-items:flex-start;flex-wrap:wrap}.detail-grid{gap:18px}.detail-hero{display:block}.detail-amount{margin-top:14px}.detail-title{font-size:1.2rem}.charge-head,.charge-row{grid-template-columns:minmax(90px,1fr) 50px 77px 22px;gap:7px}.charge-head>span:nth-child(4){display:none}.charge-row .line-total{display:none}.charge-row input{padding:9px 7px;font-size:.75rem}.charge-head{font-size:.6rem}.report-grid{grid-template-columns:1fr}.report-card{padding:19px}.toast{bottom:88px;font-size:.8rem}.login{margin:20px auto;padding:30px 22px}}
@media(max-width:760px){.record-list table{min-width:0;width:100%}.record-list thead{display:none}.record-list tbody{display:block}.record-list tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;padding:14px 15px;border-bottom:1px solid var(--line)}.record-list tr:last-child{border-bottom:0}.record-list td{padding:0;border:0}.record-list td:first-child{grid-column:1;grid-row:1/span 2;min-width:0}.record-list .cell-title{min-width:0;max-width:none;overflow-wrap:anywhere}.record-list .cell-meta{overflow-wrap:anywhere}.record-list td.money{grid-column:2;grid-row:1;text-align:right}.record-list td:nth-child(4){grid-column:2;grid-row:2;text-align:right}.top-actions #signout{font-size:.75rem;white-space:nowrap}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.currency-add{margin-top:14px;padding:16px;border:1px solid var(--line);border-radius:10px;background:#faf8fd}
.login-form{display:grid;gap:18px;text-align:left;margin:24px 0}.login-form label{display:grid;gap:8px;font-size:1rem;font-weight:700}.login-form input{width:100%;min-height:46px;font-size:1rem}.login-form .button{width:100%}.login-form .help{margin:0;overflow-wrap:anywhere}.login .button{white-space:normal}.button-row{flex-wrap:wrap}

.password-field{display:grid;gap:8px}
.password-entry{display:flex;align-items:center;gap:8px}
.password-entry input{min-width:0;flex:1}
.password-toggle{flex:none;min-height:44px;padding:0 8px;border:0;background:transparent;color:var(--purple);font:inherit;font-weight:700;cursor:pointer}
.choice-popup{position:fixed;inset:auto;margin:0;z-index:1000;padding:8px;border:1px solid var(--line);background:white;border-radius:10px;box-shadow:0 6px 22px #30234024;max-height:min(320px,50dvh);overflow:auto}
.choice-popup input{width:100%;margin-bottom:4px}
.choice-results{max-height:min(245px,32dvh);overflow:auto;font-size:.9rem}
.choice-results [role=option]{cursor:pointer;padding:8px 10px;overflow-wrap:anywhere}
.choice-results [aria-selected=true],.choice-results [role=option]:hover{background:#eee8f5}
.searchable-table th,.searchable-table td{padding:10px 12px}
.searchable-table th input,.panel thead input[type=search]{min-width:6rem;width:100%;font-size:.78rem;padding:5px 7px;text-transform:none;letter-spacing:normal}
.searchable-table tr[hidden]{display:none}
.line-description,.line-description input,.line-description select{min-width:0;width:100%}
.report-controls{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:18px}
.report-controls .optional{display:none}
.budget-bar{display:flex}.budget-bar span:first-child{background:var(--purple)}.budget-bar span+span{background:var(--gold)}

td.money,.detail-section td:nth-last-child(1){text-align:right;font-variant-numeric:tabular-nums}

.register-toolbar{padding-block:12px}
.register-filter-toggle{display:none}
.register table{table-layout:auto;width:100%;min-width:0}
.register thead th{
 background:white;color:var(--purple);font-size:.78rem;letter-spacing:0;
 text-transform:none;font-weight:700;padding:12px 9px 4px;border-bottom:0;
}
.register thead tr:nth-child(2) th{padding:4px 9px 10px;border-bottom:2px solid var(--line)}
.register thead input[type=search]{width:100%;min-width:0;inline-size:100%;box-sizing:border-box;font-weight:400}
.register tbody td{padding:12px 9px;border-bottom:1px solid var(--line);line-height:1.4}
.register .compact,.register .money{width:1%;white-space:nowrap}
.register .money{text-align:right;font-variant-numeric:tabular-nums}
.register td.prose{min-width:9ch;max-width:36ch;white-space:normal;overflow-wrap:anywhere}
.register .card-title{font-weight:700}
.register .card-reference{color:var(--purple);font-weight:700;letter-spacing:.015em}
.register .period{min-width:12ch;max-width:20ch}
.register th:first-child,.register td:first-child{padding-left:16px}
.register th:last-child,.register td:last-child{padding-right:16px}
.register .clickable:hover,.register .clickable:focus-visible{background:#f6f4fa}
.register .clickable:focus-visible{outline:2px solid var(--purple);outline-offset:-2px}
.register-filter-toggle:focus-visible{outline:2px solid var(--purple)}
.register .status{font-weight:700;letter-spacing:0}
.status{background:#E5E5E5;color:#404040}
.status.submitted,.status.reviewed,.status.pending,.status.awaiting-finance,.status.payment-in-progress{
 background:#FEF0D3;color:#404040;box-shadow:inset 3px 0 0 var(--gold);padding-inline-start:10px
}
.status.active,.status.approved,.status.posted,.status.ordered,.status.paid,.status.succeeded{
 background:var(--purple);color:white
}
.status.expired,.status.rejected,.status.cancelled,.status.changes-requested,.status.failed,.status.uncertain{
 background:#FDE9D5;color:#000;box-shadow:inset 3px 0 0 #F7932F;padding-inline-start:10px
}
.status.closed{background:#E5E5E5;color:#404040}
@media(max-width:760px){
 .register-filter-toggle{display:inline-flex}
 .register table,.register thead,.register tbody{display:block}
 .register thead tr:first-child,.register .register-filters{display:none}
 .register .register-filters.open{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:10px 14px;background:white;border-bottom:1px solid var(--line)}
 .register thead tr:nth-child(2) th{padding:0;border:0}
 .register thead input[type=search]{min-height:40px}
 .register tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;
   padding:13px 16px;border-bottom:1px solid var(--line);align-items:center}
 .register tbody tr:last-child{border-bottom:0}
 .register tbody td{display:none}
 .register tbody td:is(.card-reference,.card-title,.card-status,.card-amount,.card-date){
   display:block;width:auto;min-width:0;max-width:none;padding:0;border:0}
 .register .card-reference{grid-area:1/1;font-size:.8rem}
 .register .card-status{grid-area:1/2;text-align:right}
 .register .card-title{grid-area:2/1/3/3;font-size:1rem;overflow-wrap:anywhere}
 .register .card-date{grid-area:3/1;color:var(--muted);font-size:.8rem}
 .register .card-amount{grid-area:3/2;text-align:right}
 .register tbody tr[hidden]{display:none}
}

/* Workspace typography and surfaces */
:root {
  --bg: #f8f8f9;
  --radius: 10px;
  --type-title: clamp(1.875rem, 2.7vw, 2.625rem);
}
body { color: #262626; }
h1, .hero h1, .page-head h1 {
  margin: 0;
  font-size: var(--type-title);
  line-height: 1.12;
  letter-spacing: -.025em;
  color: #171717;
}
h2, .panel-header h2 { font-size: 1.125rem; letter-spacing: -.01em; }
.sidebar {
  background: var(--purple);
  padding: 0 0 16px;
  border-right: 0;
  overflow-y: auto;
}
.brand {
  background: white;
  padding: 22px 24px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 3px solid var(--gold);
}
.brand img { width: 152px; height: auto; max-width: 100%; }
.brand > span { font-size: .875rem; letter-spacing: .025em; margin: 11px 0 0; }
#navigation { padding: 18px 12px; }
.nav-item {
  color: white;
  font-size: .9375rem;
  font-weight: 400;
  padding: 11px 14px;
  border-radius: 6px;
  margin: 2px 0;
}
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover, .nav-item:focus-visible { background: #ffffff19; }
.nav-item.active {
  background: white;
  color: var(--purple);
  box-shadow: inset 4px 0 var(--gold);
}
.nav-item.active:after, .hero:after { content: none; }
.topbar { height: 62px; background: white; }
.breadcrumb, .user-name { font-size: .875rem; }
.avatar, .metric-icon { background: #f0edf8; color: var(--purple); }
.page-head, .hero {
  background: transparent;
  color: var(--ink);
  padding: 0;
  margin-bottom: 24px;
  border-radius: 0;
  overflow: visible;
}
.hero p, .page-head .count {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.45;
}
.button { border-radius: 7px; }
.button.quiet { border-color: #ccc; }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--purple); }
.sidebar a:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.metrics {
  gap: 0;
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--purple);
  border-radius: var(--radius);
  overflow: hidden;
}
.metric { border: 0; border-radius: 0; min-width: 0; padding: 16px 20px 18px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric-head { color: #404040; font-size: .875rem; font-weight: 700; gap: 6px; }
.metric-head .metric-icon { background: none; padding: 0; width: 20px; height: 20px; }
.metric-value {
  color: var(--purple);
  font-size: clamp(1.5rem, 2.3vw, 2.125rem);
  line-height: 1.25;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.metric-value small { font-size: .75rem; font-weight: 700; }
.metric-note, .help, .count { color: var(--muted); font-size: .8125rem; }
.waiting-panel > h3 { margin: 18px 22px 4px; color: var(--purple); font-size: .875rem; }
.waiting-panel > .help { margin: 0 22px 18px; }
.mini-row h3, .activity-card h3 { font-size: .9375rem; }
.panel-header { padding-block: 16px; }
.register thead th { background: #f6f5f9; font-size: .8125rem; color: #40364e; }
.register thead tr:nth-child(2) th { border-bottom-width: 1px; }
.register thead input[type=search] {
  min-height: 32px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: white;
}
.register tbody td { font-size: .9375rem; line-height: 1.45; }
.register tbody .card-reference { font-size: .8125rem; letter-spacing: 0; }
.register .card-title { color: #161616; }
.register .card-date { font-size: .8125rem; color: var(--muted); }
.register .card-amount { color: #171717; }
.status { border-radius: 4px; font-size: .75rem; }
.dialog-head { border-top: 3px solid var(--purple); }
.dialog-head h2 { font-size: 1.375rem; }
.section-label { text-transform: none; font-size: .9375rem; letter-spacing: 0; }
.field label { color: #404040; font-size: .875rem; }
.field input, .field select, .field textarea { font-size: .9375rem; }
:where(.dialog, .login) :is(input,select,textarea):focus-visible {
  border-color: var(--purple);
  outline: 2px solid var(--purple);
  outline-offset: 1px;
}
body:has(main .login) .app-shell { display: block; }
body:has(main .login) :is(.sidebar,.topbar,.bottom-nav) { display: none; }
body:has(main .login) main {
  min-height: 100dvh;
  display: grid;
  align-content: center;
  padding: 24px;
}
.login {
  width: min(100%, 430px);
  margin: 0 auto;
  text-align: left;
  padding: clamp(22px, 4vw, 38px);
  border-radius: var(--radius);
  border-top: 4px solid var(--purple);
}
.login img { width: 154px; height: auto; margin: 0 0 24px; display: block; }
.login h1 { font-size: 1.75rem; line-height: 1.2; }
.login-form label { font-size: .875rem; }
.login-form .help { margin-bottom: 0; }
@media (min-width: 761px) {
  main { min-height: calc(100dvh - 62px); }
  .grid-two { align-items: start; }
  .register .card-title { font-weight: 400; }
  .register thead input[type=search]:placeholder-shown:not(:focus) {
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='1.75'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Cpath d='m15 15 5 5'/%3E%3C/svg%3E") 8px center / 14px no-repeat;
  }
  .register thead input[type=search]:not(:focus)::placeholder { color: transparent; }
}
@media (max-width: 760px) {
  .topbar { height: 56px; }
  .page-head { align-items: center; }
  .page-head .button-row { justify-content: flex-end; gap: 6px; }
  .page-head .button { min-height: 40px; }
  .page-head .count, .hero p { font-size: .875rem; }
  .hero .button-row { margin-top: 16px; }
  .metrics { gap: 0; }
  .metric { padding: 13px 12px; }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .metric-head { font-size: .8125rem; }
  .metric-note { font-size: .75rem; }
  .register-page .page-head { flex-wrap: wrap; }
  .register thead input[type=search] { min-height: 42px; font-size: 1rem; }
  .register tbody tr { padding-block: 15px; gap: 7px 12px; }
  .register tbody .card-title { font-size: 1.0625rem; }
  .register tbody .card-amount { font-size: 1rem; }
  .bottom-nav a, .bottom-nav button { font-size: .7rem; color: #595959; }
  .bottom-nav .active { color: var(--purple); box-shadow: inset 0 -3px var(--gold); }
  .field input, .field select, .field textarea { font-size: 1rem; }
}

.install-app { margin-top: 12px; }
.installed-app .install-app { display: none; }
@media (display-mode: standalone) { .install-app { display: none; } }
#install-help { color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 24px; max-width: min(390px, 90vw); }
#install-help::backdrop { background: rgb(24 18 38 / 45%); }
#install-help h2 { margin-top: 0; }
#install-help p { line-height: 1.5; }
