:root{font-family:'Malgun Gothic','Apple SD Gothic Neo',sans-serif;font-size:16px;color:#1b3045;background:#f3f6fa;--primary:#155b8e;--nav:#12334f;--line:#dce4ee;--muted:#52677a}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{border:0;border-radius:6px;padding:11px 16px;background:var(--primary);color:white;cursor:pointer;font-weight:600}button:hover{filter:brightness(.94)}button:disabled{opacity:.55;cursor:wait}button.plain,.secondary{background:#eaf0f6;color:#214565}.danger{background:#a02f3b}a{color:#126193;text-underline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #47a3df;outline-offset:2px}input,select,textarea{padding:11px 12px;background:white;color:#20374a;border:1px solid #b9cbdc;border-radius:5px;width:100%;min-width:0}input[type=checkbox]{width:19px;height:19px;accent-color:var(--primary)}input:disabled{background:#edf1f5}input[type=number]{text-align:right}select{appearance:none;padding-right:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='none' stroke='%23334' d='m1 1 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}label{display:flex;flex-direction:column;gap:7px;font-size:14px;margin-bottom:15px;font-weight:600}label small{font-size:13px;font-weight:400;color:var(--muted)}.check{flex-direction:row;align-items:flex-start;gap:10px;line-height:1.6;padding:13px;background:#eaf2f8;border-radius:6px}.check input{flex-shrink:0;margin-top:2px}.auth{display:grid;place-items:center;min-height:100vh;padding:24px;background:linear-gradient(135deg,#143956 0%,#205d86 45%,#eaf2f8 45%)}.login{width:440px;max-width:100%;padding:36px!important}.login h1{font-size:23px;margin:25px 0 10px}.login button[type=submit]{width:100%;margin:8px 0 20px}.login small{color:var(--muted)}#authError{color:#a12632;font-size:14px}.logo{display:flex;gap:14px;align-items:center;font-size:25px;font-weight:800;letter-spacing:1px}.logo span{font-size:18px;letter-spacing:0;line-height:1.5}.logo small{font-size:13px;font-weight:400}aside{background:var(--nav);color:white;width:230px;height:100vh;position:fixed;display:flex;flex-direction:column;padding:28px 17px}aside .logo{padding:0 9px 30px}nav{display:flex;flex-direction:column;gap:8px}nav button{text-align:left;background:transparent;color:#cedde9;font-size:16px;padding:14px;border-radius:6px}nav button.active{background:#29638e;color:white}.asideFoot{margin-top:auto;color:#a9c1d3;font-size:14px;line-height:1.9;padding:16px}.workspace{margin-left:230px}header{height:82px;background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:20px 32px}header b{font-size:20px}header small{display:block;color:var(--muted);font-size:14px;margin-top:5px}main{padding:28px 32px;max-width:1700px;margin:0 auto}.card{background:white;border:1px solid var(--line);border-radius:10px;padding:24px;margin-bottom:20px;box-shadow:0 2px 5px #132f4c04}.card h2{margin:0 0 20px;font-size:21px}.card h3{margin:24px 0 14px;font-size:17px}.bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.bar input,.bar select{max-width:280px}.bar.between{justify-content:space-between}.muted{color:var(--muted);font-size:14px;line-height:1.7}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 20px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.wide{grid-column:1/-1}.notice{border-left:4px solid #2c79ab;background:#edf5fb;padding:14px 16px;line-height:1.75;font-size:14px;margin:15px 0}.notice.warning{border-color:#bd811c;background:#fff4df}.notice.error{border-color:#b64545;background:#fff0f0}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}th,td{padding:13px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}th{background:#edf3f8;color:#3b5368;font-weight:600;white-space:nowrap}td{line-height:1.65}td input{padding:9px;min-width:85px}td select{min-width:130px}.docTitle{background:transparent;color:#155b8e;padding:0;text-align:left}.badge{display:inline-block;background:#eaf0f5;color:#3a5870;padding:3px 9px;border-radius:5px;font-size:13px;white-space:nowrap}.badge.good{background:#e5f4ed;color:#176843}.badge.warn{background:#fff0d9;color:#815408}.badge.bad{background:#ffe9e9;color:#9a2a36}.empty{text-align:center;padding:55px 15px;color:var(--muted);line-height:1.9}.totals{display:flex;justify-content:flex-end;gap:25px;padding:22px 0;font-size:17px}.totalStrong{color:#155b8e;font-weight:700}.sticky{position:sticky;bottom:12px;background:#163b58;box-shadow:0 5px 20px #12334f2c;border-radius:8px;padding:14px;z-index:5;color:white}.sticky .plain{background:#fff}.statusText{margin-right:auto;font-size:14px}.rowActions{white-space:nowrap}dialog{border:0;border-radius:12px;max-width:750px;width:calc(100% - 30px);padding:0;box-shadow:0 15px 70px #0004}dialog::backdrop{background:#122d4366}.dialogHead{display:flex;justify-content:space-between;padding:18px 24px;border-bottom:1px solid var(--line);align-items:center}#dialogContent{padding:24px;max-height:80vh;overflow:auto}#toast{position:fixed;right:24px;bottom:24px;background:#173a56;color:white;max-width:550px;line-height:1.6;padding:16px 22px;border-radius:8px;z-index:100;box-shadow:0 5px 30px #1234}.smallButton{padding:7px 11px;font-size:14px}.summary{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:22px}.summary>div{background:white;border:1px solid var(--line);border-radius:8px;padding:20px}.summary b{display:block;font-size:28px;margin-top:8px;color:#164e79}.summary span{font-size:14px;color:var(--muted)}details{margin:16px 0;border:1px solid var(--line);border-radius:7px;padding:15px}summary{cursor:pointer;font-size:16px;font-weight:600;margin:0}.templateGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.templateGrid button{padding:22px;text-align:left;background:#eaf2f8;color:#16496f;line-height:1.8}.templateGrid span{display:block;font-size:14px;font-weight:400}.cellRef{font-family:Consolas,monospace;font-size:12px;color:#60778c}.fieldSection{border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:18px}.inputTable td:nth-child(1){min-width:260px}.inputTable td:nth-child(2){min-width:130px}.mailState{margin:12px 0}.right{text-align:right}[hidden]{display:none!important}@media(max-width:1100px){aside{width:190px}.workspace{margin-left:190px}main{padding:20px}header{padding:20px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.templateGrid{grid-template-columns:1fr}}@media(max-width:700px){aside{position:static;width:auto;height:auto;padding:16px}.asideFoot{display:none}aside .logo{padding-bottom:14px}nav{flex-direction:row;overflow:auto}nav button{white-space:nowrap;padding:10px;font-size:14px}.workspace{margin:0}header{height:75px}.grid,.grid.two{grid-template-columns:1fr}.card{padding:18px}.summary{gap:8px}.summary>div{padding:12px}.summary b{font-size:22px}.totals{font-size:15px;gap:12px;flex-wrap:wrap}.sticky{bottom:4px}.sticky button{font-size:14px;padding:10px}.statusText{width:100%}main{padding:12px}#toast{left:12px;right:12px;bottom:12px}.inputTable td:first-child{min-width:210px}}

.unitSection{margin:18px 0 25px}.unitInputTable{width:100%;table-layout:fixed}.unitInputTable th:first-child{width:43%}.unitInputTable td:last-child{width:15%;color:var(--muted)}.unitInputTable input,.unitInputTable select{width:100%;min-width:100px}.unitInputTable tbody th{font-weight:500;background:#f6f9fb;white-space:normal}.unitInputTable td,.unitInputTable th{white-space:normal}.unitInputTable th:nth-child(2){width:42%}

.unitWorkbook{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,1fr);gap:22px;align-items:start}.unitSheetSide{position:static;width:auto;height:auto;background:transparent;color:var(--text);padding:0}.unitSheetSection{border:1px solid #b9cbd9;margin:0 0 18px;border-radius:4px;overflow:hidden;background:white}.unitSheetSection h3{background:#e4edf5;margin:0;padding:11px 14px;color:#173a57;font-size:16px}.unitSheetTable{table-layout:fixed;width:100%;border-collapse:collapse}.unitSheetTable th,.unitSheetTable td{white-space:normal;padding:9px 10px;border:1px solid #d6e0e7;vertical-align:middle}.unitSheetTable th{font-weight:500;background:#f5f8fb;font-size:14px}.unitSheetTable td:nth-child(2){background:#eff7ff}.unitSheetTable td:last-child{font-size:12px;color:#566879}.unitSheetTable input,.unitSheetTable select{width:100%;min-width:0;padding:8px;font-size:14px;background:white;border:1px solid #a9c6de}.unitSheetTable .calculatedRow td{background:#f2f4f6}.unitSheetTable output{font-size:14px;color:#4c6171}.unitGuide p{font-size:14px;line-height:1.8;padding:0 14px}.unitProductDetails .unitSheetTable th{width:auto}@media(max-width:1050px){.unitWorkbook{grid-template-columns:1fr}.unitSheetSide{display:grid;grid-template-columns:1fr 1fr;gap:16px;grid-row:1}}@media(max-width:700px){.unitSheetSide{display:block}.unitSheetTable th,.unitSheetTable td{padding:7px 5px}.unitSheetTable select{font-size:13px}}

.unitSheetTable select{appearance:none;padding-right:27px;background-image:linear-gradient(45deg,transparent 50%,#365e7e 50%),linear-gradient(135deg,#365e7e 50%,transparent 50%);background-position:calc(100% - 15px) 50%,calc(100% - 10px) 50%;background-size:5px 5px;background-repeat:no-repeat;cursor:pointer}
.unitSheetSide{color:#253747}
