:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;color:#172b4d;background:#fff;--line:#dfe1e6;--muted:#626f86;--accent:#176f65;--sidebar:224px;--header:56px}*{box-sizing:border-box}body{margin:0}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:6px 12px;background:var(--accent);color:white;border:1px solid transparent;border-radius:4px;cursor:pointer;text-decoration:none;font-weight:500;line-height:20px}button:hover,.button:hover{background:#10574f;text-decoration:none}button:disabled{opacity:.55;cursor:wait}button.secondary,.button.secondary{background:white;border-color:#d1d5dc;color:#44546f}button.secondary:hover,.button.secondary:hover{background:#f1f2f4}button.text-button{background:transparent;color:#44546f}button.text-button:hover{background:#f1f2f4}input,textarea,select{display:block;width:100%;min-height:34px;padding:6px 10px;border:1px solid #b6becb;border-radius:4px;color:#172b4d;background:#fff}input:focus,textarea:focus,select:focus{outline:2px solid #278f7f;outline-offset:1px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #278f7f;outline-offset:3px}label{display:block;font-weight:600;font-size:12px;margin:14px 0 6px}h1{font-size:24px;font-weight:600;letter-spacing:-.3px;line-height:1.3;margin:0 0 8px}h2{font-size:18px;font-weight:600;margin:0 0 12px}p{line-height:1.5;margin:8px 0 16px}.muted{color:var(--muted)}[hidden]{display:none!important}.account-header{height:var(--header);display:flex;align-items:center;gap:16px;padding:0 24px;background:white;border-bottom:1px solid var(--line)}.account-header img{width:128px;height:36px;object-fit:contain}.account-shell{max-width:1280px;margin:28px auto;padding:0 24px}.narrow{max-width:600px}.card{background:white;border:1px solid var(--line);border-radius:6px;padding:20px;margin:20px 0;box-shadow:none}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:16px}.notice{padding:10px 12px;border-radius:4px;background:#dffcf0;color:#216e4e;white-space:pre-wrap}.notice.error{background:#ffebe6;color:#ae2a19}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:6px}table{width:100%;border-collapse:collapse;font-size:14px}th,td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}th{background:#fafbfc;color:#44546f;font-size:12px;font-weight:600;letter-spacing:0;text-transform:none;white-space:nowrap}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#f7f8f9}td small{display:block;color:var(--muted);font-size:12px;margin-top:3px}td button{min-height:28px;padding:3px 8px;font-size:12px}.tag{display:inline-block;padding:2px 6px;border-radius:3px;background:#e9f5f1;color:#10574f;font-size:11px;line-height:16px;white-space:nowrap}.tag.active{background:#dcfff1;color:#216e4e}.tag.pending{background:#fff7d6;color:#7f5f01}.tag.suspended{background:#ffebe6;color:#ae2a19}.workspace-page .account-header{position:fixed;inset:0 0 auto;z-index:50;padding:0 20px}.workspace-brand{display:flex;align-items:center}.header-divider{width:1px;height:24px;background:var(--line)}.workspace-title{font-weight:600;color:#44546f}.workspace-page .account-shell{max-width:none;margin:var(--header) 0 0 var(--sidebar);padding:24px 32px 40px}.workspace-page .account-shell.narrow{max-width:860px}.workspace-sidebar{position:fixed;top:var(--header);bottom:0;left:0;width:var(--sidebar);border-right:1px solid var(--line);background:#f7f8f9;padding:16px 12px;display:flex;flex-direction:column;z-index:40;overflow-y:auto}.workspace-company{display:flex;align-items:center;gap:10px;padding:0 6px 18px;overflow-wrap:anywhere}.company-mark{display:flex;flex:none;align-items:center;justify-content:center;width:30px;height:30px;background:#e9f5f1;color:#176f65;border:1px solid #bddbd2;border-radius:5px;font-weight:700}.nav-caption{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);margin:8px 10px}.sidebar-link{display:flex;align-items:center;gap:12px;min-height:36px;padding:8px 10px;border-radius:4px;color:#44546f;margin:2px 0;font-weight:500}.sidebar-link:hover{background:#e9ebee;text-decoration:none}.sidebar-link[aria-current=page]{background:#e9f5f1;color:#176f65;box-shadow:inset 3px 0 #176f65}.sidebar-link svg{width:18px;height:18px;flex:none}.sidebar-foot{margin-top:auto;padding:24px 10px 0;font-size:11px;color:var(--muted)}.avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:#e9f5f1;color:#10574f;flex:none;width:32px;height:32px;font-size:12px;font-weight:600}.user-menu{position:relative;margin-left:auto}.user-menu summary{cursor:pointer;display:flex;align-items:center;gap:8px;list-style:none}.user-menu summary::-webkit-details-marker{display:none}.user-label{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.user-popover{position:absolute;right:0;top:42px;width:260px;background:white;border:1px solid var(--line);box-shadow:0 8px 20px #091e4226;border-radius:6px;padding:16px;display:flex;flex-direction:column;gap:10px;overflow-wrap:anywhere}.user-popover button{text-align:left;justify-content:flex-start}.nav-toggle{background:transparent;color:#44546f;font-size:20px;padding:4px 8px}.nav-overlay{position:fixed;inset:var(--header) 0 0;z-index:35;border:0;border-radius:0;background:#091e4270}.nav-overlay:hover{background:#091e4270}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.page-heading p{margin-bottom:0}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:18px 0}.toolbar input{max-width:300px}.toolbar select{width:auto;min-width:150px}.toolbar label{margin:0;font-size:14px;font-weight:400}.toolbar .filter-field{display:flex;gap:8px;align-items:center}.table-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;color:var(--muted);font-size:12px}.user-cell{display:flex;align-items:center;gap:10px}.user-cell a{font-weight:500;color:#172b4d}.user-cell a:hover{color:var(--accent)}.row-action{white-space:nowrap}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:20px 0 12px}.stat{border:1px solid var(--line);border-radius:6px;padding:12px 14px}.stat span{display:block;color:#44546f;font-size:12px}.stat strong{display:block;font-size:21px;line-height:28px;font-weight:600}.section-caption{font-size:12px;color:var(--muted);margin:0}.dialog{width:min(480px,calc(100% - 32px));border:1px solid var(--line);border-radius:8px;padding:24px;color:#172b4d;box-shadow:0 12px 48px #091e4233}.dialog::backdrop{background:#091e4270}.dialog .actions{justify-content:flex-end}.dialog h2{font-size:20px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.account-shell.narrow .card{margin-top:16px}.account-shell.narrow>p:last-child{font-size:12px}.account-header>span{font-size:13px}@media(max-width:1100px){.workspace-page .account-shell{padding:24px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:900px){.workspace-page .account-shell{margin-left:0;padding:20px 16px}.workspace-sidebar{transform:translateX(-100%)}.sidebar-open .workspace-sidebar{transform:translateX(0)}.workspace-page .account-header{padding:0 12px;gap:10px}.user-label{display:none}.workspace-title{font-size:12px}.account-shell{padding:0 16px}.page-heading{gap:12px}.card{padding:16px}}@media(max-width:480px){.header-divider,.workspace-title{display:none}.stats-grid{gap:6px}.stat{padding:10px}.page-heading{flex-wrap:wrap}.toolbar input{max-width:none}.toolbar .filter-field{width:100%}}

.allowance-strip{font-size:12px;padding:7px 10px;border:1px solid #bddbd2;background:#eef8f4;color:#15584f;border-radius:4px;margin:0 0 14px;line-height:1.5}.allowance-strip.expired{background:#fff3df;color:#805200;border-color:#efd19c}.project-label .allowance-strip{margin:5px 0 0;padding:4px 6px;font-size:11px}#allowanceSection{margin-top:28px;padding-top:20px;border-top:1px solid #dfe1e6}.allowance-fields{display:flex;gap:24px;flex-wrap:wrap;margin-bottom:14px}.allowance-fields>div{min-width:220px}.allowance-fields input,.allowance-fields select{max-width:300px}
