:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#243e35;background:#f7f8f2}*{box-sizing:border-box}body{margin:0}header{height:76px;background:#fff;border-bottom:1px solid #e3e7dc;display:flex;align-items:center;gap:24px;padding:0 5vw}header b{font-size:28px}header span,p{color:#78857b}header button{margin-left:auto}main{max-width:1400px;margin:40px auto;padding:0 24px}h1{font-size:30px;margin:0 0 12px}h2{font-size:22px}h3{margin-top:30px}button{border:0;border-radius:9px;background:#28594e;color:white;padding:11px 18px;cursor:pointer}button:disabled{opacity:.45;cursor:default}input,textarea{font:inherit;border:1px solid #d7dfd3;border-radius:9px;padding:12px;background:#fff;width:100%}label{display:block;margin:18px 0 8px;font-size:14px}label input,label textarea{margin-top:8px}#login{max-width:430px;background:#fff;padding:36px;border-radius:18px;margin:80px auto}#login button{width:100%;margin-top:18px}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}#search{display:flex;gap:10px}#search input{width:260px}.layout{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;align-items:start}.card{background:#fff;border:1px solid #e3e7dc;border-radius:16px;padding:24px;min-width:0}.scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;padding:14px 8px;border-bottom:1px solid #edf0e9}th{color:#7d877e;font-weight:500;white-space:nowrap}.pager{display:flex;justify-content:space-between;align-items:center;margin-top:22px}.muted{font-size:13px;color:#7d877e}.balance{font-size:36px;font-weight:600;margin:16px 0}.log{padding:12px 0;border-bottom:1px solid #edf0e9;line-height:1.7;overflow-wrap:anywhere}#message{color:#a23e2d;min-height:20px}form small{display:block;margin:10px 0;color:#7d877e}[hidden]{display:none!important}@media(max-width:950px){.layout{grid-template-columns:1fr}.heading{display:block}#search{margin-top:20px}}
nav{display:flex;gap:12px;margin-bottom:28px}.filters{display:flex;gap:10px;margin-bottom:24px;flex-wrap:wrap}.filters input{flex:1;min-width:160px}select{font:inherit;background:#fff;color:#243e35;border:1px solid #d7dfd3;border-radius:9px;padding:11px}label select{display:block;width:100%;margin-top:8px}details{margin-top:20px;overflow-wrap:anywhere}summary{cursor:pointer}input[readonly]{background:#f2f4ef;color:#68786d}
/* Nuvori 工作台：固定反馈区，不挤动列表或表单。 */
:root{color:#293d35;background:#f4f6f1;font-size:14px;line-height:1.65;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Segoe UI",sans-serif}header{height:80px;padding:0 max(28px,calc((100vw - 1440px)/2));gap:20px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#293d35}.brand img{width:34px;height:34px;object-fit:contain}.brand b{font-size:27px;letter-spacing:-1px}.header-caption{border-left:1px solid #dfe5db;padding-left:20px;font-size:13px}main{max-width:1440px;margin:28px auto;padding:0 28px 60px}h1{font-size:30px;letter-spacing:-.6px;margin:0 0 4px}h2{font-size:22px;line-height:1.4;margin:8px 0}h3{font-size:15px;margin:24px 0 12px}p{margin:6px 0 16px}button,input,select,textarea{font:inherit}button{transition:background .15s;white-space:nowrap;font-size:13px;font-weight:500;min-height:38px;padding:8px 16px;border-radius:10px}button:hover:not(:disabled){background:#386b5b}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #a6c5b5;outline-offset:3px}input,select,textarea{border-color:#dfe5da;border-radius:10px;padding:10px 12px;min-height:42px;color:#293d35}input:focus,textarea:focus,select:focus{outline:2px solid #a8c4b6;outline-offset:1px}textarea{min-height:82px;resize:vertical}label{color:#607267;font-size:12px;margin:14px 0 8px}#logout,.pager button{background:#edf1e9;color:#476153}#logout:hover,.pager button:hover:not(:disabled){background:#dfe9dc}nav{background:#e9eee4;padding:5px;border-radius:13px;display:inline-flex;gap:4px;margin-bottom:30px}nav button{color:#6f7e70;background:transparent;min-width:110px}nav button.active{background:#fff;color:#28594e;box-shadow:0 1px 5px #213b2a10}nav button:hover:not(:disabled){background:#f7f9f4;color:#28594e}.heading{margin-bottom:20px}.heading p{margin:4px 0 0;font-size:13px}.layout{grid-template-columns:minmax(0,1.25fr) minmax(340px,1fr);gap:22px}.card{border-color:#e1e7dd;border-radius:20px;padding:24px}.layout>.card:first-child{padding:8px 20px 18px}.detail-panel{min-height:360px}.empty-panel{padding:75px 12px;text-align:center}.empty-panel h2{font-size:20px;margin:16px 0 8px}.empty-panel p{font-size:13px}.eyebrow{font-size:10px;letter-spacing:2px;color:#82907f}th{font-size:11px;letter-spacing:.3px;padding:17px 10px;background:#fafbf8}td{padding:18px 10px;vertical-align:middle}tbody tr{transition:background .15s}tbody tr:hover{background:#f6f8f2}.selected-row{background:#edf3e9!important}td button{background:#edf2e8;color:#365a49;padding:6px 12px;min-height:32px}td button:hover:not(:disabled){background:#dce8d5}td:last-child{text-align:right}th:last-child{text-align:right}small,.muted{font-size:11px;color:#849080}.quota-badge{font-variant-numeric:tabular-nums;font-size:18px;font-weight:600;color:#365c4a}.status-badge{display:inline-block;border-radius:6px;padding:3px 8px;font-size:11px;white-space:nowrap;background:#f0f1ed;color:#7c8476}.status-badge.active{background:#e7f0e1;color:#426d43}.status-badge.draft{background:#f7f0dd;color:#957a3e}.balance{background:#edf3e8;padding:18px 22px;border-radius:14px;font-size:38px;line-height:1.3;margin:20px 0}.balance span{font-size:12px;font-weight:400}.quick-amounts{display:flex;gap:8px}.quick-amounts button{background:#edf1e8;color:#47664f;min-height:32px;padding:4px 14px}.history-group{border-top:1px solid #e8ede3;padding-top:16px;margin-top:22px}.history-group summary{font-size:14px;font-weight:500}.history-group summary span{font-size:11px;font-weight:400;color:#8a9585;margin-left:8px}.log{font-size:12px}.filters{padding:16px;background:#eef2e9;border-radius:16px;gap:10px}.filters select{font-size:12px}.pager{font-size:12px;color:#83907e;margin-top:18px}.pager button{min-height:32px;font-size:12px}#message{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:20;max-width:calc(100vw - 40px);margin:0;border:1px solid #ecd5cf;background:#fff5f1;color:#975b48;box-shadow:0 6px 30px #263c2520;border-radius:12px;padding:12px 22px;font-size:13px}#message:empty{display:none}#message[data-kind=success]{color:#365c43;background:#edf5e8;border-color:#d9e8cf}#login{margin:70px auto;padding:40px;border:1px solid #e1e7dd;box-shadow:0 16px 60px #203d2507;border-radius:24px}#login h1{margin-top:14px}#login p{font-size:13px;margin-bottom:26px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}#foodForm{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}#foodForm label:nth-of-type(1),#foodForm label:nth-of-type(2),#foodForm label:nth-of-type(8),#foodForm label:nth-of-type(10),#foodForm small,#foodForm>button{grid-column:1/-1}#foodForm>button{justify-self:start;min-width:120px;margin-top:12px}@media(max-width:1000px){.layout{grid-template-columns:1fr}.heading{display:flex}.detail-panel{min-height:220px}.empty-panel{padding:36px 10px}}@media(max-width:600px){header{padding:0 20px;height:68px;gap:12px}.header-caption{display:none}main{padding:0 16px 40px;margin-top:20px}.heading{display:block}#search{width:100%;margin-top:16px}#search input{width:100%;min-width:0}.filters select{flex:1;min-width:100px}.card{padding:20px}.layout>.card:first-child{padding:6px 12px 16px}#foodForm{grid-template-columns:1fr}#foodForm label{grid-column:1/-1}#login{padding:28px;margin-top:40px}td,th{padding:14px 7px}nav{margin-bottom:22px}#message{width:calc(100% - 32px);text-align:center}}
.quick-amounts button:hover:not(:disabled){background:#dce8d5;color:#28594e}
/* 管理交互：全宽数据表 + 独立模态抽屉 */
.layout{display:block}.layout>.card:first-child{padding:0 20px 18px}.scroll{max-height:calc(100vh - 350px);min-height:280px}thead{position:sticky;top:0;z-index:1}th{background:#eef2eb;font-size:12px}td{padding:15px 12px}table{min-width:620px}td:nth-child(2),th:nth-child(2){text-align:right;font-variant-numeric:tabular-nums}td:last-child,th:last-child{width:90px}td:first-child{width:40%}.table-status{height:28px;font-size:12px;color:#7c8978}.secondary{background:#edf1e9;color:#36594a}.secondary:hover:not(:disabled){background:#dde7d6}.pager{justify-content:flex-end;gap:22px}.pager span{margin-right:auto;order:-1}.heading #search{margin-top:0}#drawer{position:fixed;inset:0 0 0 auto;margin:0;width:min(660px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border:0;padding:0;background:#fff;box-shadow:-16px 0 60px #20332a22;color:#293d35}#drawer::backdrop{background:#142a2247}.drawer-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e4e9df;padding:18px 28px;height:76px}.drawer-head h2{font-size:18px;margin:0}.drawer-head button{background:#edf1e9;color:#36594a}#drawerBody{height:calc(100% - 76px);overflow:auto;padding:24px 28px 40px}#drawer .detail-panel{border:0;border-radius:0;padding:0;min-height:0}.drawer-status{padding:60px 0;text-align:center;color:#7c8978}.drawer-status button{display:block;margin:20px auto}#drawer #adjust{border:1px solid #e2e8dc;padding:20px;border-radius:12px}#drawer #adjust h3{margin-top:0}#drawer form>button:last-child{position:sticky;bottom:0;box-shadow:0 0 0 8px white}#drawer #foodForm{gap:0 18px}#message{z-index:100}#drawer:open~#message{z-index:100}.empty-panel{padding:40px}@media(max-width:600px){.heading #search{margin-top:16px;flex-wrap:wrap}.heading #search input{flex-basis:100%}.scroll{max-height:65vh}.drawer-head{padding:18px 20px}#drawerBody{padding:20px}.pager{gap:12px;flex-wrap:wrap}.filters button{flex:1}}
#workspace td:first-child,#workspace th:first-child{width:140px}#foodWorkspace td:first-child{width:32%}td:nth-child(2),th:nth-child(2){text-align:left}td:nth-child(3),th:nth-child(3){text-align:right;font-variant-numeric:tabular-nums}.mono{font-family:ui-monospace,SFMono-Regular,monospace;font-size:12px;color:#6a7d70}
#drawer form>button:last-child{position:static;box-shadow:none}#foodForm label:nth-of-type(5),#foodForm label:nth-of-type(9){grid-column:1/-1}

.filing{text-align:center;padding:20px;font-size:12px;color:#738078}.filing a{color:inherit;text-decoration:none}.filing a:hover{text-decoration:underline}
