*{box-sizing:border-box}body{margin:0;background:#f6f7f9;color:#20232b;font:15px system-ui,sans-serif;display:flex}aside{width:250px;background:white;border-right:1px solid #e5e7eb;min-height:100vh;padding:22px 16px;position:fixed}h2{font-size:19px;margin:8px 8px 32px;color:#20283b}nav button{display:block;width:100%;text-align:left;border:0;background:none;padding:13px;border-radius:8px;color:#374151;font-size:15px;cursor:pointer}nav button.active{background:#4b65bd;color:white}.sidefoot{position:absolute;bottom:24px;color:#8b91a0;font-size:13px}main{margin-left:250px;width:calc(100% - 250px)}header{height:68px;background:white;border-bottom:1px solid #e5e7eb;padding:22px 32px;color:#818897}header b{color:#333}header button{display:none}.right{float:right}section{padding:38px;max-width:1600px;margin:auto}small{color:#526bc3;font-weight:700;letter-spacing:.1em}h1{font-size:27px;margin:8px 0}p{color:#7a8291;margin:0 0 26px}.card{background:white;border:1px solid #e4e6eb;border-radius:12px;box-shadow:0 2px 6px #0000000a;padding:24px;margin-bottom:20px}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px}input,select,button{font:inherit}input,select{border:1px solid #dce0e7;border-radius:7px;padding:10px;background:white;color:#20232b;color-scheme:light;max-width:100%}select option{color:#20232b;background:#fff}input::placeholder{color:#687386;opacity:1}input[type=number]{width:105px}button.action{background:#4b65bd;color:white;border:0;border-radius:7px;padding:11px 16px;cursor:pointer}button.secondary{background:white;color:#374151;border:1px solid #dce0e7;border-radius:7px;padding:10px;cursor:pointer}button:disabled{opacity:.45;cursor:default}table{border-collapse:collapse;width:100%;min-width:700px}th{text-align:left;background:#f7f8fa;color:#555f70;font-size:13px}td,th{border-bottom:1px solid #e9ebef;padding:14px 12px}td{color:#444d5c}.wrap{overflow:auto}.badge{background:#edf8ef;color:#258143;padding:5px 9px;border-radius:6px;font-size:13px}.note{background:#f1f4fd;color:#455a9d;border-radius:8px;padding:14px;line-height:1.5}.empty{padding:35px;text-align:center;color:#8b91a0}.error{color:#b42318}.links a{display:inline-block;margin:5px;color:#4b65bd}label{display:block;margin:12px 0;color:#526070}label input{display:block;margin-top:6px;width:500px}@media(max-width:760px){aside{display:none;z-index:4;box-shadow:0 0 0 100vw #0006}body.open aside{display:block}main{width:100%;margin:0}header button{display:inline;border:0;background:none;margin-right:12px}section{padding:20px}.card{padding:15px}h1{font-size:23px}}
#print-sheet{display:none}
header .right button{display:inline-block}header .right form{display:inline-block}@media(max-width:760px){body:not(.open)>aside{display:none}body.open>aside{display:flex}}
.saving::after{content:'';position:fixed;inset:0;z-index:100;background:#ffffff66;cursor:wait}#sync-status{position:fixed;top:16px;left:50%;transform:translateX(-50%);z-index:101;background:#243863;color:white;border-radius:8px;padding:12px 24px}header{height:auto;min-height:68px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}header .right{margin-left:auto;float:none;display:flex;align-items:center;gap:8px;font-size:12px}header form{margin:0}.login-body{display:block;background:#f4f6fa}.login-body main.login-panel{margin:15vh auto 0;width:min(460px,90%);background:white;border:1px solid #e0e4ed;border-radius:14px;padding:35px;box-shadow:0 10px 40px #23345412}.login-panel p{line-height:1.6;margin:20px 0}.login-button{display:inline-block;background:#4b65bd;color:white;text-decoration:none;border-radius:8px;padding:12px 18px}.account-row{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e5e7eb;padding:12px 0;gap:15px}#add-account{margin-bottom:24px}#add-account input{width:min(480px,100%)}@media(max-width:760px){header .right{flex-wrap:wrap;margin:0}header .right>span{width:100%}}
#store-note-text{width:100%;resize:vertical;border:1px solid #dce0e7;border-radius:8px;padding:12px;font:inherit;color:#20232b;background:#fff}#store-note-dialog .allocation-modal{max-width:600px}.clickable-row button{position:relative;z-index:1}
aside{height:100vh;min-height:0;display:flex;flex-direction:column;overflow-y:auto}.sidebar-programs{margin-top:auto;padding-top:24px;border-top:1px solid #e8ebf1}.sidebar-programs>small{display:block;font-size:10px;letter-spacing:.08em;margin:0 8px 10px;color:#8993a5}.sidebar-programs a{display:flex;align-items:center;gap:10px;border:1px solid #e2e7f0;border-radius:9px;text-decoration:none;padding:10px;margin-bottom:8px;color:#25314a}.sidebar-programs a:hover{background:#f3f5fb}.sidebar-programs a>span{background:#e8f4ec;color:#278258;padding:7px 10px;border-radius:7px}.sidebar-programs a strong,.sidebar-programs a small{display:block}.sidebar-programs a strong{font-size:13px}.sidebar-programs a small{font-size:11px;letter-spacing:0;color:#8490a3;margin-top:2px;font-weight:400}
.matrix-delivered{color:#257642;background:#eef9f0;border:1px solid #c7ebcf;border-radius:6px;padding:5px 8px;font-size:13px;font-weight:600}.matrix-missing{color:#9a5413;background:#fff6e7;border:1px solid #f3d6a8;border-radius:6px;padding:5px 8px;font-size:13px;font-weight:600}
.product-options{max-height:min(60vh,430px);overflow:auto}.product-matrix{margin-top:18px;max-height:65vh;overflow:auto}.product-matrix table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}.product-matrix th,.product-matrix td{white-space:nowrap;min-width:125px}.product-matrix th{position:sticky;top:0;z-index:2}.product-matrix th:first-child,.product-matrix td:first-child{position:sticky;left:0;z-index:1;min-width:280px;max-width:350px;white-space:normal;background:#fff;box-shadow:2px 0 4px #0000000a}.product-matrix th:first-child{z-index:3;background:#f7f8fa}.product-matrix [data-store-col][hidden]{display:none}
.clickable-row{cursor:pointer}.clickable-row:hover td{background:#f1f4fb}.clickable-row:focus-within td{background:#f1f4fb}
.clickable-row:focus{outline:2px solid #4b65bd;outline-offset:-2px}
#print-preview{position:fixed;inset:0;z-index:50;overflow:auto;background:#e9edf2;color:#111;padding:20px}.print-preview-bar{max-width:850px;margin:0 auto 18px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.print-preview-bar span{font-size:13px;color:#536070;flex:1}.print-preview-page{max-width:800px;min-height:70vh;margin:auto;background:white;padding:35px;box-shadow:0 3px 20px #0002;color:#000}.print-preview-page h1{font-size:22px}.print-preview-page p{color:#333;line-height:1.5}.print-preview-page table{min-width:0}.print-preview-page td,.print-preview-page th{border:1px solid #aaa;padding:7px;color:#111}
.check-all-label{display:flex;align-items:center;gap:8px;margin:0;white-space:nowrap;cursor:pointer}.check-all-label input[type=checkbox]{display:inline-block;flex:0 0 auto;width:16px;height:16px;margin:0;accent-color:#4b65bd}
.view-menu{position:relative;margin-left:auto}.view-menu summary{list-style:none;cursor:pointer;border:1px solid #dce0e7;background:#f8f9fb;color:#273247;padding:10px 16px;border-radius:7px}.view-menu summary::-webkit-details-marker{display:none}.view-options{position:absolute;right:0;top:calc(100% + 6px);z-index:5;min-width:190px;background:#fff;border:1px solid #dce0e7;border-radius:8px;box-shadow:0 8px 24px #15223822;padding:12px}.view-options strong{display:block;padding:4px 4px 10px;border-bottom:1px solid #e5e7eb}.view-options label{display:flex;align-items:center;gap:8px;margin:0;padding:10px 4px;color:#20232b;cursor:pointer}.view-options input{margin:0;accent-color:#4b65bd} [data-column][hidden]{display:none}
.view-options{width:210px;min-width:0;padding:8px}.view-options strong{padding:8px 10px 12px;font-size:14px}.view-options label{justify-content:flex-start;gap:10px;padding:10px;border-radius:6px;font-size:14px;white-space:nowrap}.view-options label:hover{background:#f2f4f8}.view-options label input[type=checkbox]{display:inline-block;flex:0 0 auto;width:16px;height:16px;margin:0;padding:0;appearance:auto}
.modal-backdrop{position:fixed;inset:0;z-index:20;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;padding:24px}.allocation-modal{background:#fff;border-radius:12px;width:min(850px,100%);max-height:calc(100vh - 48px);display:flex;flex-direction:column;box-shadow:0 20px 70px #0f172a40}.modal-header{display:flex;justify-content:space-between;gap:20px;padding:24px 28px 14px;border-bottom:1px solid #e5e7eb}.modal-header h2{margin:8px 0;font-size:21px}.modal-header p{margin:0;font-size:13px}.modal-close{border:0;background:none;color:#526070;font-size:30px;line-height:1;cursor:pointer;align-self:flex-start}.modal-body{padding:20px 28px;overflow:auto}.modal-body p{margin-bottom:16px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 28px;border-top:1px solid #e5e7eb;flex-wrap:wrap}.allocation-table{min-width:0;margin-top:12px}.allocation-table tbody tr:nth-child(even){background:#f2f4f8}.allocation-table td:first-child{font-weight:600}.allocation-table label{margin:0}.allocation-table td,.allocation-table th{padding:9px 14px}.allocation-table input{width:110px}.modal-body .error{margin-top:10px}@media(max-width:600px){.modal-backdrop{padding:8px}.allocation-modal{max-height:calc(100vh - 16px)}.modal-header,.modal-body,.modal-footer{padding:16px}.modal-footer{justify-content:stretch}.modal-footer button{flex:1}}
@media print{ @page{size:A4;margin:14mm}body{display:block;background:#fff;color:#000}body>aside,body>main,#print-preview{display:none!important}#print-sheet{display:block;color:#000;font:12px Arial,sans-serif}#print-sheet h1{font-size:20px;margin:0 0 12px}#print-sheet p{color:#000;margin:8px 0;line-height:1.45}#print-sheet table{width:100%;min-width:0;border-collapse:collapse}#print-sheet th,#print-sheet td{border:1px solid #999;padding:5px 8px;color:#000}#print-sheet th{background:#eee}#print-sheet tr{break-inside:avoid}}
