:root{--ink:#223b3b;--muted:#647775;--brand:#206b61;--dark:#183b3a;--bg:#f5f6f2;--line:#dce4de;--warm:#fff8e9;--red:#9e3935;--radius:15px;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",sans-serif;color:var(--ink);background:var(--bg);font-size:14px;line-height:1.7}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:var(--brand)}h1,h2,h3,p{margin-top:0}h1{font-size:28px;letter-spacing:.02em;line-height:1.5;margin-bottom:8px}h2{font-size:18px;margin-bottom:16px}h3{font-size:15px}p{margin-bottom:14px}small,.muted{color:var(--muted)}small{font-size:12px}strong{font-weight:650}button,.button{border:1px solid var(--line);background:white;border-radius:9px;padding:9px 15px;color:var(--ink);text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}button:hover,.button:hover{border-color:var(--brand);background:#f0f6f2}.primary{background:var(--brand);color:white;border-color:var(--brand)}.primary:hover{background:var(--dark);color:white}.danger{color:var(--red)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #cfab5a;outline-offset:3px}.shell{display:grid;grid-template-columns:225px 1fr;min-height:100vh}.sidebar{background:var(--dark);color:#e4eee9;padding:30px 18px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;padding:0 10px 28px;font-size:18px;line-height:1.5;letter-spacing:.04em}.brand small{color:#b8d1c9;font-size:11px;letter-spacing:.14em}.brand-mark{width:37px;height:42px;border:1px solid #86afa3;border-radius:11px;display:grid;place-items:center;font-size:23px;color:#dfede3}.nav{display:grid;gap:6px}.nav button{text-align:left;justify-content:flex-start;background:transparent;color:#b9d0c8;border:0;min-height:44px;padding:11px 15px}.nav button:hover,.nav button.active{background:#31544d;color:white}.nav button.active{box-shadow:inset 3px 0 #d7bd76}.nav-icon{width:20px;opacity:.8;font-size:17px}.sidebar-bottom{margin-top:auto;border-top:1px solid #41615a;padding:20px 10px 0;font-size:12px;color:#b8d1c9}.sidebar-bottom p{margin-bottom:7px}.main{min-width:0}.topbar{height:75px;padding:0 40px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);gap:12px}.topbar small{letter-spacing:.04em}.user-area{display:flex;align-items:center;gap:14px}.avatar{background:#edf3ed;border-radius:50%;width:36px;height:36px;display:grid;place-items:center;color:var(--brand);font-weight:700}.user-name{font-size:13px;line-height:1.5}.user-name small{font-size:10px}.topbar button{font-size:12px;padding:6px 10px}.content{max-width:1440px;margin:auto;padding:34px 40px 60px}.eyebrow{font-size:11px;color:var(--brand);letter-spacing:.12em;font-weight:650;margin-bottom:7px}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:24px}.page-head p{color:var(--muted);margin-bottom:0}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin-bottom:22px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.panel-head h2{margin:0}.grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:26px}.stat{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:21px 24px;position:relative}.stat small{display:block;margin-bottom:10px}.stat strong{display:block;font-size:33px;line-height:1.3;letter-spacing:.02em}.stat strong span{font-size:13px;color:var(--muted);font-weight:400;margin-left:7px}.stat.accent{background:#e6eee5;border-color:#c5d7c4}.stat-deco{position:absolute;right:20px;top:19px;font-size:20px;color:#8baba0}.banner{background:var(--warm);border:1px solid #ead9af;padding:13px 18px;border-radius:10px;margin-bottom:22px;font-size:13px;color:#6c572c}.banner a,.banner button{color:#6c572c}.banner.demo{background:#edf2ee;border-color:#d3e0d5;color:#3a6559;display:flex;gap:12px;align-items:center}.banner p:last-child{margin-bottom:0}.tag{display:inline-block;font-size:11px;line-height:1.7;border-radius:5px;padding:3px 9px;background:#edf3ef;color:#366558;white-space:nowrap}.tag.pending{background:#fff2d6;color:#886324}.tag.danger{background:#fae9e5;color:var(--red)}.tag.neutral{background:#edf0f1;color:#617475}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}th{font-size:11px;letter-spacing:.03em;color:var(--muted);font-weight:500;background:#f7f9f5}th,td{padding:13px 12px;border-bottom:1px solid #e8ede7;vertical-align:middle}tr:last-child td{border-bottom:0}td small{display:block}td .actions{flex-wrap:nowrap}td:first-child{padding-left:8px}th:first-child{padding-left:8px}.empty{text-align:center;padding:35px 15px;color:var(--muted);border:1px dashed var(--line);border-radius:10px}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.actions button{font-size:12px;padding:6px 11px}.row{display:flex;gap:16px;align-items:end;flex-wrap:wrap}.row>*{flex:1;min-width:170px}label{display:block;font-size:12px;color:#526864;margin-bottom:6px}input,select,textarea{width:100%;border:1px solid #cfdad3;border-radius:8px;background:#fff;padding:10px 12px;color:var(--ink);min-height:43px}textarea{resize:vertical;min-height:95px}.field{margin-bottom:18px}input[type=checkbox]{width:17px;min-height:17px;margin:0 7px 0 0;accent-color:var(--brand)}.check{display:flex;align-items:center;gap:4px;font-size:13px;color:var(--ink)}.checks{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;border:1px solid var(--line);padding:15px;border-radius:9px}.checks label{margin:0}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;border-top:1px solid var(--line);padding-top:20px}.form-note{font-size:12px;color:var(--muted);margin-top:6px}.item-line{background:#f7f9f5;border:1px solid var(--line);padding:17px;border-radius:10px;margin:14px 0}.item-line .row{gap:12px}.item-line .wide{flex:2;min-width:240px}.item-line .narrow{flex:.6;min-width:90px}.item-line button{align-self:end;margin-bottom:1px}.count{font-variant-numeric:tabular-nums}.held-card{display:flex;gap:14px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.held-card:last-child{border:0}.held-icon{width:42px;height:42px;background:#eff3ec;border-radius:11px;display:grid;place-items:center;font-size:22px;color:#6a8b7e}.held-info{flex:1}.held-info small{display:block}.held-qty{font-size:22px}.held-qty small{font-size:12px;margin-left:4px}.step-list{display:grid;gap:17px}.step{display:flex;gap:13px;align-items:start}.step-num{width:28px;height:28px;border-radius:50%;background:#edf3ec;display:grid;place-items:center;font-size:12px;flex-shrink:0;color:var(--brand)}.step p{margin-bottom:0;font-size:13px}.step small{display:block}.search{max-width:330px}.login-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-story{background:var(--dark);color:#f2f6eb;display:flex;justify-content:center;flex-direction:column;padding:70px 12%}.login-story h1{font-size:37px;line-height:1.8;margin:42px 0 20px}.login-story p{color:#b9d0c8;max-width:370px}.login-story .brand{padding:0}.login-art{margin-top:35px;border:1px solid #65857b;padding:26px;border-radius:15px;max-width:360px}.login-art .step-num{background:#41655a;color:#efe8cf}.login-art .step p{color:#e0e9e2}.login-art .step small{color:#a9c5b9}.login-form-area{display:grid;place-items:center;padding:35px}.login-card{width:100%;max-width:395px}.login-card h2{font-size:25px;margin:0 0 9px}.login-card>p{color:var(--muted);font-size:13px;margin-bottom:28px}.login-card .primary{width:100%;padding:12px;margin-top:7px}.login-card footer{font-size:11px;color:var(--muted);text-align:center;margin-top:30px}.demo-login{margin-top:28px;border:1px solid var(--line);border-radius:10px;padding:16px}.demo-login small{display:block}.demo-login select{margin:9px 0}.password-shell{max-width:520px;margin:70px auto;padding:20px}.loading{padding:80px;text-align:center;color:var(--muted)}#notice{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);background:var(--dark);color:white;border-radius:10px;box-shadow:0 6px 25px #0003;max-width:90vw;z-index:50;display:none;padding:13px 23px;white-space:pre-wrap}#notice.error{background:#873f37}dialog{width:min(610px,94vw);max-height:88vh;overflow:auto;border:1px solid var(--line);border-radius:18px;padding:28px;color:var(--ink);box-shadow:0 22px 90px #132e3040}dialog::backdrop{background:#173c3a66;backdrop-filter:blur(2px)}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.dialog-head h2{margin:0}.dialog-head button{padding:3px 10px;font-size:20px}.history{padding:12px 0;border-bottom:1px solid var(--line);font-size:13px}.history p{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}.history small{display:block}.details{padding:14px;border-radius:9px;background:#f6f8f3;margin:14px 0}.filter{margin-bottom:20px}.nowrap{white-space:nowrap}.footnote{font-size:11px;color:var(--muted);margin-top:24px}.mobile-brand{display:none}.subhead{margin:23px 0 12px;font-size:13px;color:var(--brand)}.error-text{color:var(--red);white-space:pre-wrap;margin:10px 0}.wide-button{width:100%}
th{white-space:nowrap}#ledger-table table{min-width:760px}#users-table table{min-width:780px}#requests-table table{min-width:720px}.dialog-head{gap:12px}.dialog-head h2{line-height:1.5}.dialog-head button{flex-shrink:0}.banner.demo strong{white-space:nowrap;flex-shrink:0}
@media(min-width:1500px){.content{padding-top:42px}.grid{grid-template-columns:1.25fr 1fr}}
@media(max-width:1100px){.shell{grid-template-columns:190px 1fr}.sidebar{padding:25px 12px}.brand{font-size:15px;padding-left:3px;padding-right:3px}.content{padding:25px}.topbar{padding:0 25px}.grid{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:18px}.stat strong{font-size:29px}.page-head{align-items:start}}
@media(max-width:720px){.shell{display:block}.sidebar{position:static;width:100%;height:auto;padding:12px}.sidebar .brand,.sidebar-bottom{display:none}.nav{display:flex;gap:4px;overflow-x:auto;padding:0 0 4px}.nav button{flex-shrink:0;min-height:38px;padding:7px 12px;font-size:12px}.nav-icon{display:none}.nav button.active{box-shadow:inset 0 -2px #d7bd76}.topbar{padding:12px 16px;height:auto}.topbar>small{display:none}.mobile-brand{display:block;font-size:13px;font-weight:600}.avatar{display:none}.user-name{font-size:12px}.content{padding:23px 16px 55px}h1{font-size:23px}.page-head{display:block;margin-bottom:20px}.page-head>.actions{margin-top:16px}.panel{padding:18px 15px}.stats{gap:8px}.stat{padding:14px 12px}.stat strong{font-size:25px}.stat small{font-size:10px;min-height:17px}.stat-deco{display:none}.stat strong span{font-size:10px;margin-left:3px}.panel-head{align-items:start}.panel-head h2{font-size:16px}.banner{font-size:12px;padding:12px}.checks{grid-template-columns:1fr 1fr}.row>*{min-width:140px}.item-line .wide{min-width:100%}.item-line .row{gap:10px}.item-line .narrow{min-width:75px}.login-page{display:block}.login-story{padding:25px}.login-story h1{font-size:22px;margin:15px 0 0}.login-story>p,.login-art{display:none}.login-form-area{padding:30px 23px}.login-card>p{margin-bottom:20px}.login-story .brand{font-size:16px}.login-story .brand-mark{width:30px;height:34px;font-size:19px}.login-card h2{font-size:22px}th,td{padding:12px 9px}.page-head p{font-size:12px}.form-actions{flex-wrap:wrap}.password-shell{margin-top:20px}}

.request-items td:first-child{min-width:160px}.request-items td:nth-child(2){min-width:70px}.request-items.with-supply{min-width:560px}

.product-editor select{max-width:100%;text-overflow:ellipsis}.product-editor .details{margin-top:12px}.product-editor [hidden]{display:none}.order-data textarea{font-size:12px;white-space:pre;overflow:auto}.order-data .actions{flex-wrap:wrap}.product-master{min-width:720px}.ordered-product{color:var(--green);margin-top:8px}

.product-selection{margin:20px 0}.product-selection summary{cursor:pointer;font-size:16px;font-weight:700;padding:12px 0}[hidden]{display:none!important}

.dialog-notice{position:sticky;top:0;z-index:3;background:var(--dark);color:white;padding:12px 16px;border-radius:8px;margin-bottom:12px;white-space:pre-wrap}.dialog-notice.error{background:#873f37}

.product-assignment{align-items:end;margin-bottom:12px}.product-assignment>div{min-width:0}.product-assignment select,.request-product select{max-width:100%;text-overflow:ellipsis}.request-product small{display:block;margin-top:8px;line-height:1.7}.product-master td{vertical-align:top}.product-master td:first-child strong{display:block}
