:root{--grid:#4a4a4a;--thin:#888;--input:#fff2cc;--head:#e7e6e6;--offer:#fce4d6;--nego:#ddebf7;--total:#e2f0d9;--excel:#217346}*{box-sizing:border-box}body{margin:0;background:#dfe3e6;font-family:"맑은 고딕",Malgun Gothic,Arial,sans-serif;color:#111;font-size:12px;font-weight:600}.toolbar{height:62px;background:#f7f7f7;border-bottom:1px solid #c7c7c7;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 24px;position:sticky;top:0;z-index:20}.toolbar b{font-size:16px}.toolbar span{color:#666;margin-left:10px}.toolbar button{border:1px solid #b8b8b8;background:#fff;padding:7px 13px;margin-left:5px;border-radius:2px;cursor:pointer;font-weight:600}.plant-menu{display:flex;align-items:center;gap:8px;margin-left:auto}.plant-menu label{font-weight:700;color:#333}.plant-menu select{min-width:280px;height:34px;border:1px solid #aaa;background:#fff;padding:0 9px;font-weight:600}.app-layout{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:calc(100vh - 62px)}.style-sidebar{background:#f7f7f7;border-right:1px solid #aaa;padding:14px 10px;position:sticky;top:62px;height:calc(100vh - 62px);overflow:hidden}.style-sidebar-head{display:flex;justify-content:space-between;align-items:center;padding:4px 4px 10px;font-size:14px}.style-sidebar-head span{color:#666;font-size:12px}.style-sidebar input{width:100%;height:31px;border:1px solid #aaa;padding:0 8px;margin-bottom:9px;font-weight:600}.style-list{height:calc(100% - 72px);overflow:auto;border:1px solid #bbb;background:#fff}.style-item{display:block;width:100%;border:0;border-bottom:1px solid #ddd;background:#fff;text-align:left;padding:9px 10px;cursor:pointer;font-weight:600}.style-item:hover{background:#eef7f1}.style-item.active{background:var(--excel);color:#fff}.style-item b,.style-item span{display:block}.style-item span{font-size:11px;color:#666;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.style-item.active span{color:#d9eee1}.workbook{margin:16px;min-width:0}.sheet-tabs{display:flex;align-items:end}.sheet-tabs button{border:1px solid #bbb;border-bottom:0;background:#ddd;padding:8px 20px;font-weight:600}.sheet-tabs .active{background:#fff;color:var(--excel);font-weight:700;border-top:3px solid var(--excel)}.sheet-scroll{overflow:auto;background:#fff;border:1px solid #aaa;box-shadow:0 5px 20px #0002}.sheet{width:1934px;padding:18px 18px 8px;background:#fff}.excel{width:1898px;border-collapse:collapse;table-layout:fixed}.excel th,.excel td{border:1px solid var(--thin);height:22px;padding:0;text-align:center;vertical-align:middle;overflow:hidden;font-weight:600}.excel th{font-weight:700}.excel input,.excel select,.excel textarea{display:block;width:100%;height:100%;min-height:20px;border:0;background:var(--input);padding:1px 4px;font:inherit;font-weight:600;text-align:center;outline:0}.excel input:focus,.excel select:focus,.excel textarea:focus{box-shadow:inset 0 0 0 2px var(--excel)}.title-row th{height:44px;border:0;border-bottom:2px solid var(--grid);font-size:24px;letter-spacing:14px;background:#fff}.blank-row td{height:22px;border:0}.metric-head th{height:33px;border:2px solid var(--grid);background:#f2f2f2;font-size:13px}.metric-values td{height:88px;border-left:2px solid var(--grid);border-right:2px solid var(--grid);border-bottom:2px solid var(--grid);font-size:16px;font-weight:700}.metric-values input{font-size:16px;font-weight:700}.vertical{line-height:18px}.meta-row th,.meta-row td{height:22px;border-color:var(--grid)}.meta-row th{background:var(--head)}.detail-sheet thead th{height:26px;border:2px solid var(--grid);background:var(--head);line-height:12px}.detail-sheet tbody th,.detail-sheet tbody td{height:22px}.detail-sheet tbody th{background:#f2f2f2;border-left:2px solid var(--grid);border-right:2px solid var(--grid)}.detail-sheet tbody tr.group-start>*{border-top:2px solid var(--grid)}.detail-sheet tbody tr.group-end>*{border-bottom:2px solid var(--grid)}.detail-sheet tbody td:nth-last-child(3){border-left:2px solid var(--grid);border-right:2px solid var(--grid)}.detail-sheet tbody td:last-child{border-right:2px solid var(--grid)}.formula{background:#fff;text-align:right!important;padding:0 4px!important;font-variant-numeric:tabular-nums}.summary-label{font-weight:700;text-align:left!important;padding-left:10px!important;background:#fff}.summary-row>*{height:22px!important}.summary-row.total>*{border-top:3px double var(--grid);border-bottom:2px solid var(--grid);background:var(--total);font-weight:700}.summary-row.final>*{border-bottom:2px solid var(--grid);font-weight:700}.summary-row .offer{background:var(--offer)}.summary-row .nego{background:var(--nego)}.summary-row input{text-align:right}.notes-sheet{margin-top:22px}.notes-sheet th,.notes-sheet td{height:22px}.notes-sheet th{background:var(--head);border:2px solid var(--grid)}.notes-sheet textarea{text-align:left;resize:none;background:#fff;height:100%}.sheet-status{display:flex;justify-content:space-between;color:#555;padding:8px 2px 0}.sheet-status span:first-child{color:var(--excel);font-weight:700}@media print{body{background:#fff}.toolbar,.style-sidebar,.sheet-tabs,.sheet-status{display:none}.app-layout{display:block}.workbook{margin:0}.sheet-scroll{border:0;box-shadow:none;overflow:visible}.sheet{transform:scale(.58);transform-origin:top left;padding:0}.excel{page-break-inside:avoid}}@media(max-width:900px){.toolbar{padding:0 10px}.toolbar>div:first-child,.toolbar>div:last-child{display:none}.plant-menu{margin:auto;width:100%}.plant-menu select{min-width:0;flex:1}.app-layout{grid-template-columns:170px minmax(0,1fr)}.workbook{margin:6px}.sheet{padding:8px}}

@media screen {
  body.costing-ready .toolbar,
  body.costing-ready .app-layout { zoom: .9; }
  body.costing-ready .app-layout { min-height: calc(111.111111vh - 62px); }
  body.costing-ready .style-sidebar { height: calc(111.111111vh - 62px); }
}

.toolbar-brand{display:flex;align-items:center;gap:12px;flex-shrink:0;white-space:nowrap}
.toolbar-brand b{font-size:16.8px;line-height:1.25}
.toolbar-brand .company-logo{display:block;height:22px;width:auto;object-fit:contain;flex-shrink:0}

/* Basic Tool workbook colors */
.shipping-item-label{text-align:left!important;padding-left:8px!important;color:#555}
.decimal-controls{display:flex;align-items:center;gap:3px;margin-right:10px;padding-right:10px;border-right:1px solid #ccc}
.toolbar .decimal-controls button{margin:0;padding:6px 7px;background:#fff;border-color:#aaa;color:#111;font-variant-numeric:tabular-nums}
.toolbar .decimal-controls button:disabled{color:#aaa;background:#eee;cursor:default}
.decimal-controls output{min-width:35px;text-align:center;font-weight:700;color:#333}
.excel td.number-format-selected{outline:2px solid #217346;outline-offset:-2px}
#accessoryPriceReport{border:1px solid #aaa;border-top:0;padding:7px 12px;background:#f8fbf9;font-size:12px}
#accessoryPriceReport summary{cursor:pointer;color:#217346;font-weight:700}
.price-report-scroll{overflow:auto;max-height:210px;margin-top:8px}
.price-report-scroll table{width:100%;border-collapse:collapse;background:#fff}
.price-report-scroll th,.price-report-scroll td{padding:5px 8px;border:1px solid #ccc;text-align:left;vertical-align:top}
.price-report-scroll tbody tr{cursor:pointer}.price-report-scroll tbody tr:hover{background:#e2f0d9}
.price-report-scroll td:nth-child(3){text-align:right;white-space:nowrap}
.excel input.cell-text-editing,.excel textarea.cell-text-editing{cursor:text;user-select:text;box-shadow:inset 0 0 0 2px #217346}
.shipping-select-wrap{position:relative;height:100%;min-height:20px}
.excel .shipping-select-wrap select{color:transparent}
.excel .shipping-select-wrap select option{color:#111;background:#fff}
.shipping-selected-price{position:absolute;inset:0 18px 0 4px;display:flex;align-items:center;justify-content:flex-end;pointer-events:none;font-variant-numeric:tabular-nums}
#lossStatus{margin-left:auto;white-space:nowrap;color:#217346;font-weight:700}
.toolbar button:last-child{background:var(--excel);border-color:var(--excel);color:#fff}
.excel input,.excel select,.excel textarea{background:#fff}
.metric-head th{background:#fff}
.meta-row th,.detail-sheet thead th{background:#f2f2f2}
.detail-sheet tbody th{background:#fff}
.summary-row .offer,.summary-row .nego{background:#fff}
.summary-row.total>*{background:#f2f2f2}
.inline-subtotal>*{height:22px;border-top:3px double var(--grid)!important;border-bottom:2px solid var(--grid)!important;background:#f2f2f2!important;font-weight:bold}
.inline-subtotal td{text-align:right;padding:0 4px}
.notes-sheet th{background:#fff}
.work-order-bar{flex-wrap:wrap}.work-order-source-info{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.work-order-progress{padding:3px 8px;border:1px solid #b6bec7;border-radius:3px;background:#edf0f3;color:#4b5662;font-weight:700;white-space:nowrap}.work-order-progress.is-complete{background:#e2f0d9;border-color:#9fbb95;color:#205b34}.work-order-progress.is-progress{background:#fff2cc;border-color:#d8bd78;color:#74541b}#workOrderUpdatedAt{color:#495764;font-weight:600;white-space:nowrap}
.excel input[type="number"]{-moz-appearance:textfield;appearance:textfield}
.excel input[type="number"]::-webkit-inner-spin-button,.excel input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.column-ruler-wrap{display:flex;align-items:stretch;margin-left:37px;width:1898px;height:25px}.column-ruler{display:flex;height:25px;flex:0 0 auto}.column-head{position:relative;display:flex;align-items:center;justify-content:center;height:25px;border:1px solid #999;border-right:0;background:#e7e6e6;font-weight:700;user-select:none}.column-head:last-child{border-right:1px solid #999}.column-head:hover{background:#d9ead3}.column-resizer{position:absolute;right:-3px;top:0;width:6px;height:100%;cursor:col-resize;z-index:2}.column-ruler-wrap #addColumnBtn{width:72px;border:1px solid #888;background:#fff;color:var(--excel);font:inherit;font-weight:700;cursor:pointer}.column-ruler-wrap #addColumnBtn:hover{background:#e2f0d9}
.sheet>.column-ruler-wrap{margin-left:0;width:auto}.sheet-corner{flex:0 0 37px;height:25px;border:1px solid #999;border-right:0;background:#d9d9d9}.top-sheet,.detail-sheet,.notes-sheet{margin-left:37px}.excel tr>*:first-child{position:relative;overflow:visible}.sheet-row-number{position:absolute;left:-37px;top:-1px;width:36px;height:calc(100% + 2px);min-height:23px;border:1px solid #999;border-right:0;background:#e7e6e6;color:#333;display:flex;align-items:center;justify-content:center;font:inherit;font-weight:700;z-index:3;user-select:none}.sheet-row-number:hover,.sheet-row-number.active{background:#c6e0b4;color:#0b5f35}.sheet-row-number.two-rows{height:44px;line-height:20px;flex-direction:column}.notes-sheet{margin-top:22px}.detail-sheet thead th:first-child .sheet-row-number{height:27px}.metric-head th:first-child .sheet-row-number{height:34px}.title-row th:first-child .sheet-row-number{height:45px}.sheet>.top-sheet{width:1898px}.sheet>.notes-sheet{width:1898px}
.sheet{position:relative}.top-row-gutter{position:absolute;left:18px;top:43px;width:36px;z-index:5}.top-row-gutter span{display:flex;align-items:center;justify-content:center;border:1px solid #999;border-bottom:0;background:#e7e6e6;font-weight:700}.top-row-gutter span:last-child{border-bottom:1px solid #999}.blank-row-number{top:-23px;height:23px!important}.row-handle{font-size:12px}.top-sheet{margin-top:0}.top-sheet .title-row th{height:44px}.top-sheet .metric-head th{height:33px}.top-sheet .meta-row th,.top-sheet .meta-row td{height:22px}
.strong-col-boundary{border-right:4px solid #222!important}.column-head.strong-col-boundary{border-right:4px solid #222!important}
.sheet[hidden]{display:none}.rules-sheet{width:1150px;min-height:900px;font-size:12px}.rules-table{width:1100px;border-collapse:collapse;table-layout:fixed;font-family:"맑은 고딕",Malgun Gothic,Arial,sans-serif;font-size:12px}.rules-table th,.rules-table td{height:25px;border:1px solid #777;padding:3px 7px;text-align:left;vertical-align:middle;font-weight:500}.rules-table .rules-title th{height:38px;border:0;border-bottom:2px solid #333;font-size:18px;font-weight:700}.rules-table .rules-section th{height:30px;background:#e7e6e6;font-weight:700}.rules-table .rules-header th{background:#f2f2f2;font-weight:700;text-align:center}.sheet-tabs button{cursor:pointer}.sheet-tabs button.active{background:#fff;color:var(--excel);font-weight:700;border-top:3px solid var(--excel)}
.style-filter-row{display:grid;grid-template-columns:minmax(0,1fr) 82px;gap:5px}.style-filter-row select{height:31px;border:1px solid #aaa;background:#fff;padding:0 4px;font:inherit;font-weight:600}.style-status{font-style:normal;font-size:11px;margin-left:4px;color:#9c6500}.style-status.final{color:#217346}.style-item.active .style-status{color:#fff}.toolbar-actions #confirmBtn{border-color:#217346;color:#217346;font-weight:700}.toolbar-actions #confirmBtn.is-final{background:#217346;color:#fff}
.style-list{height:calc(100% - 72px)}.toolbar-actions{display:flex;align-items:center;white-space:nowrap}.toolbar-upload{border:1px solid var(--excel);background:#fff;color:var(--excel);padding:7px 12px;border-radius:2px;cursor:pointer;font-weight:bold}.toolbar-upload input{display:none}.toolbar-actions #extractPdfBtn{background:var(--excel);border-color:var(--excel);color:#fff}.toolbar-actions #extractPdfBtn:disabled{background:#aaa;border-color:#aaa;cursor:not-allowed}.work-order-bar{min-height:37px;display:flex;align-items:center;gap:12px;padding:8px 12px;border:1px solid #aaa;border-bottom:0;background:#f8fbf9}.work-order-bar b{color:var(--excel)}.work-order-bar #uploadStyleNo{font-weight:bold}.work-order-bar #selectedPdfName{padding:3px 8px;background:#fff;border:1px solid #ccc;color:#555}.work-order-bar #pdfStatus{margin-left:auto;color:#666}.material-row td.cell-selected{position:relative;background:#d9ead3!important;box-shadow:inset 0 0 0 1px var(--excel)}.material-row td.cell-anchor{box-shadow:inset 0 0 0 2px #0b5f35}.material-row td.cell-selected input,.material-row td.cell-selected select{background:#d9ead3!important}.detail-sheet tbody th.category{position:relative;overflow:visible}.row-handle{position:absolute;left:-37px;top:-1px;width:36px;height:23px;border:1px solid #999;border-right:0;background:#e7e6e6;color:#333;font:inherit;font-weight:700;cursor:default}.row-handle:hover,.row-handle.active{background:#c6e0b4;color:#0b5f35}.row-context-menu{position:fixed;z-index:1000;width:145px;padding:4px;background:#fff;border:1px solid #888;box-shadow:2px 3px 10px #0004}.row-context-menu button{display:block;width:100%;padding:7px 10px;border:0;background:#fff;text-align:left;font:inherit;font-weight:600;cursor:pointer}.row-context-menu button:hover{background:#e2f0d9}.detail-sheet{margin-left:37px}.excel.detail-sheet{width:1898px}.sheet{width:1971px}
#brandPicker{display:flex;align-items:center;gap:6px;margin-left:auto;font-size:12px;font-weight:700;white-space:nowrap}
#brandSelect{min-width:120px;height:34px;padding:0 8px;border:1px solid #aaa;border-radius:2px;background:#fff;font-weight:600}
#brandEmptyNotice{max-width:190px;white-space:normal;color:#a12727;font-weight:600;line-height:1.25}
.style-sidebar{display:flex;flex-direction:column}
.style-filter-row{flex:none}
.style-season-row{display:flex;align-items:center;gap:7px;margin:0 0 9px}
.style-season-row label{flex:none;color:#444}
.style-season-row select{flex:1;min-width:0;height:31px;border:1px solid #aaa;background:#fff;padding:0 5px;font:inherit;font-weight:600}
.style-sidebar .style-list{flex:1;min-height:0;height:auto}
.toolbar:has(#brandPicker) .plant-menu{margin-left:0}
@media(max-width:900px){#brandPicker{margin-left:0}.toolbar:has(#brandPicker) .plant-menu{width:auto;min-width:0;flex:1}}
#adminMaterials{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:7px 12px;border-bottom:1px solid #dce4ec;background:#f8fbfe;font-size:12px}
#adminMaterials strong{color:#205c96}
#adminMaterialsList{display:flex;gap:10px;flex-wrap:wrap}
#adminMaterialsList a{color:#205c96;text-decoration:underline}
#adminMaterialsStatus{color:#a03a2b}
#k2WorkordersDialog{width:min(520px,calc(100vw - 32px));border:1px solid #bdcbd9;border-radius:8px;padding:20px;box-shadow:0 12px 40px #26344533;color:#263445}
#k2WorkordersDialog::backdrop{background:#14243688}
#k2WorkordersDialog .k2-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
#k2WorkordersDialog h2{font-size:18px;margin:0}
#k2WorkordersDialog p{font-size:13px}
#k2WorkordersDialog label{display:block;margin:16px 0 10px;font-size:13px;font-weight:700}
#k2StyleNo{display:block;width:100%;box-sizing:border-box;margin-top:5px;padding:8px;border:1px solid #b8c8d7;border-radius:4px}
#k2WorkordersDialog button{padding:7px 12px;border:1px solid #9fb3c7;border-radius:4px;background:#fff;cursor:pointer}
#k2Start{background:#205c96!important;color:#fff}
#k2Start:disabled{opacity:.6;cursor:wait}
#k2File{display:inline-block;margin-top:8px;color:#205c96;font-weight:700}
#k2File[hidden]{display:none}
#k2Errors{font-size:12px;color:#a03a2b;margin-top:8px}
