.chat-schedules{min-width:0}.chat-schedules>form{padding:12px 0 20px;border-bottom:1px solid #d7dce1}.chat-schedules textarea{display:block;width:100%;min-height:170px;resize:vertical;padding:12px;border:1px solid #c7cdd3;border-radius:6px;margin:8px 0 12px;background:#fff;color:#202124}.chat-schedules .section-head,.chat-candidate-head,.chat-apply-bar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.chat-candidate{padding:16px 0;border-bottom:1px solid #d7dce1}.chat-candidate details{margin:9px 0}.chat-candidate summary,.chat-history-section>summary{padding:7px 0;cursor:pointer}.chat-candidate fieldset{border:0;padding:0;margin:0;min-width:0}.chat-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 16px;margin:10px 0}.chat-fields .field{min-width:0}.chat-fields input,.chat-fields select{width:100%;min-width:0;max-width:100%}.chat-check{display:flex;gap:8px;align-items:center;min-width:0}.chat-check input{width:16px;height:16px;min-width:16px;min-height:16px;margin:0;padding:0;flex:none}.chat-check strong{overflow-wrap:anywhere}.chat-file-label{position:relative;overflow:hidden}.chat-file-label input{position:absolute;inset:0;opacity:0;cursor:pointer;min-width:0;width:100%}.chat-raw{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;padding:10px;background:#eef1f4;border-radius:4px}.chat-existing{padding:8px 10px;background:#eef1f4;overflow-wrap:anywhere}.chat-warnings{margin:8px 0;padding-left:20px;color:#865615}.chat-error{color:#a12e26;margin-top:8px}.chat-apply-bar{padding:16px 0}.chat-applied .chat-candidate-head{color:#54635b}.chat-history-section{margin-top:24px;border-top:1px solid #d7dce1;padding-top:12px}#chat-preview{margin-top:20px}#chat-history td{white-space:normal}.chat-schedules .actions{flex-wrap:wrap}
@media(max-width:1050px){.chat-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.chat-fields{grid-template-columns:minmax(0,1fr)}.chat-schedules .toolbar{align-items:stretch}.chat-schedules .toolbar>.field{width:100%}.chat-apply-bar>.actions{width:100%;justify-content:space-between}}
:root{font-family:"Malgun Gothic",Arial,sans-serif;color:#202a28;background:#f4f7f6;font-size:14px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}
.workspace{display:flex;min-height:100vh}.sidebar{width:224px;background:#173b35;color:#e9f4ef;display:flex;flex-direction:column;flex:none}.brand{display:flex;gap:12px;align-items:center;padding:25px 18px 27px;font-size:16px;font-weight:700}.brand small{display:block;color:#b5d0c7;font-size:11px;font-weight:400;margin-top:4px}.mark{background:#a4d7c2;color:#14372f;width:31px;height:31px;display:grid;place-items:center;font-weight:800}.sidebar nav{display:flex;flex-direction:column;gap:3px;padding:0 9px}.sidebar nav button{background:none;border:0;text-align:left;color:#d3e5dd;padding:11px 14px;border-radius:5px}.sidebar nav button:hover,.sidebar nav button.selected{background:#29584c;color:#fff}.side-foot{margin-top:auto;border-top:1px solid #376055;padding:15px;display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:12px}.side-foot button{border:0;background:none;color:#e0eee8;text-decoration:underline}
.main{flex:1;min-width:0}.topbar{height:95px;background:#fff;border-bottom:1px solid #d9e3de;padding:18px 28px;display:flex;align-items:center;justify-content:space-between;gap:12px}.topbar h1{font-size:22px;margin:3px 0 0;font-weight:700}.eyebrow{font-size:11px;color:#68817a}.top-status{color:#557369;font-size:12px;white-space:nowrap}.status-dot{display:inline-block;width:7px;height:7px;background:#38a56c;border-radius:50%;vertical-align:middle}.content{padding:24px 28px 40px;max-width:1600px;margin:auto}.notice{padding:11px 28px;background:#fff1c9;color:#6b4815;border-bottom:1px solid #eac678}.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.section-head h2{font-size:17px;margin:0}.muted{color:#6d7e78;font-size:12px}.summary{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px;margin-bottom:24px}.stat{background:#fff;border:1px solid #dfe8e2;padding:17px;border-radius:4px}.stat strong{display:block;font-size:24px;margin-top:8px}.stat span{color:#657972;font-size:12px}.stat.warn strong{color:#a35e20}.band{background:#e6f1eb;border-left:3px solid #4b9872;padding:12px 14px;margin:15px 0;color:#315b47}.band.warn{background:#fff4df;border-color:#d39b38;color:#6f5128}.panel{background:#fff;border:1px solid #dfe8e2;border-radius:4px;margin:0 0 18px}.panel-title{padding:14px 17px;border-bottom:1px solid #e2eae5;display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:700}.panel-body{padding:16px}.toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.toolbar input{min-width:230px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field label{font-size:12px;color:#52665f;font-weight:600}.field input,.field select,.field textarea,input,select,textarea{border:1px solid #cbd9d1;background:white;color:#202a28;border-radius:4px;padding:9px 10px;min-height:37px;max-width:100%}.field textarea{min-height:80px;resize:vertical}.field input:focus,.field select:focus,input:focus,select:focus{outline:2px solid #8bbda2;outline-offset:1px}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:15px}.btn{border:1px solid #b7ccc0;background:#fff;color:#284b3c;border-radius:4px;min-height:36px;padding:8px 12px;font-weight:600}.btn:hover{background:#eff7f2}.btn.primary{border-color:#23684a;background:#23684a;color:white}.btn.primary:hover{background:#1c553d}.btn.danger{color:#9c3434;border-color:#d8a7a7}.btn.small{font-size:12px;min-height:29px;padding:5px 8px}.table-wrap{overflow:auto}.data-table{border-collapse:collapse;width:100%;min-width:860px;font-size:12px}.data-table th{background:#f0f5f1;color:#486253;text-align:left;position:sticky;top:0;z-index:1}.data-table th,.data-table td{padding:10px 9px;border-bottom:1px solid #e7eeea;vertical-align:top;white-space:nowrap}.data-table tr:hover td{background:#f8fbf9}.data-table .number{text-align:right;font-variant-numeric:tabular-nums}.badge{display:inline-block;padding:3px 6px;background:#eef4ef;border:1px solid #dce7de;border-radius:3px;font-size:11px}.badge.warn{background:#fff4dc;border-color:#f0dfad;color:#795515}.badge.danger{background:#fceceb;border-color:#edc9c5;color:#a33f36}.empty{padding:30px 15px;text-align:center;color:#789087}.detail{border-top:1px solid #e2eae5;padding:18px;background:#fbfdfb}.subtle{font-size:12px;color:#70817b}.order-lines{display:flex;flex-direction:column;gap:8px}.order-line{display:grid;grid-template-columns:110px minmax(180px,1fr) 90px 40px;gap:8px}.order-line select{width:100%}.auth-shell{min-height:100vh;display:grid;place-items:center;background:#e9f1ec}.auth-card{width:min(450px,calc(100vw - 30px));background:#fff;border:1px solid #dbe6dd;padding:30px;border-radius:5px}.auth-card h1{font-size:23px;margin:0 0 6px}.auth-card p{color:#60776c;line-height:1.5}.auth-card .field{margin:12px 0}.auth-card .btn{width:100%;margin-top:12px}.auth-card .error{color:#b4423a;min-height:20px;font-size:12px}.legend{display:flex;gap:14px;color:#6c8175;font-size:12px;flex-wrap:wrap}.split{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:16px}.metric-row{display:flex;gap:16px;flex-wrap:wrap;padding:12px;background:#f5f8f5;margin-top:10px}.metric-row div{min-width:100px}.metric-row b{display:block;margin-top:5px}
@media(max-width:980px){.summary{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.split{grid-template-columns:1fr}.sidebar{width:180px}.topbar{padding:15px 18px}.content{padding:20px 18px}}
@media(max-width:650px){.workspace{display:block}.sidebar{width:100%;position:relative}.brand{padding:13px 15px}.sidebar nav{flex-direction:row;overflow-x:auto;padding:0 8px 8px}.sidebar nav button{flex:none;padding:8px}.side-foot{display:none}.topbar{height:auto;min-height:72px}.topbar h1{font-size:19px}.content{padding:14px}.summary{grid-template-columns:repeat(2,1fr)}.grid,.grid.two,.grid.three{grid-template-columns:1fr}.order-line{grid-template-columns:85px minmax(120px,1fr) 68px 32px}.toolbar input{min-width:0;width:100%}}
[hidden] { display: none !important; }
.missing-order-row>td{background:#fff4ed}
.missing-order-row .badge{margin-top:6px}
.reconcile-form{margin-top:18px;padding-top:12px;border-top:1px solid #dfe8e2;max-width:760px}
.reconcile-form h4{margin:0 0 12px}
.reconcile-form .field{margin:10px 0}
.reconcile-form input[type=search]{width:100%}
.reconcile-form select{width:100%}
.reconcile-form .product-binary{white-space:normal;margin:12px 0;font-size:12px;line-height:1.6}
.reconcile-form .product-binary input{min-width:16px}
#content{overflow-anchor:none}
.inline-detail-row>td{padding:0!important;white-space:normal}
.inline-host{width:min(1120px,calc(100vw - 310px));white-space:normal}
#order-schedule-list .data-table{min-width:1000px}
#order-schedule-list button{min-width:0}
#order-schedule-list>.table-wrap>.data-table>thead>tr>th:first-child,#order-schedule-list>.table-wrap>.data-table>tbody>tr:not(.inline-detail-row)>td:first-child{width:1%;white-space:nowrap}
#order-schedule-list .order-name-inline{white-space:nowrap;flex-wrap:nowrap;gap:4px}
#order-schedule-list .order-name-inline>.btn{padding:5px 7px;white-space:nowrap;text-align:left}
#order-schedule-list .order-name-inline>.badge{flex-shrink:0}
.schedule-filter-bar{margin-bottom:10px}
#dashboard-stock-search{margin:20px 0 24px;padding-top:16px;border-top:1px solid #cbd9d1}
#dashboard-stock-search .section-head h2{font-size:15px}
#dashboard-stock-search .dashboard-stock-name{white-space:normal;min-width:180px;max-width:300px;overflow-wrap:anywhere}
#dashboard-stock-paging{margin-top:10px;font-size:12px}
#manual-receipt input[type=checkbox]{width:16px;height:16px;min-width:16px;min-height:16px;padding:0;margin:0;accent-color:#23684a}
#manual-receipt .product-binary{display:flex;align-items:center;gap:7px;margin-top:12px}
#manual-receipt-message:empty{display:none}
#receipt-export-history{margin-top:16px}
.factory-stock-summary{font-size:12px;color:#52665f;padding:10px 0;border-bottom:1px solid #dfe8e2}
#factory-stock-table .factory-month{padding:5px 8px;white-space:normal;font-variant-numeric:tabular-nums}
.factory-month>div{display:flex;justify-content:space-between;gap:5px;font-size:11px;line-height:15px;white-space:nowrap}
.factory-month>div>span{color:#68766d}
.factory-month>div>b{font-weight:600}
#factory-stock-table td.factory-month-shortage{background:#fff2b8!important;color:#604900}
#factory-stock-table tr.discontinued td.factory-month-shortage{background:#e5e7e9!important;color:#637069}
.factory-product-name strong,.factory-product-name span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:17px}
.factory-product-name span{color:#6b776f}
#factory-stock-table .virtual-data>tbody>tr[data-v-index]>td{padding:5px 6px;font-size:11px}
#factory-stock-table .virtual-data th{padding:8px 5px;white-space:normal;font-size:11px}
#factory-stock-table .virtual-data th .subtle{font-size:10px}
.factory-product-code{display:flex;align-items:center;gap:5px;height:28px}
.factory-product-photo{display:block;width:46px;height:46px;object-fit:contain;margin:auto}
.factory-photo-cell{text-align:center}
.factory-month-index{font-size:10px;color:#52665f;font-weight:400}
.factory-month>.factory-month-balance{margin-top:5px;padding-top:4px;border-top:1px solid #d9dfd5;font-size:12px}
.factory-month-balance>b{font-weight:700}
.factory-base-stock>div:last-child{border-top:1px solid #d9dfd5;padding-top:3px;margin-top:3px}
.factory-export-actions{margin:0;justify-content:flex-end}
.factory-stock-policy{line-height:1.6}
.schedule-state-filters{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin-top:8px;padding:10px;border-top:1px solid #dfe8e2;background:#f5f8f6;font-size:12px}
.schedule-state-filters label{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.schedule-state-filters input[type=checkbox]{width:14px;height:14px;min-width:14px;min-height:14px;padding:0;margin:0;border-radius:2px;accent-color:#23684a;flex:none}
#order-schedule-list .schedule-free-time{white-space:nowrap;font-variant-numeric:tabular-nums}
.progress-date-fields{margin-top:16px}
.forwarding-source-records{margin-top:16px}
.forwarding-source-records summary{cursor:pointer;padding:10px 0}
#order-progress-error{white-space:normal}
.virtual-scroll{height:min(68vh,650px);min-height:240px;overflow:auto;border:1px solid #dfe8e2;background:#fff}
.virtual-data{table-layout:fixed}
.virtual-data>tbody>tr[data-v-index]{height:60px}
.virtual-data>tbody>tr[data-v-index]>td{overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.virtual-data th{white-space:normal;overflow-wrap:anywhere}
.virtual-spacer>td{padding:0!important;border:0!important}
.virtual-data .row-number{color:#70817b}
.stock-shortage>td{background:#fff0f0!important}
.stock-excess>td{background:#eaf3ff!important}
.stock-shortage.discontinued>td,.stock-excess.discontinued>td{background:#e5e7e9!important}
.composer-sticky{position:sticky;top:0;z-index:5;background:#fbfdfb;border-bottom:1px solid #cbd9d1;padding:12px 0}
.composer-sticky h3{margin:0;font-size:17px}
#order-composer.inline-host{width:100%;max-width:100%;min-width:0}
#order-composer .order-composer-detail{background:#fff;border:1px solid #b9ccc1;padding:20px}
#order-composer .composer-sticky{background:#fff}
#order-composer .composer-settings input,#order-composer .composer-settings select{width:100%}
#order-lines .order-line:nth-child(even){background:#f4f8f6}
#order-lines .order-line{padding:18px 12px}
#order-lines .order-item-metrics{padding:0 16px;border-left:1px solid #d5e1d9;border-right:1px solid #d5e1d9}
#dashboard-schedule{margin-bottom:24px}
.composer-settings{display:grid;grid-template-columns:150px 150px minmax(220px,1fr);gap:12px}
.composer-settings{grid-template-columns:130px 130px minmax(210px,1fr) 155px}
.order-evidence{grid-column:1/-1;border-top:1px solid #d3dfd7;padding-top:10px;font-size:12px;min-width:0}
.order-evidence summary,.order-extra-details summary{cursor:pointer;color:#315c48;padding:8px 0;font-weight:600}
.evidence-sales{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}
.evidence-sales>div{border-right:1px solid #d4ddd7;padding:4px 10px}.evidence-sales span,.evidence-sales b,.evidence-sales small{display:block;margin:4px 0}.evidence-sales small{color:#7c6339}
.evidence-calculation{display:flex;flex-direction:column;gap:8px;line-height:1.6;overflow-wrap:anywhere}
.order-summary-items .data-table,.actual-inbound .data-table{width:100%;table-layout:fixed;min-width:0}
.order-summary-items th:nth-child(1),.actual-inbound th:nth-child(1){width:155px}.order-summary-items th:nth-child(3),.order-summary-items th:nth-child(4),.actual-inbound th:nth-child(3),.actual-inbound th:nth-child(4){width:110px}
.order-summary-items td,.actual-inbound td{white-space:normal;overflow-wrap:anywhere}
.actual-inbound{padding:18px 0;border-top:2px solid #b8c9bf}.actual-inbound h3{font-size:17px;margin:0}
#shipment-form-slot.inline-host{width:100%;max-width:100%;min-width:0}
.inbound-identifiers{display:flex;gap:20px;flex-wrap:wrap;color:#647269;font-size:12px;margin-bottom:18px}.inbound-identifiers b{color:#263f32}
.actual-inbound input{max-width:100%;min-width:0}.actual-inbound .table-wrap{overflow-x:visible}.inbound-row-error{color:#a03d35;font-size:11px}.inbound-error-row td{background:#fff0df!important}.actual-inbound .badge{margin-left:8px}
.actual-inbound .product-binary{font-size:11px;white-space:normal}.order-extra-details{margin:12px 0}
@media(max-width:900px){.composer-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.evidence-sales{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.composer-settings>.field:nth-child(3){grid-column:1/-1}.order-summary-items th:nth-child(1),.actual-inbound th:nth-child(1){width:88px}.order-summary-items th:nth-child(3),.order-summary-items th:nth-child(4),.actual-inbound th:nth-child(3),.actual-inbound th:nth-child(4){width:60px}.actual-inbound .data-table th,.actual-inbound .data-table td{padding:8px 4px}.actual-inbound .inbound-sku{font-size:11px;padding:5px;width:100%}.actual-inbound .inbound-qty{width:100%;padding:6px}.actual-inbound .actions{flex-wrap:wrap}}
.composer-actions{margin:12px 0 0}
.composer-actions .btn{overflow-wrap:normal;word-break:keep-all}
.composer-actions [aria-pressed=true]{background:#e6f1eb;border-color:#23684a;color:#17482d}
#order-lines .order-line{display:grid;grid-template-columns:minmax(210px,1.2fr) minmax(360px,2fr) 130px;gap:16px;padding:18px 12px;border-bottom:1px solid #bdcfc3}
.order-item-info{min-width:0;overflow-wrap:anywhere;font-size:12px;line-height:1.6}
.order-item-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px;font-size:12px;align-content:start}
.order-item-metrics span{display:block;color:#60756b;font-size:11px}
.order-item-metrics b{display:block;font-weight:500;font-variant-numeric:tabular-nums;margin-top:4px;overflow-wrap:anywhere}
.order-item-metrics [data-recommended]{color:#176b45;font-weight:700}
.order-item-quantity{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:12px}
.order-item-quantity>label:first-child{display:flex;flex-direction:column;gap:6px}
.order-item-quantity .qty{width:100%;min-width:0}
.order-item-quantity .remove-line{align-self:flex-end}
.order-item-issue{color:#ac3939;margin-top:6px}
#order-search-summary .virtual-scroll{height:min(42vh,360px)}
#order-lines .order-sku-entry{min-width:0;flex-wrap:wrap}
#order-lines .order-sku-entry input{width:130px;flex:1;min-width:90px}
#order-lines .order-sku-entry .btn{flex:none}
@media(max-width:1100px){#order-lines .order-line{grid-template-columns:minmax(0,1fr) 115px}.order-item-info{grid-column:1/-1}.order-item-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:650px){.composer-settings{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.composer-settings>.field:last-child{grid-column:1/-1}.composer-actions{gap:6px}.composer-actions .btn{font-size:11px;padding:7px;flex:1;white-space:normal}.order-item-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.composer-sticky .section-head{margin-bottom:8px}#order-lines .order-line{gap:12px;grid-template-columns:minmax(0,1fr) 92px}.order-item-quantity .product-binary{gap:5px}.order-composer-detail{padding:12px}}
@media(max-width:650px){.inline-host{width:calc(100vw - 70px)}}
.data-table tr.discontinued td,.data-table tr.discontinued:hover td{background:#e5e7e9;color:#555b60}.data-table tr.discontinued .badge{background:#d7dadd;color:#50555a;border-color:#bfc4c8}#reference-details{margin-top:22px}#reference-details>summary{cursor:pointer;padding:14px;background:#edf1f4;border:1px solid #ccd4da;font-weight:600}#reference-details[open]>summary{margin-bottom:12px}
.product-thumb{display:block;width:38px;height:38px;object-fit:contain;background:#f5f8f6;border:1px solid #e1e9e3;border-radius:3px}
.view-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid #cbd9d1;padding-bottom:14px;margin-bottom:22px}.timeline{background:#fff;border-top:1px solid #cbd9d1}.timeline-row{display:grid;grid-template-columns:230px minmax(320px,1fr);gap:16px;padding:18px 12px;border-bottom:1px solid #dfe8e2}.timeline-row small{display:block;margin-top:8px;font-weight:400}.timeline-track{position:relative;height:164px;border-bottom:2px solid #cbd9d1}.milestone{position:absolute;left:var(--at);top:0;transform:translateX(-50%);font-size:11px;text-align:center;white-space:nowrap}.milestone:nth-child(2){top:38px}.milestone:nth-child(3){top:76px}.milestone:nth-child(4){top:114px}.milestone i{display:block;margin:auto;width:9px;height:9px;border-radius:50%;background:var(--event-color)}.milestone span{display:block;margin-top:3px}.timeline-dates{grid-column:1/-1;font-size:12px;color:#546b62}.timeline-legend{display:flex;gap:12px;align-items:center;margin-bottom:12px;flex-wrap:wrap}.timeline-legend b{width:10px;height:10px;border-radius:50%;display:inline-block}.event-order{background:#296b4c}.event-ship{background:#b36e20}.event-port{background:#327bb3}.event-warehouse{background:#8b4f87}.stat{text-align:left;color:inherit}.timeline-row>.btn{white-space:normal;overflow-wrap:anywhere;align-self:center}.data-table input[type=number]{width:100px}.view-tabs .btn{font-size:13px}@media(max-width:650px){.timeline-row{grid-template-columns:1fr}.timeline-track{min-width:0}.timeline-dates{line-height:1.8}.view-tabs{gap:6px}.view-tabs .btn{padding:7px 9px}.summary .stat{min-width:0}.summary .stat span{white-space:normal}}
#order-lines .order-product-info{line-height:1.5;overflow-wrap:anywhere}
#product-detail{max-width:1120px}
.product-inline-row #product-detail{width:min(1120px,calc(100vw - 310px))}
#order-save-message{white-space:normal}
.data-table details pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:800px}
@media(max-width:650px){.product-inline-row #product-detail{width:calc(100vw - 70px)}}
#acknowledge-warnings{width:16px;height:16px;min-height:0;flex:none}
#order-warning-panel label{display:flex;align-items:center;gap:8px}
.order-name-row{max-width:640px}
.product-binary{display:flex;align-items:center;gap:8px;min-height:38px}
.product-binary input{width:16px;height:16px;min-height:0;flex:none}
.product-photo-section{margin:12px 0 20px;white-space:normal}
.product-photo-section figure{margin:0}
.product-cover{width:280px;max-width:100%;margin-bottom:12px!important}
.product-cover img{display:block;width:100%;height:220px;object-fit:contain;background:#fff;border:1px solid #d5dadd}
.product-photo-section figcaption{font-size:12px;color:#53635e;line-height:1.5;overflow-wrap:anywhere;margin:6px 0}
.product-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:16px;margin-top:12px}
.product-photo-grid img{display:block;width:100%;height:160px;object-fit:contain;background:#fff;border:1px solid #d5dadd}
.product-photo-grid figure{min-width:0}
.product-photo-alternatives summary{cursor:pointer;padding:8px 0}
#stock-filters select,#stock-filters input{max-width:260px}
#stock-filters{gap:10px}
#stock-filters~.table-wrap{max-height:70vh;overflow:auto}
#stock-filters~.table-wrap th{position:sticky;top:0;z-index:1}
.dual-risk{display:grid;gap:6px;min-width:135px}
.dual-risk span{display:flex;align-items:center;justify-content:space-between;gap:6px}
.order-sku-entry{display:flex;gap:6px;min-width:260px;align-items:center}
.order-sku-entry input{width:150px;min-width:0}
.sku-result,.warehouse-exception{white-space:normal;max-width:320px;margin-top:6px}
.warehouse-exception{color:#9a4718}
.order-product-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:760px;max-width:100vw;height:100dvh;max-height:100dvh;box-sizing:border-box;padding:24px;border:0;border-left:1px solid #d5dadd;background:#fff;color:#202a27;overflow-y:auto}
.order-product-dialog::backdrop{background:rgb(0 0 0 / 22%)}
.order-product-dialog h2{font-size:20px}
.order-product-dialog #order-product-query{width:100%;margin:8px 0}
.order-product-dialog .picker-warehouse{display:flex;align-items:center;gap:8px;margin:12px 0}
.order-product-dialog input[type=checkbox]{width:16px;height:16px;min-width:16px;min-height:16px;padding:0;margin:0;flex:none;accent-color:#23684a}
.order-product-dialog table{width:100%;border-collapse:collapse;table-layout:fixed}
.order-product-dialog th,.order-product-dialog td{padding:10px 6px;text-align:left;white-space:normal;overflow-wrap:anywhere;border-bottom:1px solid #e1e6e3}
.order-product-dialog th:first-child{width:32px}
.order-product-dialog th:nth-child(2){width:47%}
.order-product-dialog th:nth-child(4){width:17%}
.order-product-dialog .picker-check{text-align:center;vertical-align:middle}
.picker-selection-actions{position:sticky;bottom:-24px;display:flex;flex-wrap:wrap;align-items:center;gap:10px;background:#fff;border-top:1px solid #cbd9d1;padding:14px 0;margin-top:14px}
.picker-selection-actions #picker-add-selected{margin-left:auto}
.order-product-dialog button{white-space:normal}
@media(max-width:650px){.order-product-dialog{padding:14px}.order-product-dialog th,.order-product-dialog td{font-size:12px;padding:8px 3px}.order-product-dialog .btn{padding:6px}}
.forwarding-filter{display:flex;align-items:center;gap:8px;font-size:13px}
.forwarding-source{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.forwarding-source .btn{text-decoration:none}
#forwarding-list th:first-child,#forwarding-list td:first-child{position:sticky;left:0;z-index:2;background:#fff}
#forwarding-list th:first-child{background:#f0f5f1;z-index:3}
#forwarding-list tr.discontinued td:first-child{background:#e5e7e9}
.toolbar #forwarding-missing{width:16px;height:16px;min-width:16px;min-height:0;flex:none;margin:0}
@media(max-width:650px){.forwarding-section-head{align-items:flex-start;flex-direction:column}}
.trade-section{margin-top:24px;min-width:0}.trade-section h3{font-size:15px;margin:0 0 12px}.trade-section td{white-space:normal;overflow-wrap:anywhere;min-width:82px}.trade-section th{white-space:normal;min-width:82px}.trade-section td:first-child{min-width:145px}.trade-review-file{padding:16px 0;border-bottom:1px solid #dfe8e2}.trade-review-file h4{font-size:13px;overflow-wrap:anywhere;margin:0 0 15px}.trade-review-file [hidden]{display:none}.trade-review-file .field input,.trade-review-file .field select{width:100%}#trade-review-form>.product-binary{margin:18px 0}#trade-settings-host,#trade-upload-host{width:100%;max-width:100%}#trade-document-detail p{overflow-wrap:anywhere}#trade-payment-form .product-binary,#trade-document-form .product-binary{margin:16px 0}
.trade-section .section-head .btn,.trade-section td>.btn{flex:none;white-space:nowrap}.trade-section .section-head h3{min-width:0;overflow-wrap:anywhere}.trade-section .band .subtle{overflow-wrap:anywhere}#trade-payment-form .field input{width:100%}
.trade-document-actions{display:flex;gap:8px;flex-wrap:wrap}.trade-document-actions .btn{flex:none;white-space:nowrap}#trade-delete-form{margin-top:18px;padding-top:14px;border-top:1px solid #d9dfe5}#trade-delete-form input{width:100%}#trade-delete-form .actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.trade-documents-section>.table-wrap>.data-table>thead>tr>th:last-child,.trade-documents-section>.table-wrap>.data-table>tbody>tr:not(.inline-detail-row)>td:last-child{position:sticky;right:0;min-width:144px;z-index:2;background:#fff;box-shadow:-2px 0 0 #e0e5eb}.trade-documents-section>.table-wrap>.data-table>thead>tr>th:last-child{background:#e9edf3;z-index:3}
.product-order-memo-field{margin-top:18px}.product-order-memo-field textarea{width:100%;min-height:88px;resize:vertical;line-height:1.5}.order-product-memo{margin-top:10px;max-width:100%;min-width:0;border-left:3px solid #d6a23d;padding-left:9px}.order-product-memo>summary{cursor:pointer;color:#805817;font-weight:600;line-height:1.6}.order-product-memo-body{margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;color:#303b46}
.product-link-panel{margin:18px 0;padding:14px 0;border-top:1px solid #d4dce4;border-bottom:1px solid #d4dce4;min-width:0}.product-link-panel h4{margin:0}.product-link-summary{padding:8px 0;line-height:1.7}.product-link-panel input[type=radio]{width:16px;height:16px;min-height:16px;margin:0;vertical-align:middle}.product-link-panel .table-wrap{margin:10px 0}.product-link-panel [data-links-error]{color:#ac3539}.order-product-links{min-width:0;max-width:100%;margin-top:10px;border-left:3px solid #829ebc;padding-left:9px}.order-product-links>summary{cursor:pointer;font-weight:600;color:#3c5979;line-height:1.6}.order-product-links ul{list-style:none;padding:0;margin:6px 0}.order-product-links li{padding:7px 0;border-top:1px solid #dce3eb}.order-product-links li>span{display:block;overflow-wrap:anywhere;line-height:1.5}.order-linked-summary{margin-top:7px;line-height:1.6}
.development-note-button{display:inline-grid;place-items:center;vertical-align:middle;margin-left:7px;padding:0;width:19px;height:19px;min-width:19px;min-height:19px;line-height:1;border:1px solid #92a19d;border-radius:50%;background:#fff;color:#52645e;font-size:12px;font-weight:600}.development-note-button:hover,.development-note-button:focus-visible{background:#e5efeb;outline:2px solid #91b1a3;outline-offset:2px}.development-note-tooltip{position:fixed;z-index:150;box-sizing:border-box;max-height:calc(100dvh - 24px);overflow:auto;background:#fff;border:1px solid #aabbb2;border-radius:5px;box-shadow:0 5px 18px #0002;padding:15px;color:#25372f;font-size:12px;line-height:1.65;letter-spacing:0}.development-note-tooltip[hidden]{display:none}.development-note-head{display:flex;justify-content:space-between;gap:14px;align-items:start}.development-note-head strong{font-size:13px}.development-note-head button{border:0;background:transparent;color:#50675b;width:24px;height:24px;flex:none;font-size:20px;line-height:1}.development-note-tooltip h4{font-size:12px;margin:15px 0 6px}.development-note-tooltip ul{margin:0;padding-left:18px}.development-note-tooltip li+li{margin-top:7px}.development-notes-table td{white-space:normal;line-height:1.7}.development-notes-table th{white-space:normal}.development-notes-table ul{margin:0;padding-left:18px}.development-notes-table li+li{margin-top:7px}.port-complete{color:#286444;font-size:12px;margin:5px 0}.port-arrival-section .product-binary{margin:15px 0}.port-arrival-section .section-head .btn{flex:none;white-space:nowrap}.port-arrival-section h3{font-size:15px}.port-arrival-section .metric-row div{overflow-wrap:anywhere}
.development-notes-table.data-table{table-layout:fixed;min-width:840px}.development-notes-table.data-table td,.development-notes-table.data-table th{white-space:normal;overflow-wrap:anywhere}.development-notes-table.data-table th:first-child{width:16%}.development-notes-table.data-table th:nth-child(2){width:12%}.development-notes-table.data-table th:nth-child(3),.development-notes-table.data-table th:nth-child(4){width:36%}.trade-section .data-table td,.trade-section .data-table th{white-space:normal;overflow-wrap:anywhere}
.development-note-tooltip{pointer-events:none}.development-note-tooltip[data-pinned="true"]{pointer-events:auto}@media(max-width:650px){.development-notes-table.data-table{display:block;min-width:0}.development-notes-table.data-table thead{display:none}.development-notes-table.data-table tbody{display:block}.development-notes-table.data-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;border-bottom:1px solid #bdcbc4;padding:14px 0}.development-notes-table.data-table td{display:block;border:0;padding:8px 4px;min-width:0}.development-notes-table.data-table td:nth-child(3),.development-notes-table.data-table td:nth-child(4){grid-column:1/-1}.development-notes-table.data-table td:nth-child(3):before{content:'현재 적용 방법';display:block;font-weight:700;margin-bottom:6px}.development-notes-table.data-table td:nth-child(4):before{content:'앞으로 변경·유지할 방법';display:block;font-weight:700;margin-bottom:6px}}
.development-note-button:before{content:'?'}
.milestone-date{display:inline-block;white-space:nowrap;font-size:12px;font-variant-numeric:tabular-nums;padding:6px 4px;color:#51685c;background:none;border:0;border-bottom:1px dashed #a1b3a7;border-radius:0;min-height:30px}
.milestone-line{display:block;line-height:1.7;text-align:left}
.milestone-compact{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:10px 12px;background:#f5f8f6;border-top:1px solid #cbd9d1}
.milestone-compact>label{display:flex;flex-direction:column;gap:4px;font-size:12px}
.milestone-compact select,.milestone-compact input{min-height:32px;padding:5px 7px;width:auto}
.milestone-compact-actions{display:flex;gap:6px;flex-wrap:wrap}
.milestone-compact #milestone-error{flex-basis:100%;color:#9c3434;font-size:12px}
.milestone-compact #milestone-error:empty{display:none}
.milestone-line.changed{color:#a65a1d}
.milestone-line.done{color:#246746;font-weight:600}
.milestone-date.readonly{border:0;padding:0;min-height:0}
.order-name-inline{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.milestone-date.changed{color:#a65a1d;background:#fff3e2}
.milestone-date.done{color:#246746;background:#edf6ef;border-bottom-style:solid}
button.milestone-date:hover{outline:1px solid #9bb4a5;background:#e8f2ed}
#order-schedule-list button.milestone-date{min-width:0}
.milestone-editor h3{font-size:15px;margin:0}
.milestone-editor .grid{margin-top:15px}
.milestone-editor .field input,.milestone-editor .field select{width:100%}
.milestone-history{margin-top:18px;border-top:1px solid #bdcfc3;padding-top:12px}
.milestone-history summary{cursor:pointer;font-size:12px}
.milestone-history td{white-space:normal}
.milestone-editor .product-binary{margin:16px 0}
.risk-date-pair{display:grid;grid-template-columns:auto 1fr;gap:5px 10px;font-size:12px}
.risk-date-pair span{color:#62736c}
.risk-date-pair strong{font-weight:500;font-variant-numeric:tabular-nums}
.data-table td.risk-deficit{background:#fff0e9!important;color:#a14428;font-weight:700}
.data-table td.risk-covered{background:#edf5f0!important;color:#2a6946}
.data-table td.risk-product-name{min-width:190px;max-width:320px;white-space:normal;overflow-wrap:anywhere}
.data-table td.risk-arrival-note{min-width:140px;max-width:220px;white-space:normal;color:#a45126}
#monthly-risk .data-table th{white-space:normal;min-width:72px}
/* Shared table hierarchy; warning and discontinued states keep their own colors. */
.data-table{font-size:13px}
.data-table th{background:#e6eee9;color:#344f40;font-weight:700;border-bottom:2px solid #aebfb4}
.data-table th,.data-table td{border-right:1px solid #dce4df;line-height:1.55}
.data-table th:last-child,.data-table td:last-child{border-right:0}
.data-table>tbody>tr>td{border-bottom:1px solid #cbd8d0}
.data-table>tbody>tr:nth-child(even):not(.discontinued):not(.stock-shortage):not(.stock-excess):not(.missing-order-row):not(.inline-detail-row):not(.virtual-spacer)>td{background:#f3f7f5}
.data-table>tbody>tr:hover:not(.discontinued):not(.stock-shortage):not(.stock-excess):not(.missing-order-row)>td{background:#eaf2ed}
.section-head{border-bottom:2px solid #b8c9bf;padding-bottom:12px}
.trade-section{border-top:2px solid #b8c9bf;padding-top:18px}
.trade-section h3{color:#2c493a}
.detail>h3,.detail>h4{padding-bottom:9px;border-bottom:1px solid #c1d1c7}
.metric-row{background:#edf3ef;border-top:1px solid #c5d5cb;border-bottom:1px solid #c5d5cb;gap:0}
.metric-row>div{padding:4px 18px;border-right:1px solid #c5d5cb}
.metric-row>div:last-child{border-right:0}
.metric-row span{color:#52695d;font-size:12px}
.metric-row b{font-variant-numeric:tabular-nums;color:#273d31}
.order-item-quantity>label:first-child{font-weight:700}
.order-item-quantity .qty{background:#fffef2;border-color:#a5b6a9;font-weight:700}
@media(max-width:650px){#order-composer .order-composer-detail{padding:12px}.metric-row>div{padding:6px 10px}.data-table{font-size:12px}.order-item-metrics{padding:0 10px!important}}
.manifest-form{margin-top:24px;padding-top:18px;border-top:2px solid #9ab4a4}
.manifest-form h3{font-size:15px;margin:0}
.manifest-rows{margin:18px 0;border-top:1px solid #bdcfc3}
.manifest-item{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(180px,1fr);gap:16px;padding:16px 12px;border-bottom:1px solid #bdcfc3;line-height:1.7}
.manifest-item:nth-child(even){background:#f1f6f3}
.manifest-item.manifest-unmatched{background:#fff3e8}
.manifest-source{min-width:0;overflow-wrap:anywhere}
.manifest-row-warnings{grid-column:1/-1;color:#a45126;font-size:12px}
.manifest-form .product-binary{white-space:normal;margin:14px 0}
.manifest-form .field input{width:100%}
.manifest-warning{font-size:12px;color:#a45126;margin-top:6px}
.shipment-sample-section{margin-top:24px;border-top:2px solid #b8c9bf;padding-top:18px}
.shipment-sample-section h3{font-size:15px}
.shipment-sample-section td{white-space:normal}
.shipment-sample-section .field{margin:12px 0;max-width:500px}
.shipment-sample-section .product-binary{margin:14px 0}
@media(max-width:650px){.manifest-item{grid-template-columns:minmax(0,1fr);gap:12px}.manifest-item .field{grid-column:1}.manifest-form .metric-row>div{width:100%;border:0}}
@media(max-width:650px){.composer-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.composer-actions .btn{min-height:38px}}
