
:root{font-family:system-ui,-apple-system,sans-serif;color:#20242b;background:#f5f6f8}*{box-sizing:border-box}body{margin:0;padding:24px 12px}.shell{max-width:900px;margin:auto;background:#fff;border:1px solid #dfe3e8;border-radius:19px;padding:24px;box-shadow:0 8px 30px #14213d0b}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.brand{font-size:21px;font-weight:750}.sub,.muted{font-size:13px;color:#78828e}.search-area{background:#f2f4f7;border-radius:14px;padding:14px;margin-bottom:18px}.searchbox{display:flex;align-items:center;background:#fff;border:1px solid #dce1e7;border-radius:10px;padding:11px 14px;gap:10px}.searchbox input{border:0;padding:0;outline:none;flex:1;min-width:0}.searchbox .magnify{font-size:22px;color:#758292}.results{margin-top:10px;background:white;border:1px solid #e0e5eb;border-radius:10px;max-height:310px;overflow:auto}.result{display:flex;width:100%;padding:10px;gap:10px;border:0;background:white;text-align:left;cursor:pointer;border-bottom:1px solid #eee}.result:hover{background:#f2f6fc}.result small{display:block;color:#7b8490}.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tile{min-height:112px;border:1px solid #e0e4e9;border-radius:13px;background:white;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;cursor:pointer;font:inherit;font-weight:650}.tile:hover{background:#f2f6fc}.ico{font-size:27px}.primary{width:100%;margin-top:17px;padding:16px;border:0;border-radius:12px;background:#1a5599;color:#fff;font:inherit;font-weight:750;cursor:pointer}.panel{margin-top:18px;border:1px solid #e0e4e9;border-radius:12px;padding:18px}.panel h2{font-size:18px;margin:0 0 14px}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.toolbar input{flex:1;min-width:180px}input,select,textarea{font:inherit;border:1px solid #cbd3dc;border-radius:8px;padding:10px;max-width:100%;background:#fff}input[type=number]{width:100px}button{cursor:pointer}button.small{border:1px solid #b9c8da;background:#eef3f9;color:#193c63;border-radius:8px;padding:9px 12px;font:inherit;font-size:13px}button.danger{color:#9c2d2d;background:#fff1f1;border-color:#e3b5b5}.list{display:grid;gap:7px}.item{border:1px solid #e6e9ee;border-radius:9px;padding:10px 12px;display:flex;justify-content:space-between;gap:10px;align-items:center}.item strong{font-size:14px}.item small{display:block;color:#7a8390;font-size:12px;margin-top:4px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.field{display:flex;flex-direction:column;gap:5px;font-size:13px}.field input,.field select,.field textarea{width:100%}.wide{grid-column:1/-1}.tablewrap{overflow-x:auto}table{border-collapse:collapse;width:100%}td,th{padding:8px;border-bottom:1px solid #e8edf2;text-align:left;font-size:13px}th{background:#f4f6f9}.hidden{display:none!important}.note{background:#f3f6fa;padding:11px;border-radius:8px;color:#526275;font-size:13px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.actions button{padding:10px 13px;border:1px solid #b9c8da;border-radius:8px;background:#eef3f9;color:#193c63}.actions .save{background:#1a5599;color:white;border-color:#1a5599}.tiny{font-size:12px;color:#667383}.total{text-align:right;font-size:17px;font-weight:700;margin-top:12px}.empty{color:#718091;font-size:13px;padding:12px}.link{border:0;background:transparent;color:#1a5599;text-decoration:underline;padding:0}.banner{margin-top:18px;text-align:center;font-size:12px;color:#7b8490}@media(max-width:520px){body{padding:10px}.shell{padding:15px}.tile{min-height:96px}.fields{grid-template-columns:1fr}.wide{grid-column:1}.item{align-items:flex-start}.toolbar{align-items:stretch}}
@media print{body{background:white;padding:0}.shell{max-width:none;box-shadow:none;border:0;padding:0}.top,.search-area,.tiles,.primary,.banner,.actions,.toolbar,.noprint{display:none!important}.panel{border:0;margin:0;padding:0}input,select,textarea{border:0!important;appearance:none;padding:0}.printhead{display:block!important}th{background:#eee!important}}
.header-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.top{gap:12px}#status{margin-bottom:14px}.error{background:#fff0ee;color:#8b2722}.order-table{min-width:730px}.line-name{min-width:210px;width:100%}.order-table input[type=number]{width:100px}.order-table td:nth-child(5){white-space:nowrap}.item>div,.item>span{min-width:0;overflow-wrap:anywhere}.item small{white-space:pre-line}.mobile-hint{display:none}button:disabled{opacity:.6;cursor:wait}button,input,select,textarea{min-height:40px}a{color:#1a5599}#historyDetail{margin-top:12px}.login-page{display:grid;min-height:90vh;place-items:center}.login-form{background:#fff;padding:30px;border-radius:16px;width:min(360px,92vw)}.login-form .field{margin-top:14px}.login-form h1{font-size:24px}.login-form input{width:100%}#eventClientSelect{max-width:100%}select{min-width:0}.tablewrap:focus{outline:2px solid #1a5599}
@media(max-width:520px){.top{flex-wrap:wrap}.header-actions{justify-content:flex-start;width:100%}.header-actions #account{margin-right:auto}.mobile-hint{display:block}.actions button{flex:1 1 42%;min-height:44px}input,select,textarea{font-size:16px}button.small{min-height:44px}.toolbar input{min-width:0;width:100%;flex-basis:100%}.item{flex-wrap:wrap}.order-table .small{min-width:44px}.searchbox{padding:10px;gap:6px}.brand{font-size:21px}}
#status{position:sticky;top:8px;z-index:5;box-shadow:0 2px 8px #14213d14}
.stock-line{display:flex;align-items:center;gap:5px;font-size:12px;width:max-content;min-height:34px}
.stock-line input{min-height:0;width:18px;height:18px}
.order-filters{margin-bottom:12px}
@media(max-width:520px){.stock-line{min-height:44px}}

.item.order-to-check { background: #fff7e8; border-left: 4px solid #ad650d; }
.item.order-to-check small { color: #613706; font-weight: bold; }
