:root{--bg: #eef2ef;--ink: #1c2420;--muted: #5c675f;--line: #d5cfc4;--card: #fffcf7;--accent: #2f5d50;--accent-soft: #e4efe9;--danger: #9b3b2e;--sidebar: #1f3d34;--sidebar-text: #d7e6df;font-family:Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;color:var(--ink);background:var(--bg);line-height:1.45}*{box-sizing:border-box}body{margin:0;min-height:100vh}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:16px}.btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--accent);background:var(--accent);color:#fff;padding:8px 14px;border-radius:8px;cursor:pointer}.btn.ghost{background:transparent;color:var(--accent)}.btn.block{width:100%}.btn:disabled{opacity:.5;cursor:not-allowed}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.field input,.field select,.field textarea{border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:#fff}.row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.table{width:100%;border-collapse:collapse;font-size:14px}.table th,.table td{border-bottom:1px solid var(--line);padding:10px 8px;text-align:left;white-space:nowrap}.table tbody tr{cursor:pointer}.table tbody tr:hover{background:#f5f8f5}.muted{color:var(--muted)}.err{color:var(--danger)}.tag{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:12px}.app-shell{display:flex;min-height:100vh}.sidebar{width:220px;flex-shrink:0;background:linear-gradient(180deg,#23483d 0%,var(--sidebar) 100%);color:var(--sidebar-text);display:flex;flex-direction:column;padding:20px 14px}.brand-title{font-size:18px;font-weight:700;color:#fff}.brand-sub{margin-top:4px;font-size:12px;opacity:.75}.nav{margin-top:28px;display:flex;flex-direction:column;gap:6px;flex:1}.nav-item{padding:10px 12px;border-radius:8px;color:var(--sidebar-text)}.nav-item:hover{background:#ffffff14}.nav-item.active{background:#ffffff29;color:#fff;font-weight:600}.sidebar-foot{border-top:1px solid rgba(255,255,255,.12);padding-top:14px}.user-chip{margin-bottom:10px;font-size:13px;opacity:.9}.sidebar .btn.ghost{border-color:#ffffff59;color:#fff}.main{flex:1;min-width:0;background:linear-gradient(160deg,#e8efe9,#f3f0ea 45%,#ebe4d8)}.content{max-width:1100px;margin:0 auto;padding:24px 20px 48px}.page-head{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.page-head h1{margin:0 0 4px;font-size:26px}.page-head .muted{margin:0}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:linear-gradient(160deg,#e8efe9,#f3f0ea 45%,#ebe4d8)}.login-card{width:100%;max-width:400px}.login-brand{font-size:26px;font-weight:700;margin-bottom:4px}@media (max-width: 800px){.app-shell{flex-direction:column}.sidebar{width:100%;flex-direction:row;flex-wrap:wrap;align-items:center;gap:12px}.nav{margin-top:0;flex-direction:row;flex-wrap:wrap;flex:1}.sidebar-foot{border-top:none;padding-top:0;display:flex;gap:10px;align-items:center}}.content.landscape{max-width:1400px}.sticky-bar{position:sticky;top:0;z-index:5;background:linear-gradient(160deg,#e8efe9,#f3f0ea);padding-bottom:8px}.head-card{margin-bottom:14px}.head-grid{display:grid;grid-template-columns:140px 1fr;gap:16px}.img-box img{width:140px;height:140px;object-fit:cover;border-radius:8px;border:1px solid var(--line)}.img-placeholder{width:140px;height:140px;display:flex;align-items:center;justify-content:center;border:1px dashed var(--line);border-radius:8px;color:var(--muted);background:#f7f5f0}.summary-strip{display:flex;flex-wrap:wrap;gap:18px;margin-bottom:14px;position:sticky;top:72px;z-index:4}.summary-strip b{display:block;font-size:18px;margin-top:2px}.section-card{margin-bottom:14px}.section-title{font-weight:700;margin-bottom:10px;font-size:16px}.table-scroll{overflow-x:auto}.sheet{width:100%;border-collapse:collapse;font-size:13px;min-width:720px}.sheet th,.sheet td{border:1px solid var(--line);padding:6px 8px;vertical-align:middle;white-space:nowrap}.sheet thead th{background:#e8efe9;position:sticky;top:0}.sheet input{width:100%;min-width:72px;border:1px solid transparent;border-radius:4px;padding:4px 6px;background:#fff}.sheet input:focus{border-color:var(--accent);outline:none}.sheet .num{text-align:right;font-variant-numeric:tabular-nums}.sheet .subtotal td{background:#f5f8f5;font-weight:600}.sheet .subtotal.strong td{background:#e4efe9}.sheet tbody tr{cursor:default}.sheet tbody tr:hover{background:transparent}.list-sheet tbody tr{cursor:pointer}.list-sheet tbody tr:hover{background:#f5f8f5}.thumb{width:44px;height:44px;object-fit:cover;border-radius:6px;border:1px solid var(--line)}.filter-bar{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-bottom:16px}.filter-bar .field{margin-bottom:0;min-width:120px;flex:1 1 120px;max-width:180px}.filter-actions{display:flex;gap:8px;padding-bottom:1px;flex-shrink:0}.btn.sm{padding:4px 10px;font-size:13px;border-radius:6px}.btn.ghost.danger{border-color:var(--danger);color:var(--danger)}.row-actions{white-space:nowrap}.row-actions .btn+.btn{margin-left:6px}@media (max-width: 800px){.head-grid{grid-template-columns:1fr}.filter-bar .field{max-width:none}}
