*{box-sizing:border-box}body{font:15px system-ui,-apple-system,Segoe UI,sans-serif;background:#f3f6f9;color:#193047;margin:0}header{background:#103957;color:white;padding:15px max(18px,calc((100vw - 1150px)/2));display:flex;align-items:center;justify-content:space-between;gap:10px}.brand{display:flex;align-items:center;gap:15px}.brand img{max-width:480px;max-height:150px;background:white;border-radius:5px}.brand h1{font-size:22px;margin:0}small,.muted{color:#708393}header small{color:#c3dce9}main{max-width:1150px;margin:25px auto;padding:0 16px}.panel{background:white;padding:22px;border-radius:12px;box-shadow:0 2px 12px #18324b13;margin:18px 0}#auth{max-width:440px;margin:60px auto}label{display:block;font-weight:600;margin:10px 0}input,select,textarea{width:100%;font:inherit;padding:10px;border:1px solid #cbd6df;border-radius:7px;background:white;color:#193047;margin-top:5px}button{background:#087c9b;color:white;border:0;padding:10px 16px;border-radius:7px;cursor:pointer;font:inherit;font-weight:600}button:hover{filter:brightness(.94)}button.secondary{background:#e6eef4;color:#173d58}button.danger{background:#a73535}nav{display:flex;flex-wrap:wrap;gap:8px}nav button{background:#dfe9f0;color:#173d58}nav button.selected{background:#087c9b;color:white}.hidden{display:none!important}.toolbar,.actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px}.scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:670px}th,td{text-align:left;border-bottom:1px solid #e0e8ed;padding:8px}th{background:#edf4f7}td input,td select{min-width:75px;margin:0}td .desc{min-width:200px}.record{background:white;border:1px solid #dce6ed;padding:14px;margin:9px 0;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:15px}.record p{margin:4px 0;color:#627a8b}.tag{display:inline-block;background:#e4f4f8;border-radius:20px;padding:3px 8px;font-size:12px}#totals{text-align:right;font-size:18px;font-weight:700;padding:16px}#notice{position:fixed;bottom:15px;right:15px;background:#193c52;color:white;padding:12px 18px;border-radius:8px;display:none;max-width:90vw}#marketResult{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}h2{margin-top:0}@media(max-width:640px){.grid{grid-template-columns:1fr}.brand img{max-width:90px}.brand h1{font-size:17px}.record{align-items:flex-start;flex-direction:column}}@media print{header,nav,#records,#users,#market,#audit,#welcome,.toolbar,.actions,#addItem,#notice,td:last-child,th:last-child{display:none!important}body{background:white}.panel{box-shadow:none;padding:0}main{margin:0}#editor{display:block!important}input,textarea,select{border:0;padding:2px;appearance:none}#totals{display:block!important}}
