@font-face {
  font-family: "Inter var";
  src: url("/static/Inter-roman.var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #131920;
  --paper: #1d2630;
  --field: #131920;
  --line: #3e4853;
  --divider: #f8f9fa14;
  --muted: #bec8d0;
  --text: #e0e2e5;
  --purple: #c5adee;
  --primary: #5936a2;
  --active: #332546;
  --green: #6bc2a5;
  --amber: #edad4d;
  --red: #f5bebe;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font:14px/1.57 "Inter var",system-ui,sans-serif}
h1,h2,h3,p,dl,dd{margin:0}h1{font-size:clamp(24px,3vw,34px);line-height:1.2;letter-spacing:-.03em}h2{font-size:17px;margin:4px 0}a{color:var(--purple)}
button,.button,input,select,textarea{font:inherit;color:inherit;border-radius:8px;border:1px solid var(--line);background:var(--field);padding:8px 12px;min-height:40px}
input, select, textarea {
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
}
input:hover, select:hover, textarea:hover { border-color: var(--purple); }
textarea { resize: vertical; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 13px;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}
button:hover, .button:hover { border-color: var(--purple); }
button.primary, .button.primary { background: var(--primary); border-color: var(--primary); color: white; }
button.primary:hover, .button.primary:hover { background: #4d2e8d; border-color: var(--purple); }
.quiet { background: none; color: var(--muted); }
:focus-visible{outline:2px solid var(--purple);outline-offset:3px}.skip{position:absolute;top:-60px;left:4px;z-index:10;background:var(--paper);padding:6px}.skip:focus{top:4px}
aside{position:fixed;inset:0 auto 0 0;width:222px;display:flex;flex-direction:column;gap:19px;padding:21px 13px;border-right:1px solid #ffffff12;background:var(--bg)}
.brand{padding:0 13px;min-height:39px;display:flex;align-items:center}.brand img,.login-card img{width:138px;height:auto;max-height:46px;object-fit:contain}
nav,.aside-foot{display:grid;gap:4px}nav a,.aside-foot a,.aside-foot span{border-radius:8px;padding:9px 12px;color:var(--muted);text-decoration:none}
nav a[aria-current=page]{background:var(--active);color:var(--purple);font-weight:700}nav a:hover,.aside-foot a:hover{background:var(--paper);color:var(--text)}
.aside-foot{margin-top:auto}.aside-foot form{padding:0 10px}.aside-foot form button{width:100%}
.signed main{margin-left:222px}.top{height:74px;border-bottom:1px solid var(--divider);display:flex;justify-content:space-between;align-items:center;padding:0 28px;color:var(--muted);font-weight:600}
.badge,.state{display:inline-block;border-radius:6px;padding:3px 8px;font-weight:600;border:1px solid #a785de66;background:var(--active);color:var(--purple);letter-spacing:.015em}
.content{max-width:1400px;margin:auto;padding:30px 28px 64px;display:grid;gap:17px;min-width:0}.heading{display:flex;justify-content:space-between;gap:16px;align-items:center}.heading p,small{color:var(--muted);display:block;margin-top:4px}
.card{background:var(--paper);border:1px solid var(--divider);border-radius:8px;padding:16px}.card.table{overflow:auto;padding:0}
.filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(136px,1fr));align-items:end;gap:9px 12px}.filters .wide{grid-column:span 2}
label,.form{display:grid;gap:6px}.form{gap:12px;align-content:start}label{color:var(--muted);font-weight:600}
.inline,.actions,.pager{display:flex;align-items:end;flex-wrap:wrap;gap:9px}.actions{margin-top:7px}.inline p{align-self:center}.pager{justify-content:flex-end;align-items:center}
.table table { width: 100%; border-collapse: collapse; text-align: left; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--divider); vertical-align: top; }
.table th {
  background: var(--field);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
.table td:first-child { white-space: nowrap; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #ffffff04; }
.table td.empty { text-align: center; color: var(--muted); padding: 36px 20px; }
.state.paid,.state.approved{color:var(--green);border-color:#79d9b94d;background:#79d9b91a}.state.pending,.state.reconcile,.state.energy,.state.funds{color:var(--amber);border-color:#f0c3824d;background:#f0c38214}.state.failed,.state.rejected,.danger{color:var(--red)}
.columns,.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:12px}.metrics span{color:var(--muted);display:block}.metrics strong{display:block;font-size:24px;margin-top:5px}.metrics .accented{background:#231c33;border-color:#ba94f34f}
.detail{display:grid;gap:12px}.detail dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:9px}.detail dl div{background:var(--field);border:1px solid var(--line);border-radius:7px;padding:10px}.detail dt{color:var(--muted);font-size:13px}.detail dd{font-weight:600;margin-top:3px}
.free{white-space:pre-wrap;overflow-wrap:anywhere}.mono{font-family:ui-monospace,monospace;overflow-wrap:anywhere}.notice{padding:10px 13px;border:1px solid #f0c3824d;border-radius:8px;color:var(--amber)}.notice.danger{color:var(--red);border-color:#f4a6ae50}.back{justify-self:start}.categories{display:grid;gap:12px}.categories .inline+.inline{border-top:1px solid var(--line);padding-top:12px}
details summary{font-weight:700;color:var(--purple);cursor:pointer}details p{margin-top:10px}.public .content{min-height:100dvh;align-content:center;justify-items:center}.login-card{width:min(100%,420px);display:grid;gap:15px;padding:23px}.login-card .badge{justify-self:start}
@media(max-width:760px){aside{position:static;width:auto;padding:10px;gap:8px;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0 7px}.brand img{width:100px}nav{display:flex;overflow:auto;gap:4px}nav a{flex:none;padding:7px;font-size:12px}.aside-foot{display:flex;align-items:center;flex-wrap:wrap;font-size:12px}.aside-foot a,.aside-foot span,.aside-foot form{padding:0 5px}.aside-foot form button{min-height:30px;padding:4px 8px}.signed main{margin-left:0}.top{height:43px;padding:0 14px}.content{padding:18px 13px 32px}.heading{align-items:flex-start;flex-wrap:wrap}.form button{justify-self:stretch}.filters .wide{grid-column:span 1}.table table{min-width:560px}}
:root{--purple:#c5adee;--line:#36404b;--muted:#b0bbc5}
h1{font-size:clamp(23px,2.2vw,30px)}.content{gap:16px}.card{border-radius:10px}
.filters,.inline{align-items:end;column-gap:14px;row-gap:12px}
.form,.filters label,.inline label{min-width:0}
.card label,.form label{line-height:1.4;gap:5px}
input:not([type=checkbox]):not([type=hidden]),select,button,.button{min-height:40px}
.card input,.card select,.card textarea,dialog input,dialog select{border-radius:6px}
button:focus-visible,.button:focus-visible,summary:focus-visible{outline:2px solid var(--purple);outline-offset:3px}
.detail dl{display:block}.detail dl div,.wallet-row{display:grid;grid-template-columns:minmax(110px,25%) 1fr;gap:12px;border:0;border-radius:0;border-bottom:1px solid var(--line);background:transparent;padding:8px 0;align-items:baseline}
.detail dl dd{margin:0}.wallet-row{grid-template-columns:minmax(120px,1fr) 1fr 1fr auto;align-items:center}
dialog{color:var(--text);background:var(--card,#1d2630);border:1px solid var(--line);border-radius:12px;padding:22px;width:min(440px,92vw)}
dialog::backdrop{background:#080c12ba}dialog .form{display:grid;gap:12px}.content>button{justify-self:start}
.profile-password{max-width:620px}.approval h2{margin-bottom:6px}[hidden]{display:none!important}
@media(max-width:720px){.wallet-row{grid-template-columns:1fr auto}.profile-password{width:100%}.detail dl div{grid-template-columns:minmax(94px,30%) 1fr}}

/* Give native selects, date fields and single-line actions the same border box. */
.signed { --control-height: 40px; }
.signed input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.signed select {
  height: var(--control-height);
  min-height: var(--control-height);
  padding-block: 0;
  line-height: 1.25;
}
.signed select {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 30px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 15px center, right 10px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
@media (forced-colors: active) {
  .signed select { appearance: auto; background-image: none; }
}
.signed .content button, .signed .content .button {
  min-height: var(--control-height);
  padding-block: 4px;
}
.approval button:disabled { color: var(--muted); cursor: default; border-color: var(--line); }
.filters .actions { margin: 0; }
.request-filters { grid-template-columns: repeat(auto-fit, minmax(min(138px, 100%), 1fr)); }
@media (min-width: 1280px) {
  .request-filters {
    grid-template-columns: minmax(0, 1.85fr) repeat(2, minmax(0, .85fr)) repeat(3, minmax(0, 1fr)) auto;
  }
  .request-filters .wide { grid-column: auto; }
  .request-filters .actions { grid-column: -2 / -1; grid-row: 1; }
}
@media (max-width: 760px) {
  .signed { --control-height: 44px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters .wide, .filters .actions { grid-column: 1 / -1; }
}
