:root{color:#47372d;font-synthesis:none;background:#fff;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;color:#805334;background:#fff;border:1px solid #eadccf;border-radius:7px;padding:9px 15px}button.primary{color:#fff;background:#9f6c49;border-color:#9f6c49}button:disabled{opacity:.5;cursor:wait}button:hover:not(:disabled){filter:brightness(.96)}input,select,textarea{color:#47372d;background:#fff;border:1px solid #dfd7d0;border-radius:6px;width:100%;padding:10px}input:focus,textarea:focus,select:focus{outline-offset:1px;outline:2px solid #d7b99f}label{gap:8px;font-size:13px;display:grid}small,.muted{color:#897a70}aside{background:#fff;border-right:1px solid #eee6df;width:220px;padding:26px 18px;position:fixed;inset:0 auto 0 0;overflow:auto}.brand{align-items:center;gap:10px;margin-bottom:32px;display:flex}.brand img{border-radius:8px;width:44px}.brand strong{font-size:17px;display:block}.brand small{letter-spacing:2px;font-size:9px}nav button{text-align:left;color:#706258;border:0;width:100%;margin:4px 0;padding:12px 14px;display:block}nav button.active{color:#805334;background:#f5e8dc;font-weight:600}main{margin-left:220px}header{border-bottom:1px solid #eee6df;justify-content:space-between;align-items:center;height:72px;padding:0 36px;display:flex}section{padding:32px 36px}.heading{justify-content:space-between;align-items:center;margin-bottom:26px;display:flex}h1{margin:0 0 8px;font-size:24px;font-weight:600}h2{font-size:18px;font-weight:600}p{line-height:1.7}.panel{border:1px solid #eadccf;border-radius:10px;margin-bottom:20px;padding:24px}.toolbar{flex-wrap:wrap;align-items:center;gap:10px;margin:18px 0;display:flex}.toolbar input,.toolbar select{width:auto;max-width:240px}.table-wrap{border:1px solid #eee6df;border-radius:9px;overflow:auto}table{border-collapse:collapse;white-space:nowrap;width:100%;font-size:13px}th,td{text-align:left;border-bottom:1px solid #f0e9e3;padding:15px 18px}th{color:#8a776a;background:#faf8f6;font-weight:500}tr:last-child td{border-bottom:0}td button{margin-right:6px;padding:6px 10px;font-size:12px}.empty{text-align:center;color:#8a776a;padding:70px}.grid{grid-template-columns:repeat(3,1fr);gap:20px;display:grid}.stat{color:#805334;margin-top:14px;font-size:32px}.badge{color:#805334;background:#f5e8dc;border-radius:4px;padding:4px 9px}.error{color:#9d3c30;background:#fff3f0;border-radius:6px;margin:14px 0;padding:12px 16px}.success{color:#376945;background:#edf5ef;border-radius:6px;padding:12px}.overlay{z-index:10;background:#30221855;justify-content:center;align-items:center;padding:30px;display:flex;position:fixed;inset:0}.dialog{background:#fff;border-radius:12px;width:660px;max-height:90vh;padding:28px;overflow:auto;box-shadow:0 24px 80px #30221833}.form-grid{grid-template-columns:1fr 1fr;gap:18px;display:grid}.actions{justify-content:flex-end;gap:10px;margin-top:26px;display:flex}.login{border:1px solid #eadccf;border-radius:12px;max-width:420px;margin:12vh auto;padding:34px}.login form{gap:18px;display:grid}.login .brand{justify-content:center}.detail{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8}@media (width<=850px){aside{width:170px;padding:18px 10px}main{margin-left:170px}section,header{padding:20px}.grid,.form-grid{grid-template-columns:1fr}}.search-picker,.customer-lookup{width:100%;min-width:0;position:relative}.search-picker-input{position:relative}.search-picker-input input{padding-right:42px}.clear-choice{color:#8a776a;background:#f6f0ea;border:0;border-radius:50%;width:26px;height:26px;padding:0;font-size:21px;line-height:22px;position:absolute;top:50%;right:8px;transform:translateY(-50%)}.clear-choice:hover{background:#eadccf}.option-popover{z-index:30;background:#fff;border:1px solid #ddc9b9;border-radius:9px;max-height:276px;padding:6px;position:absolute;top:calc(100% + 6px);left:0;right:0;overflow:auto;box-shadow:0 16px 34px #47372d2e}.option-popover button{text-align:left;color:#47372d;background:#fff;border:0;border-radius:6px;gap:3px;width:100%;padding:11px 12px;display:grid}.option-popover button:hover,.option-popover button.active{color:#805334;background:#f8eee6}.option-popover small{font-size:12px}.option-popover p{color:#897a70;margin:8px 10px;font-size:13px}.choice-pills{flex-wrap:wrap;gap:8px;display:flex}.choice-pills button{color:#67574d;background:#fff;border-radius:7px;min-width:88px;padding:10px 14px}.choice-pills button.selected{color:#805334;background:#f7e9dd;border-color:#9f6c49;font-weight:600;box-shadow:inset 0 0 0 1px #9f6c49}.addon-picker{background:#fff;border:1px solid #dfd7d0;border-radius:8px;padding:12px}.addon-summary{color:#6c5b4f;margin:0 0 10px;font-size:13px}.addon-summary strong{color:#805334}.addon-options{grid-template-columns:1fr;gap:8px;max-height:244px;padding-right:2px;display:grid;overflow:auto}.addon-options>button{text-align:left;background:#fff;border:1px solid #e6ddd6;border-radius:7px;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;padding:11px;display:grid}.addon-options>button:hover{background:#fffbf7;border-color:#c79c7d}.addon-options>button.selected{background:#fdf5ee;border-color:#9f6c49;box-shadow:inset 0 0 0 1px #9f6c49}.addon-options strong,.addon-options small{display:block}.addon-options small{color:#897a70;margin-top:3px;font-size:12px;line-height:1.4}.addon-options b{color:#805334;white-space:nowrap;font-size:13px}.checkmark{color:#805334;border:1px solid #cdbbab;border-radius:50%;place-items:center;width:23px;height:23px;font-weight:700;display:grid}.selected .checkmark{color:#fff;background:#9f6c49;border-color:#9f6c49}.toolbar .customer-lookup{width:min(360px,100%)}.toolbar .customer-lookup input{width:100%;max-width:none}:is(.form-grid>label:has(.search-picker),.form-grid>label:has(.addon-picker)){min-width:0}.form-grid>label:has(.addon-picker){grid-column:span 2}@media (width<=850px){.form-grid>label:has(.addon-picker){grid-column:span 1}.option-popover{max-height:45vh;position:fixed;inset:auto 20px 20px}.addon-options{max-height:none}}button.danger{color:#fff;background:#b42318;border-color:#b42318}button.danger:hover{background:#8c1d18}.confirm-copy{color:#6c5140;margin:22px 24px 0;line-height:1.7}.dialog .confirm-copy+.form-grid{padding-top:18px}
