:root{font-family:Inter,Arial,Noto Sans KR,sans-serif;color:#232621;background:#f6f7f4}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:0;border-radius:8px;padding:11px 16px;background:#243a31;color:#fff}button:disabled{opacity:.45;cursor:not-allowed}.secondary{background:#e9eee9;color:#253b32}.shell{display:flex;min-height:100vh}aside{width:240px;background:#1d3028;color:#fff;padding:32px 18px;display:flex;flex-direction:column;gap:8px;flex-shrink:0}aside h1{font-size:27px;letter-spacing:.13em;margin:0}aside small{color:#b2c3b8}nav{margin-top:42px;display:grid;gap:8px}nav button{text-align:left;background:transparent;color:#d4e0d8}nav button.selected,nav button:hover{background:#405c4d}.logout{margin-top:auto;background:#405c4d}.content{padding:32px;max-width:1450px;width:100%;margin:auto;align-self:stretch}header{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}header small{color:#7e8b82;letter-spacing:.13em}h2{font-size:28px;margin:8px 0 0}h3{margin:0 0 16px}p{line-height:1.7}section,.stats>div{background:#fff;border:1px solid #e2e7e2;border-radius:14px;padding:24px;margin-bottom:18px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stats>div{display:grid;gap:12px}.stats small,.muted{color:#77837b}.stats strong{font-size:26px}.tablewrap{overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:780px}th,td{text-align:left;padding:12px;border-bottom:1px solid #e8ece8;font-size:13px}th{background:#f7f9f6;color:#6c796f;white-space:nowrap}td input{margin-top:8px}input,select{background:#fff;border:1px solid #cfd8d1;border-radius:7px;padding:10px;color:#24352b;max-width:100%}input.numeric{width:85px}.formrow{display:flex;flex-wrap:wrap;gap:16px;margin:18px 0}.formrow label{display:grid;gap:7px}.formrow input{width:180px}.total{display:flex;justify-content:space-between;align-items:center;background:#eff3ef;padding:22px;border-radius:10px;margin-top:20px}.total strong{font-size:24px}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.warning,.red{color:#b34d3b}.alert,.notice{border-radius:9px;padding:12px 16px;margin-bottom:14px;background:#fff0eb;color:#923b2a;display:flex;justify-content:space-between}.notice{background:#e8f1e9;color:#31573b}.alert button,.notice button{padding:3px 8px;background:transparent;color:inherit}.authbox{width:min(420px,92vw);margin:12vh auto;background:#fff;border-radius:14px;padding:34px;border:1px solid #e2e7e2}.authbox h1{letter-spacing:.13em}.authbox form{display:grid;gap:12px}.authbox input{width:100%}.error{color:#b34d3b}.history{border-top:1px solid #e2e7e2;padding:16px 0}.history>div{display:flex;justify-content:space-between}.history p{font-size:13px;color:#69756c}footer{color:#a1aaa3;font-size:12px;padding:30px 0}.user{font-size:12px;color:#829087}@media(max-width:850px){.shell{display:block}aside{width:100%;padding:18px;display:block}aside h1{font-size:22px}nav{margin-top:16px;display:flex;overflow-x:auto;gap:4px}nav button{white-space:nowrap;font-size:12px}.logout{display:none}.content{padding:18px}header{align-items:flex-start}.user{display:none}.stats{grid-template-columns:repeat(2,1fr)}.stats strong{font-size:20px}section{padding:16px}.total strong{font-size:20px}}.formrow input.period-input{width:270px;max-width:100%}.product-actions,.save-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:28px}.compact-button{font-size:13px;padding:8px 12px;border-radius:7px;min-height:34px}.product-actions .secondary{border:1px solid #d7e1d9}.product-tablewrap{width:100%;overflow-x:auto}.product-table{min-width:0;width:100%;table-layout:fixed}.product-table th,.product-table td{padding:9px 4px;font-size:11px;vertical-align:middle;overflow-wrap:anywhere}.product-table th:first-child,.product-table td:first-child{width:23%;padding-left:8px}.product-table th:nth-child(2),.product-table td:nth-child(2){width:7%}.product-table th:nth-child(3),.product-table td:nth-child(3){width:9%}.product-table th:nth-child(4),.product-table td:nth-child(4){width:9%}.product-table th:nth-child(5),.product-table td:nth-child(5){width:8%}.product-table th:nth-child(6),.product-table td:nth-child(6){width:8%}.product-table th:nth-child(7),.product-table td:nth-child(7){width:8%}.product-table th:nth-child(8),.product-table td:nth-child(8){width:8%}.product-table th:nth-child(9),.product-table td:nth-child(9){width:8%}.product-table th:nth-child(10),.product-table td:nth-child(10){width:6%}.product-table th:nth-child(11),.product-table td:nth-child(11){width:6%}.product-table td input,.product-table td select{display:block;margin:0;width:100%;min-width:0;padding:7px 4px;font-size:12px}.product-table td input.numeric{width:100%}.product-table td:nth-child(9){white-space:nowrap;font-size:11px}.product-table th{white-space:normal;line-height:1.3}@media(max-width:1150px){.content{padding:18px}.product-table th,.product-table td{font-size:10px;padding:7px 2px}.product-table td input,.product-table td select{font-size:11px;padding:6px 2px}}@media(max-width:760px){.product-table{min-width:920px}.product-tablewrap{overflow-x:auto}}.delivery-status{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin-top:12px;padding:12px 16px;border:1px solid #d4dcd5;border-radius:8px;font-size:14px}.delivery-status.eligible{background:#f0f7f0;color:#24573b}.delivery-status.ineligible{background:#faf6ed;color:#765d30}.history-controls{display:flex;align-items:center;gap:12px}.history-controls .delete-order{padding:5px 10px;font-size:12px;min-height:30px}@media(max-width:640px){.history-controls{flex-wrap:wrap;justify-content:flex-end}}.frieren-roamer{position:fixed;bottom:14px;width:112px;height:135px;pointer-events:none;z-index:15;filter:drop-shadow(0 2px 1px rgba(0,0,0,.1));transition:left 125ms linear}.frieren-roamer .frieren-character{display:block;width:112px;height:135px;object-fit:contain;image-rendering:pixelated;-webkit-user-select:none;user-select:none;transform-origin:center bottom}.frieren-phase-magic .frieren-character{animation:frieren-cast .65s ease-in-out infinite alternate}.frieren-conjured-bread{position:absolute;width:36px;height:30px;object-fit:contain;image-rendering:pixelated;right:-12px;top:5px;animation:frieren-bread-appear .7s ease-out both}.frieren-sparkles{position:absolute;right:-14px;top:-7px;color:#d69b38;font-size:22px;text-shadow:0 0 7px #f7d98e;animation:frieren-sparkle .85s ease-in-out infinite alternate}@keyframes frieren-cast{0%{translate:0 0}to{translate:0 -3px}}@keyframes frieren-bread-appear{0%{opacity:0;transform:translateY(16px) scale(.3)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes frieren-sparkle{0%{opacity:.3;transform:scale(.8)}to{opacity:1;transform:scale(1.15)}}@media(max-width:760px){.frieren-roamer{width:72px;height:90px;bottom:6px}.frieren-roamer .frieren-character{width:72px;height:90px}.frieren-conjured-bread{width:24px;height:20px}}@media(prefers-reduced-motion:reduce){.frieren-roamer{transition:none}.frieren-phase-magic .frieren-character,.frieren-conjured-bread,.frieren-sparkles{animation:none}}
