:root{--ink:#27313d;--muted:#66717e;--blue:#2167a8;--line:#d7dee5;--bg:#f2f4f6}*{box-sizing:border-box}body{margin:0;color:var(--ink);font:14px Bahnschrift,'Segoe UI',Arial,sans-serif;background:var(--bg)}[hidden]{display:none!important}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #bfc9d3;background:#fff;border-radius:3px;padding:10px 16px;font-weight:600;color:var(--ink)}button:hover{background:#edf3f9;border-color:var(--blue)}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--blue);color:white;border-color:var(--blue)}.primary:hover{background:#18538a;color:white}.text{border:0;background:transparent;padding:12px 0;color:var(--blue);font-size:13px}.muted{color:var(--muted);line-height:1.5}.eyebrow{font-size:11px;font-weight:600;letter-spacing:1.2px;color:var(--muted);margin:0 0 9px}h1{font-size:26px;margin:0 0 8px;font-weight:600}h2{font-size:24px;margin:0 0 12px}h3{font-size:15px;margin:0 0 8px}p{margin:0 0 12px}label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted);margin-bottom:16px}input,select,textarea{border:1px solid #c8d1da;border-radius:3px;background:white;padding:10px;color:var(--ink);width:100%;min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #d8e8f6;border-color:var(--blue)}.login-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.brand{background:#222a34;color:white;padding:48px 65px;display:flex;flex-direction:column;justify-content:space-between}.brand img{width:min(440px,100%)}.brand h1{font-size:42px;line-height:1.2;margin-bottom:22px}.brand .eyebrow{color:#8ebade}.brand p:not(.eyebrow){color:#c1cbd5;line-height:1.7}.brand small{color:#adb9c5}.access{display:flex;align-items:center;justify-content:center;padding:40px;background:#fff}.access form{width:350px}.access label{margin-top:20px}.access button{width:100%}#loginMessage{color:#a45311;line-height:1.6}header{height:78px;background:#222a34;color:white;display:flex;align-items:center;gap:28px;padding:14px 26px;border-bottom:3px solid var(--blue)}header img{width:240px}header>span{font-size:14px;letter-spacing:.6px}.account{margin-left:auto;text-align:right}.account small{display:block;color:#b4c2d0;margin-top:4px}.header-button{background:transparent;color:white;border-color:#5e6a77;padding:8px 12px}.workspace{display:grid;grid-template-columns:215px 1fr;min-height:calc(100vh - 78px)}.sidebar{background:#fff;border-right:1px solid var(--line);padding:24px 12px;display:flex;flex-direction:column;gap:6px}.sidebar button{width:100%;text-align:left;border:0;background:transparent;font-weight:400;padding:12px 16px}.sidebar .selected{background:#e9f0f7;color:#175991;border-left:3px solid var(--blue);font-weight:600}.sidebar p{font-size:10px;color:#84919d;letter-spacing:1px;margin:30px 16px 9px}.sidebar small{margin-top:auto;padding:30px 16px 0;color:var(--muted);font-size:11px;line-height:1.8}#main{min-width:0;max-width:1480px;width:100%;margin:auto;padding:30px}.page-title{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:22px}.badge{font-size:12px;padding:7px 11px;background:#e4edf5;color:#245e8d;border-radius:3px;white-space:nowrap}.card{background:white;border:1px solid var(--line);border-radius:3px;margin-bottom:18px;padding:20px}.card-title{font-size:15px;font-weight:600;margin-bottom:18px}.fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:18px;align-items:end}.fields>button{margin-bottom:16px}.start-fields{grid-template-columns:220px 1fr 1fr}.card-actions{display:flex;gap:14px;justify-content:space-between;align-items:center;margin-top:10px}.block-title{display:flex;gap:16px;align-items:center;margin-bottom:14px}.block-title .code{font:12px Consolas,monospace;white-space:nowrap;color:var(--blue);padding:5px 8px;background:#edf3f8}.block-title strong{line-height:1.5}.block-title small{color:var(--muted);display:block;margin-top:5px}.block-title button{margin-left:auto;flex-shrink:0}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;background:#f5f7f9;border-bottom:1px solid var(--line);padding:11px;font-size:11px;font-weight:600;color:#637382}td{padding:10px;border-bottom:1px solid #e8edf1;vertical-align:middle;line-height:1.5}td input{padding:8px}td:nth-child(1){min-width:220px}td .qty{width:105px;text-align:right}td button{padding:7px 10px;font-size:12px}.row-note{font-size:11px;color:var(--muted);display:block;max-width:430px}.savebar{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:10px;align-items:center;background:#fff;border:1px solid var(--line);padding:16px;box-shadow:0 -4px 15px #2333460a;z-index:2}.savebar span{margin-right:auto;font-size:12px}.complementary{display:flex;align-items:center;justify-content:space-between;gap:20px}.notification{position:fixed;bottom:90px;right:30px;max-width:550px;background:#e9f2fa;border:1px solid #b9d0e3;border-left:4px solid var(--blue);padding:16px 20px;box-shadow:0 5px 20px #0001;line-height:1.6;z-index:8;white-space:pre-line}.notification.error{background:#fff3e7;border-color:#ebc49f;color:#85420a}.inline{display:flex;gap:12px;align-items:center;margin-bottom:16px}.list-line{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #e7edf2;padding:11px 0}.list-line button{font-size:12px;padding:6px 10px}dialog{width:min(850px,calc(100vw - 30px));border:1px solid var(--line);border-radius:4px;padding:0;max-height:calc(100vh - 40px);box-shadow:0 20px 80px #0004}dialog::backdrop{background:#23334660}.dialog-title{display:flex;align-items:center;gap:16px;background:#222a34;color:white;padding:16px 20px}.dialog-title img{width:60px;height:60px;object-fit:contain}.dialog-title h2{font-size:17px;margin:4px 0 0}.dialog-title small{color:#b8c9d8;font-size:10px;letter-spacing:1px}.icon-button{background:transparent;color:white;border:0;font-size:24px;margin-left:auto}.dialog-body{padding:24px;max-height:65vh;overflow:auto}.dialog-actions{padding:16px 24px;border-top:1px solid var(--line);text-align:right}.resource-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.resource-grid label{margin:0;flex-direction:row;align-items:center;justify-content:space-between;gap:8px}.resource-grid input{width:75px;padding:7px}.resource-group{font-size:12px;font-weight:600;margin:18px 0 10px}.empty-note{text-align:center;padding:28px;color:var(--muted)}@media(max-width:900px){.workspace{grid-template-columns:1fr}.sidebar{flex-direction:row;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:10px}.sidebar button{width:auto}.sidebar #adminNav{display:flex;flex-wrap:wrap}.sidebar p,.sidebar small{display:none}.start-fields{grid-template-columns:repeat(2,1fr)}header>span{display:none}#main{padding:20px}.savebar{flex-wrap:wrap}.resource-grid{grid-template-columns:repeat(2,1fr)}.login-layout{grid-template-columns:1fr}.brand{padding:25px;gap:25px}.brand h1{font-size:30px}.brand img{width:300px}.access{padding:30px}.brand small{display:none}}@media(max-width:550px){header{padding:12px 15px;gap:12px;height:70px}header img{width:165px}.account{font-size:12px}.start-fields,.fields{grid-template-columns:1fr;gap:0}#main{padding:15px}.card{padding:16px}.page-title h1{font-size:23px}.block-title{flex-wrap:wrap}.block-title button{margin-left:0}.savebar button{flex:1;padding:9px}.savebar span{width:100%}.card-actions,.complementary{align-items:stretch;flex-direction:column}.notification{right:15px;left:15px;bottom:110px}.resource-grid{grid-template-columns:1fr}}
