:root{--bg:#F7F5F0;--surface:#fff;--surface2:#F0EDE6;--border:#E2DDD6;--border2:#CCC7BE;--t1:#1A1714;--t2:#6B6560;--t3:#9E9891;--acc:#C4956A;--acc-l:#F5EDE3;--acc-d:#8C6340;--danger:#D04040;--danger-l:#FDEAEA;--success:#2E7D50;--success-l:#EAF5EE;--warn:#B87020;--warn-l:#FDF4E7;--info:#2563EB;--info-l:#EEF4FF;--r:10px;--rl:16px;--scroll-track:#EFE8DF;--scroll-thumb:#C4AB90;--scroll-thumb-hover:#B08F6E;--scroll-thumb-active:#947457;}
*{box-sizing:border-box;margin:0;padding:0;}
body{font-family:"Noto Sans KR",sans-serif;background:var(--bg);color:var(--t1);font-size:14px;line-height:1.6;min-height:100vh;}
*{scrollbar-width:auto;scrollbar-color:var(--scroll-thumb) var(--scroll-track);}
::-webkit-scrollbar{width:12px;height:12px;}
::-webkit-scrollbar-track{background:var(--scroll-track);border-radius:999px;}
::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border-radius:999px;border:3px solid var(--scroll-track);min-height:44px;}
::-webkit-scrollbar-thumb:hover{background:var(--scroll-thumb-hover);}
::-webkit-scrollbar-thumb:active{background:var(--scroll-thumb-active);}
::-webkit-scrollbar-corner{background:var(--scroll-track);}
header{background:var(--t1);color:#fff;padding:0 24px;display:flex;align-items:center;justify-content:space-between;height:56px;position:sticky;top:0;z-index:100;}
.logo{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;cursor:pointer;user-select:none;white-space:nowrap;}
.logo-dot{width:8px;height:8px;background:var(--acc);border-radius:50%;}
.program-name{white-space:nowrap;}
.program-version{font-size:10px;font-weight:500;color:rgba(255,255,255,.68);letter-spacing:.1px;white-space:nowrap;}
.logo-tag{font-size:10px;background:var(--acc);color:#fff;padding:2px 7px;border-radius:4px;font-weight:600;letter-spacing:.5px;}
.logo:hover{opacity:.88}.logo:focus-visible{outline:2px solid var(--acc);outline-offset:4px;border-radius:6px;}
.hdr-r{display:flex;align-items:center;gap:10px;}
.today-badge{background:rgba(255,255,255,.1);padding:3px 10px;border-radius:20px;font-size:11px;color:rgba(255,255,255,.7);font-family:"DM Mono",monospace;}
.app{display:flex;height:calc(100vh - 56px);}
.sidebar{width:210px;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;flex-shrink:0;overflow-y:auto;}
.sb-sec{padding:16px 14px 6px;}
.sb-lbl{font-size:10px;font-weight:700;color:var(--t3);letter-spacing:1px;text-transform:uppercase;margin-bottom:6px;}
.brand-btn{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:8px;border:none;background:transparent;width:100%;text-align:left;cursor:pointer;font-family:inherit;font-size:13px;color:var(--t2);transition:background .15s;}
.brand-btn:hover{background:var(--bg);}
.brand-btn.active{background:var(--acc-l);color:var(--acc-d);font-weight:600;}
.bdot{width:8px;height:8px;border-radius:50%;flex-shrink:0;}
.bcnt{margin-left:auto;font-size:11px;background:var(--surface2);color:var(--t3);padding:1px 6px;border-radius:10px;}
.brand-btn.active .bcnt{background:var(--acc);color:#fff;}
.sb-div{height:1px;background:var(--border);margin:6px 14px;}
.add-brand-btn{margin:6px 14px;padding:7px 10px;border-radius:8px;border:1.5px dashed var(--border2);background:transparent;color:var(--t3);font-size:12px;cursor:pointer;width:calc(100% - 28px);font-family:inherit;transition:all .15s;}
.add-brand-btn:hover{border-color:var(--acc);color:var(--acc);}
.delete-brand-btn{margin:0 14px 10px;padding:7px 10px;border-radius:8px;border:1px solid var(--border);background:transparent;color:var(--danger);font-size:12px;cursor:pointer;width:calc(100% - 28px);font-family:inherit;transition:all .15s;}
.delete-brand-btn:hover:not(:disabled){background:var(--danger-l);border-color:var(--danger);}
.delete-brand-btn:disabled{opacity:.35;cursor:not-allowed;color:var(--t3);}
.main{flex:1;overflow-y:auto;display:flex;flex-direction:column;}
.program-footer{min-height:30px;padding:5px 16px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--t3);font-size:11px;line-height:20px;text-align:center;}
.tabs{background:var(--surface);border-bottom:1px solid var(--border);display:flex;padding:0 26px;gap:14px;flex-shrink:0;position:relative;z-index:30;}
.tab{padding:15px 20px;border:none;background:transparent;color:var(--t2);font-size:15px;font-weight:900;cursor:pointer;border-bottom:3px solid transparent;font-family:inherit;transition:all .15s;white-space:nowrap;letter-spacing:-.15px;}
.tab:hover{color:var(--t1);}
.tab.active{color:var(--t1);border-bottom-color:var(--acc);}
.content{flex:1;padding:20px;display:flex;flex-direction:column;gap:16px;}
.stats-row{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;}
.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:14px 16px;}
.stat-lbl{font-size:11px;color:var(--t3);font-weight:500;margin-bottom:5px;}
.stat-val{font-size:24px;font-weight:700;font-family:"DM Mono",monospace;line-height:1;}
.stat-sub{font-size:11px;color:var(--t3);margin-top:3px;}
.stat-card.acc .stat-val{color:var(--acc-d);}
.stat-card.danger .stat-val{color:var(--danger);}
.stat-card.success .stat-val{color:var(--success);}
.btn{padding:7px 14px;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit;border:none;transition:all .15s;display:inline-flex;align-items:center;gap:5px;}
.btn-primary{background:var(--t1);color:#fff;}
.btn-primary:hover{background:#333;}
.btn-accent{background:var(--acc);color:#fff;}
.btn-accent:hover{background:var(--acc-d);}
.btn-outline{background:transparent;color:var(--t2);border:1px solid var(--border);}
.btn-outline:hover{background:var(--surface2);}
.btn-white{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.25);}
.btn-white:hover{background:rgba(255,255,255,.1);}
.top-manage-btn{font-weight:900;position:relative;color:#fff!important;background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.32);}
.top-manage-btn:hover,.top-manage-btn.active{background:rgba(255,255,255,.14);color:#fff!important;border-color:rgba(255,255,255,.46);}
.top-manage-btn .tab-badge{margin-left:5px;}
.btn-sm{padding:5px 10px;font-size:11px;}
.btn-user{background:#2E7D50;color:#fff;}
.btn-user:hover{background:#1f5c39;}
.tbl-wrap{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);overflow:hidden;}
.content-inventory{min-height:0;overflow:hidden;}
#tab-inventory.content-inventory{padding-bottom:clamp(4px,.55vh,6px);}
.content-inventory .stats-row{flex:0 0 auto;}
.inventory-table-card{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;}
.inventory-table-scroll{flex:1 1 auto;min-height:0;overflow-x:auto;overflow-y:auto;scrollbar-width:thin;}
.inventory-table-scroll::-webkit-scrollbar{width:8px;height:8px;}
.inventory-table-scroll::-webkit-scrollbar-thumb{background:#d4c4b2;border-radius:999px;}
.inventory-table-scroll::-webkit-scrollbar-track{background:#f4eee7;border-radius:999px;}

.inventory-table-scroll table{width:100%;table-layout:fixed;}
.inventory-table-scroll th:nth-child(1),.inventory-table-scroll td:nth-child(1){width:44px;}
.inventory-table-scroll th:nth-child(2),.inventory-table-scroll td:nth-child(2){width:68px;}
.inventory-table-scroll th:nth-child(3),.inventory-table-scroll td:nth-child(3){width:78px;}
.inventory-table-scroll th:nth-child(4),.inventory-table-scroll td:nth-child(4){width:230px;}
.inventory-table-scroll th:nth-child(5),.inventory-table-scroll td:nth-child(5){width:110px;}
.inventory-table-scroll th:nth-child(6),.inventory-table-scroll td:nth-child(6){width:96px;}
.inventory-table-scroll th:nth-child(7),.inventory-table-scroll td:nth-child(7),
.inventory-table-scroll th:nth-child(8),.inventory-table-scroll td:nth-child(8),
.inventory-table-scroll th:nth-child(9),.inventory-table-scroll td:nth-child(9){width:94px;}
.inventory-table-scroll th:nth-child(10),.inventory-table-scroll td:nth-child(10),
.inventory-table-scroll th:nth-child(11),.inventory-table-scroll td:nth-child(11),
.inventory-table-scroll th:nth-child(12),.inventory-table-scroll td:nth-child(12){width:96px;}
.inventory-table-scroll th:nth-child(13),.inventory-table-scroll td:nth-child(13){width:100px;}
.inventory-table-scroll th:nth-child(14),.inventory-table-scroll td:nth-child(14){width:100px;}
.inventory-table-scroll th:nth-child(15),.inventory-table-scroll td:nth-child(15){width:100px;}
.inventory-table-scroll th:nth-child(16),.inventory-table-scroll td:nth-child(16){width:70px;}
.inventory-table-scroll thead th{position:sticky;top:0;z-index:2;}
.tbl-toolbar{display:flex;align-items:center;gap:11px;padding:12px 16px;border-bottom:1px solid var(--border);position:relative;z-index:1;background:var(--surface);}
.srch-inp{padding:8px 13px;border:1px solid var(--border);border-radius:9px;font-size:15px;font-weight:800;background:var(--bg);color:var(--t1);font-family:inherit;outline:none;width:210px;transition:border-color .15s;}
.srch-inp:focus{border-color:var(--acc);}
.flt-sel{padding:8px 12px;border:1px solid var(--border);border-radius:9px;font-size:14px;font-weight:850;background:var(--bg);color:var(--t1);font-family:inherit;outline:none;cursor:pointer;}

/* GPT_OUTLOG_DATE_UI_PATCH: 출고기록 날짜 입력칸을 주변 필터 UI와 맞춤 */
.out-date-inp{
  height:40px;
  width:142px;
  padding:0 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--bg);
  color:var(--t1);
  font-family:inherit;
  font-size:14px;
  font-weight:850;
  outline:none;
  box-shadow:0 1px 0 rgba(26,23,20,.03);
}
.out-date-inp:focus{
  border-color:var(--acc);
  background:#fff;
}
.out-date-inp::-webkit-calendar-picker-indicator{
  cursor:pointer;
  opacity:.72;
}
.out-date-sep{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:14px;
  color:var(--t2);
  font-size:15px;
  font-weight:900;
}
#tab-outlog .tbl-toolbar{
  gap:10px;
  flex-wrap:wrap;
}
@media(max-width:900px){
  .out-date-inp{width:134px;height:39px;font-size:13px;padding:0 10px;}
}
.cnt-badge{font-size:13px;font-weight:850;color:var(--t2);background:var(--surface2);padding:4px 10px;border-radius:12px;}
table{width:100%;border-collapse:collapse;}
th{text-align:left;font-size:11px;font-weight:600;color:var(--t3);letter-spacing:.5px;padding:9px 12px;background:var(--surface2);border-bottom:1px solid var(--border);white-space:nowrap;}
.inventory-table-scroll th{font-size:18px;padding:13px 12px;font-weight:950;color:var(--t1);letter-spacing:-.25px;}
.inventory-table-scroll td{font-size:19px;padding:13px 12px;line-height:1.34;font-weight:900;}
.inventory-table-scroll td:nth-child(1){font-size:18px;font-weight:900;}
.inventory-table-scroll td:nth-child(6),.inventory-table-scroll td:nth-child(7),.inventory-table-scroll td:nth-child(8),.inventory-table-scroll td:nth-child(9){font-size:20px;font-weight:950;letter-spacing:-.25px;}
.inventory-table-scroll td:nth-child(5){font-size:20px;font-weight:950;letter-spacing:-.2px;}
.inventory-table-scroll td:nth-child(10),.inventory-table-scroll td:nth-child(11),.inventory-table-scroll td:nth-child(12){font-size:22px;font-weight:950;letter-spacing:-.25px;}
.inventory-table-scroll td:nth-child(13),.inventory-table-scroll td:nth-child(14){font-size:19px;font-weight:900;}
.inventory-table-scroll .badge{font-size:16px;padding:5px 11px;font-weight:950;}
.inventory-table-scroll .vis-badge{font-size:16px;padding:6px 12px;font-weight:950;}
.inventory-table-scroll .ico-btn{width:38px;height:38px;font-size:18px;}
td{padding:9px 12px;border-bottom:1px solid var(--border);font-size:13px;vertical-align:middle;}
tr:last-child td{border-bottom:none;}
tr:hover td{background:var(--bg);}
.mono{font-family:"DM Mono",monospace;font-size:12px;}
.stock-low{color:var(--danger);font-weight:600;}
.stock-ok{color:var(--success);}
.inv-num{font-size:23px;font-weight:950;letter-spacing:-.25px;}
.inv-num.in{color:var(--info);}
.inv-num.out{color:var(--acc-d);}
.inv-num.stock{font-size:25px;}
.inv-product-name{font-size:23px;font-weight:950;line-height:1.3;color:var(--t1);letter-spacing:-.4px;}
@media(max-width:1200px){.inv-product-name{font-size:21px;}}
@media(max-width:1200px){.inv-num{font-size:21px}.inv-num.stock{font-size:22px}}
.badge{display:inline-block;padding:2px 8px;border-radius:20px;font-size:11px;font-weight:500;}
.b-ok{background:var(--success-l);color:var(--success);}
.exp-badge{font-weight:600;border-radius:20px;padding:2px 8px;font-size:11px;display:inline-block;}
.exp-m8{background:#EAF5EE;color:#2E7D50;}
.exp-m7{background:#EAF5EE;color:#2E7D50;}
.exp-m6{background:#FDF4E7;color:#B87020;}
.exp-m5{background:#FDF4E7;color:#B87020;}
.exp-m4{background:#FEF0E0;color:#C0600A;}
.exp-m3{background:#FEE8D6;color:#C04A00;}
.exp-m2{background:#FDDDD0;color:#C03000;}
.exp-m1{background:#FDEAEA;color:#D04040;}
.b-near{background:var(--warn-l);color:var(--warn);}
.b-over{background:var(--danger-l);color:var(--danger);}
.vis-on{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:20px;font-size:11px;font-weight:600;background:var(--success-l);color:var(--success);cursor:pointer;border:none;font-family:inherit;transition:all .15s;}
.vis-on:hover{background:#c8e6d4;}
.vis-off{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:20px;font-size:11px;font-weight:600;background:var(--surface2);color:var(--t3);cursor:pointer;border:none;font-family:inherit;transition:all .15s;}
.vis-off:hover{background:var(--border2);color:var(--t2);}
.inv-photo-frame{width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;line-height:0;}
.thumb{width:48px;height:48px;display:block;border-radius:8px;object-fit:cover;border:1px solid var(--border);background:var(--surface2);}
.thumb-empty{width:48px;height:48px;border-radius:8px;border:1.5px dashed var(--border2);background:var(--surface2);display:none;align-items:center;justify-content:center;font-size:18px;line-height:1;color:var(--t3);cursor:pointer;}
.inv-photo-frame.is-empty .thumb-empty,.inv-photo-frame.is-broken .thumb-empty{display:flex;}
.inv-category-section-row{height:auto!important;background:transparent!important;}
.inv-category-section-row:hover{background:transparent!important;}
.inv-category-section-cell{padding:14px 12px 7px!important;border-top:1px solid rgba(28,25,21,.72)!important;border-bottom:0!important;background:#f6f0e5!important;text-align:left!important;line-height:1.25;}
.inv-category-section-label{font-size:14px;font-weight:800;color:#27231e;letter-spacing:-.01em;}
.inv-category-section-count{margin-left:6px;font-size:12px;font-weight:700;color:#766d61;}
.inv-category-section-row:first-child .inv-category-section-cell{padding-top:10px!important;}
.inv-all-section-row .inv-category-section-cell{border-top-color:rgba(28,25,21,.82)!important;background:linear-gradient(90deg,#f3eadc 0,#f8f4ed 72%,#fbf9f5 100%)!important;}
.inv-all-section-row .inv-category-section-label{font-size:15px;}
.io-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.io-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);overflow:hidden;}
.io-hdr{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border);}
.io-ttl{font-size:13px;font-weight:600;}
.lbl-in{font-size:11px;background:var(--info-l);color:var(--info);padding:2px 8px;border-radius:20px;font-weight:600;}
.lbl-out{font-size:11px;background:var(--acc-l);color:var(--acc-d);padding:2px 8px;border-radius:20px;font-weight:600;}
.io-list{max-height:300px;overflow-y:auto;}
.io-item{display:flex;align-items:center;gap:14px;padding:14px 16px;border-bottom:1px solid var(--border);min-height:64px;}
.io-item:last-child{border-bottom:none;}
.io-ico{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:900;flex-shrink:0;}
.ico-in{background:var(--info-l);color:var(--info);}
.ico-out{background:var(--acc-l);color:var(--acc-d);}
.io-info{flex:1;min-width:0;}
.io-info.io-line{display:grid;grid-template-columns:minmax(190px,36%) minmax(0,1fr);align-items:center;gap:16px;}
.io-name{font-size:18px;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--t1);}
.io-meta{font-size:17px;color:var(--t2);font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.io-qty{font-family:"DM Mono",monospace;font-size:18px;font-weight:950;flex-shrink:0;min-width:54px;text-align:right;}
.qty-in{color:var(--info);}
.qty-out{color:var(--acc-d);}
.io-empty{padding:30px;text-align:center;color:var(--t3);font-size:15px;font-weight:700;}
.io-footer{padding:10px 16px;border-top:1px solid var(--border);}
@media(max-width:980px){.io-grid{grid-template-columns:1fr}.io-info.io-line{grid-template-columns:1fr;gap:3px}.io-name{font-size:17px}.io-meta{font-size:14px;white-space:normal}.io-qty{font-size:17px}}
.sum-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);padding:18px;}
.sum-row{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--border);font-size:13px;}
.sum-row:last-child{border-bottom:none;}
.sum-lbl{color:var(--t2);}
.sum-val{font-family:"DM Mono",monospace;font-weight:600;}
.summary-flow-row{display:grid;grid-template-columns:minmax(110px,1.1fr) auto minmax(150px,1fr) minmax(130px,.9fr);align-items:center;gap:22px;min-height:78px;padding:15px 4px;border-bottom:1px solid var(--border);}
.summary-flow-row:last-child{border-bottom:none;}
.summary-flow-person{display:flex;align-items:center;gap:12px;min-width:0;}
.summary-flow-name{font-size:28px;line-height:1;font-weight:950;color:var(--t1);letter-spacing:-.06em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.summary-flow-btn{font-size:19px!important;font-weight:900!important;border-radius:999px!important;padding:11px 21px!important;white-space:nowrap;}
.summary-flow-metric{text-align:right;font-size:20px;font-weight:900;color:var(--acc-d);line-height:1.1;white-space:nowrap;}
.summary-flow-metric b{display:inline-block;margin-left:7px;font-family:"DM Mono",monospace;font-size:25px;font-weight:950;color:var(--danger);letter-spacing:-.04em;}
.summary-flow-metric.qty b{color:var(--acc-d);}
#tab-summary .summary-pair-title{font-size:20px!important;font-weight:950!important;margin-bottom:12px!important;letter-spacing:-.04em;color:var(--t1);}
#tab-summary .summary-pair-title span{font-size:14px!important;color:var(--t3)!important;font-weight:800!important;}
@media(max-width:1200px){.summary-flow-row{grid-template-columns:minmax(110px,1.1fr) auto minmax(150px,1fr) minmax(130px,.9fr);gap:14px;min-width:720px}.summary-flow-metric{text-align:left}.summary-flow-name{font-size:24px}.summary-flow-btn{font-size:16px!important;padding:9px 16px!important}.summary-flow-metric b{font-size:22px}}
.act-row{display:flex;gap:4px;}
.ico-btn{width:26px;height:26px;border-radius:6px;border:1px solid var(--border);background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:13px;color:var(--t3);transition:all .15s;}
.ico-btn:hover{background:var(--surface2);color:var(--t1);}
.ico-btn.del:hover{background:var(--danger-l);color:var(--danger);border-color:var(--danger);}
.empty-state{text-align:center;padding:50px 24px;color:var(--t3);}
.empty-icon{font-size:36px;margin-bottom:10px;}
.empty-title{font-size:14px;font-weight:600;color:var(--t2);margin-bottom:4px;}
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1000;display:none;align-items:center;justify-content:center;}
.overlay.open{display:flex;}
.modal{background:var(--surface);border-radius:var(--rl);width:500px;max-height:90vh;overflow-y:auto;}
.modal-hdr{padding:18px 22px 14px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;}
.modal-ttl{font-size:14px;font-weight:700;}
.modal-x{width:26px;height:26px;border-radius:50%;border:none;background:var(--surface2);color:var(--t2);cursor:pointer;font-size:14px;}
.modal-body{padding:18px 22px;display:flex;flex-direction:column;gap:13px;}
.modal-foot{padding:12px 22px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:8px;}

/* GPT_SIMPLE_COMMON_DIALOG_FOUNDATION_V1 */
.gpt-simple-dialog-overlay{z-index:1080;padding:18px;box-sizing:border-box;}
.gpt-simple-dialog{width:min(460px,calc(100vw - 36px));max-height:min(86vh,620px);overflow:hidden;box-shadow:0 18px 54px rgba(24,20,18,.24);}
.gpt-simple-dialog-body{gap:12px;overflow-y:auto;white-space:pre-line;line-height:1.6;}
.gpt-simple-dialog-message{font-size:16px;font-weight:800;color:var(--t1);overflow-wrap:anywhere;}
.gpt-simple-dialog-detail{font-size:13px;color:var(--t2);overflow-wrap:anywhere;}
.gpt-simple-dialog-reason{padding:11px 12px;border-radius:10px;background:var(--surface2);color:var(--t2);font-size:13px;overflow-wrap:anywhere;}
.gpt-simple-dialog-reason-label{display:block;margin-bottom:4px;color:var(--t1);}
.gpt-simple-dialog-reason-text{white-space:pre-line;}
.gpt-simple-dialog-actions{flex-wrap:wrap;}
.gpt-simple-dialog-actions .btn{min-width:76px;justify-content:center;}
.gpt-simple-dialog-destructive{background:var(--danger);color:#fff;}
.gpt-simple-dialog-destructive:hover{filter:brightness(.92);}
.gpt-simple-dialog-input{width:100%;min-height:42px;border:1px solid var(--border);border-radius:10px;padding:10px 12px;font:inherit;color:var(--t1);background:var(--surface);box-sizing:border-box;}
textarea.gpt-simple-dialog-input{min-height:110px;resize:vertical;}
.gpt-simple-dialog-input:focus{outline:2px solid rgba(178,112,31,.24);border-color:var(--acc);}
.gpt-simple-dialog-validation{font-size:12px;color:var(--danger);font-weight:700;}
.gpt-simple-dialog-inline-fallback{position:fixed;z-index:1070;left:50%;bottom:24px;transform:translateX(-50%);max-width:min(520px,calc(100vw - 32px));padding:11px 15px;border-radius:10px;background:#241f1b;color:#fff;font-size:13px;font-weight:700;line-height:1.5;box-shadow:0 10px 30px rgba(0,0,0,.24);}
@media(max-width:520px){
  .gpt-simple-dialog-overlay{padding:14px;align-items:center;}
  .gpt-simple-dialog{width:calc(100vw - 28px);max-height:calc(100vh - 28px);}
  .gpt-simple-dialog-body{padding:17px 18px;}
  .gpt-simple-dialog-actions{padding:12px 18px;}
  .gpt-simple-dialog-actions .btn{flex:1;justify-content:center;}
}

/* 제품 수정 팝업 가독성 개선 */
.edit-product-modal{width:min(720px,94vw);max-height:88vh;overflow:hidden;display:flex;flex-direction:column;}
.edit-product-modal .modal-hdr{padding:20px 24px 16px;flex:0 0 auto;}
.edit-product-modal .modal-ttl{font-size:18px;font-weight:900;}
.edit-product-modal .modal-x{width:34px;height:34px;font-size:17px;font-weight:900;}
.edit-product-modal .modal-body{padding:20px 24px;gap:16px;overflow-y:auto;max-height:calc(88vh - 122px);font-size:16px;scrollbar-width:thin;}
.edit-product-modal .modal-body::-webkit-scrollbar{width:10px;}
.edit-product-modal .modal-body::-webkit-scrollbar-thumb{background:#cdbda9;border-radius:999px;}
.edit-product-modal .modal-body::-webkit-scrollbar-track{background:#f4eee7;border-radius:999px;}
.edit-product-modal .modal-foot{padding:16px 24px;flex:0 0 auto;}
.edit-product-modal .flbl{font-size:15px;font-weight:900;color:var(--t1);}
.edit-product-modal .fi,.edit-product-modal .fsel2{font-size:17px;padding:13px 14px;border-radius:12px;}
.edit-product-modal .f2{gap:14px;}
.edit-product-modal .fg{gap:7px;}
.edit-product-modal .sub-note{font-size:14px;font-weight:800;}
.edit-product-modal .notice{font-size:14px!important;line-height:1.55;padding:13px 15px;border-radius:12px;}
.edit-product-modal .btn{font-size:15px;padding:11px 15px;border-radius:11px;font-weight:900;}
.edit-product-modal .btn-sm{font-size:14px;padding:9px 12px;}
.edit-product-modal .img-preview{max-height:220px;}
@media(max-width:760px){.edit-product-modal{width:94vw;max-height:90vh}.edit-product-modal .modal-body{max-height:calc(90vh - 120px);padding:16px;gap:14px}.edit-product-modal .f2{grid-template-columns:1fr}.edit-product-modal .fi,.edit-product-modal .fsel2{font-size:16px;padding:12px}.edit-product-modal .flbl{font-size:14px}}
.fg{display:flex;flex-direction:column;gap:5px;}
.f2{display:grid;grid-template-columns:1fr 1fr;gap:11px;}
.flbl{font-size:12px;font-weight:600;color:var(--t2);}
.fi{padding:8px 11px;border:1px solid var(--border);border-radius:8px;font-size:13px;font-family:inherit;background:var(--surface);color:var(--t1);outline:none;width:100%;transition:border-color .15s;}
.fi:focus{border-color:var(--acc);}
.fsel2{padding:8px 11px;border:1px solid var(--border);border-radius:8px;font-size:13px;font-family:inherit;background:var(--surface);color:var(--t1);outline:none;width:100%;cursor:pointer;}
.fsel2:focus{border-color:var(--acc);}
.notice{padding:9px 12px;border-radius:8px;font-size:12px;display:flex;align-items:center;gap:7px;}
.n-info{background:var(--info-l);color:var(--info);}
.n-warn{background:var(--warn-l);color:var(--warn);}
.avatar{width:30px;height:30px;border-radius:50%;background:var(--acc-l);color:var(--acc-d);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex-shrink:0;}
.cp-dot{width:22px;height:22px;border-radius:50%;cursor:pointer;border:2px solid transparent;transition:border-color .15s;display:inline-block;}
.cp-dot.sel{border-color:#333;}
.imp-opt{background:var(--surface2);border:1px solid var(--border);border-radius:var(--r);padding:16px;cursor:pointer;text-align:center;transition:all .15s;}
.imp-opt:hover{border-color:var(--acc);background:var(--acc-l);}
.img-preview{width:100%;height:160px;object-fit:cover;border-radius:8px;border:1px solid var(--border);background:var(--surface2);display:flex;align-items:center;justify-content:center;color:var(--t3);font-size:13px;}
.img-preview img{width:100%;height:160px;object-fit:cover;border-radius:8px;}

.strategy-tags-input{min-height:74px;resize:vertical;line-height:1.5;}
.strategy-chip{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;margin:1px 3px 1px 0;white-space:nowrap;}
.strategy-chip-wrap{display:flex;flex-wrap:wrap;gap:2px;max-width:260px;}
.strategy-chip-combined{display:inline-block;max-width:260px;overflow:hidden;text-overflow:ellipsis;vertical-align:middle;}
.memo-cell{max-width:220px;white-space:normal;color:var(--t2);font-size:12px;line-height:1.45;}
.important-row{background:#FFF8E6!important;}
.important-memo{color:#B45309;font-weight:950;}
.memo-star{display:inline-flex;align-items:center;justify-content:center;margin-right:4px;color:#D97706;font-weight:950;}

/* 출고기록 가독성 확대 */
.outlog-table-scroll{overflow:auto;max-height:calc(100vh - 170px);scrollbar-width:thin;}
.outlog-table-scroll::-webkit-scrollbar{width:8px;height:8px;}
.outlog-table-scroll::-webkit-scrollbar-thumb{background:#d4c4b2;border-radius:999px;}
.outlog-table-scroll::-webkit-scrollbar-track{background:#f4eee7;border-radius:999px;}
.outlog-table-scroll table{min-width:1780px;table-layout:fixed;}
.outlog-table-scroll thead th{position:sticky;top:0;z-index:10;font-size:16px;font-weight:950;color:var(--t1);padding:13px 10px;letter-spacing:-.15px;}
.outlog-table-scroll th:nth-child(1),.outlog-table-scroll td:nth-child(1){width:138px;}
.outlog-table-scroll th:nth-child(2),.outlog-table-scroll td:nth-child(2){width:130px;}
.outlog-table-scroll th:nth-child(3),.outlog-table-scroll td:nth-child(3){width:102px;text-align:center;}
.outlog-table-scroll th:nth-child(4),.outlog-table-scroll td:nth-child(4){width:380px;}
.outlog-table-scroll th:nth-child(5),.outlog-table-scroll td:nth-child(5){width:58px;text-align:center;}
.outlog-table-scroll th:nth-child(6),.outlog-table-scroll td:nth-child(6){width:66px;text-align:center;}
.outlog-table-scroll th:nth-child(7),.outlog-table-scroll td:nth-child(7){width:118px;}
.outlog-table-scroll th:nth-child(8),.outlog-table-scroll td:nth-child(8){width:132px;background:rgba(199,36,45,.035);}
.outlog-table-scroll th:nth-child(9),.outlog-table-scroll td:nth-child(9){width:145px;}
.outlog-table-scroll th:nth-child(10),.outlog-table-scroll td:nth-child(10){width:180px;}
.outlog-table-scroll th:nth-child(11),.outlog-table-scroll td:nth-child(11){width:250px;}
.outlog-table-scroll th:nth-child(12),.outlog-table-scroll td:nth-child(12){width:70px;text-align:center;}
#tab-outlog .outlog-table-scroll td{font-size:17px;font-weight:850;padding:16px 14px;line-height:1.42;vertical-align:middle;}
#tab-outlog .outlog-date{font-size:16px!important;font-weight:900;white-space:nowrap;}

.log-time-2line{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;line-height:1.15;text-align:center;white-space:nowrap;}
.log-time-2line .log-time-date{font-weight:950;letter-spacing:-.2px;}
.log-time-2line .log-time-hm{font-weight:950;text-align:center;color:var(--t1);letter-spacing:.1px;}
.log-time-2line .log-time-registered{font-size:11px;font-weight:950;color:#9a5a18;letter-spacing:-.2px;white-space:nowrap;}
#tab-outlog .outlog-product-name{font-size:19px;font-weight:950;line-height:1.28;color:var(--t1);word-break:keep-all;}
#tab-outlog .outlog-order-no{font-size:16px;font-weight:900;white-space:nowrap;}
#tab-outlog .outlog-unit{font-size:17px!important;font-weight:850;color:var(--t2);white-space:nowrap;justify-content:center;}
#tab-outlog .outlog-qty{font-size:18px!important;color:var(--acc-d);font-weight:950;white-space:nowrap;justify-content:center;}
#tab-outlog .outlog-amount{font-size:18px!important;color:var(--danger);font-weight:950;white-space:nowrap;}
#tab-outlog .outlog-total-amount{font-size:20px!important;color:var(--danger);font-weight:1000;white-space:nowrap;}
#tab-outlog .outlog-total-badge{display:inline-block;padding:5px 8px;border-radius:10px;background:#fff1f1;border:1px solid rgba(199,36,45,.18);color:var(--danger);font-weight:1000;}
#tab-outlog .outlog-table-scroll .badge{font-size:15px;padding:5px 10px;font-weight:900;}
#tab-outlog .outlog-table-scroll .strategy-chip{font-size:14px;padding:4px 9px;font-weight:900;}
#tab-outlog .outlog-table-scroll .memo-cell{font-size:16px;line-height:1.5;max-width:none;}
#tab-outlog .outlog-table-scroll .ico-btn{width:34px;height:34px;font-size:17px;}
#tab-outlog .outlog-item-stack{display:flex;flex-direction:column;gap:7px;}
#tab-outlog .outlog-item-line{min-height:25px;display:flex;align-items:center;}
#tab-outlog .outlog-group-meta{font-size:16px;font-weight:900;color:var(--t2);}
#tab-outlog tr.outlog-group-row td{border-bottom:1px solid var(--border);}
#tab-outlog tr.outlog-group-subrow td{border-top:1px dashed rgba(196,149,106,.18);}
#tab-outlog .outlog-group-row td[rowspan]{vertical-align:middle;}
#tab-outlog .strategy-chip-combined{max-width:none;overflow:visible;text-overflow:clip;white-space:normal;display:inline-flex;flex-wrap:wrap;gap:5px 7px;line-height:1.45;align-items:center;word-break:keep-all;}
#tab-outlog .outlog-tag-wrap{display:flex;flex-wrap:wrap;gap:5px 7px;align-items:center;line-height:1.45;}
#tab-outlog .outlog-tag-wrap .strategy-chip{font-size:14px;padding:4px 9px;font-weight:900;white-space:nowrap;}
#tab-outlog .outlog-memo-input{width:100%;min-height:46px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--t1);padding:8px 10px;font-family:inherit;font-size:15px;font-weight:800;line-height:1.35;resize:vertical;outline:none;}
#tab-outlog .outlog-memo-input:focus{border-color:var(--acc);box-shadow:0 0 0 2px rgba(196,149,106,.16);}
#tab-outlog .outlog-memo-input::placeholder{color:var(--t3);font-weight:700;}

/* GPT_INLOG_PAGE_V2: 입고기록 폰트/컬럼 정리 */
#tab-inlog{min-height:0;overflow:hidden;}
#tab-inlog .tbl-wrap{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;position:relative;background:var(--surface);z-index:1;}
#tab-inlog .tbl-toolbar{position:relative;top:auto;z-index:30;background:var(--surface);flex:0 0 auto;box-shadow:0 1px 0 var(--border);}
#tab-inlog .outlog-table-scroll{position:relative;z-index:1;flex:1 1 auto;min-height:0;max-height:none;overflow:auto;isolation:isolate;background:var(--surface);}
#tab-inlog .outlog-table-scroll table{min-width:1540px;table-layout:fixed;position:relative;z-index:1;}
#tab-inlog .outlog-table-scroll thead th{position:sticky;top:0;z-index:6;background:var(--surface2);font-size:16px;font-weight:950;color:var(--t1);padding:13px 10px;letter-spacing:-.15px;}
#tab-inlog .outlog-table-scroll td{font-size:17px;font-weight:850;padding:16px 14px;line-height:1.42;vertical-align:middle;background:var(--surface);}
#tab-inlog .outlog-table-scroll tbody tr:hover td{background:var(--bg);}
#tab-inlog tr.outlog-group-row td{border-bottom:1px solid var(--border);}
#tab-inlog .outlog-date{font-size:16px!important;font-weight:900;white-space:nowrap;}
#tab-inlog .outlog-product-name{font-size:19px;font-weight:950;line-height:1.28;color:var(--t1);word-break:keep-all;}
#tab-inlog .outlog-item-stack{display:flex;flex-direction:column;gap:7px;}
#tab-inlog .outlog-item-line{min-height:25px;display:flex;align-items:center;}
#tab-inlog .inlog-qty{font-size:18px!important;color:var(--info);font-weight:950;white-space:nowrap;justify-content:center;}
#tab-inlog .inlog-unit{font-size:18px!important;color:var(--t1);font-weight:950;white-space:nowrap;justify-content:center;}
#tab-inlog .inlog-memo-cell{font-size:16px;line-height:1.5;}
#tab-inlog .outlog-table-scroll .badge{font-size:15px;padding:5px 10px;font-weight:900;}
#tab-inlog .outlog-table-scroll th:nth-child(1),#tab-inlog .outlog-table-scroll td:nth-child(1){width:150px;}
#tab-inlog .outlog-table-scroll th:nth-child(2),#tab-inlog .outlog-table-scroll td:nth-child(2){width:105px;text-align:center;}
#tab-inlog .outlog-table-scroll th:nth-child(3),#tab-inlog .outlog-table-scroll td:nth-child(3){width:105px;text-align:center;}
#tab-inlog .outlog-table-scroll th:nth-child(4),#tab-inlog .outlog-table-scroll td:nth-child(4){width:330px;}
#tab-inlog .outlog-table-scroll th:nth-child(5),#tab-inlog .outlog-table-scroll td:nth-child(5){width:130px;}
#tab-inlog .outlog-table-scroll th:nth-child(6),#tab-inlog .outlog-table-scroll td:nth-child(6){width:85px;text-align:center;}
#tab-inlog .outlog-table-scroll th:nth-child(7),#tab-inlog .outlog-table-scroll td:nth-child(7){width:90px;text-align:center;}
#tab-inlog .outlog-table-scroll th:nth-child(8),#tab-inlog .outlog-table-scroll td:nth-child(8){width:420px;}



/* Scoped table-layer rules: avoid global sticky side effects */
#tab-inventory .tbl-toolbar,
#tab-inout .tbl-toolbar,
#tab-orderReceive .tbl-toolbar,
#tab-orderHistory .tbl-toolbar,
#tab-members .tbl-toolbar,
#tab-messages .tbl-toolbar,
#tab-summary .tbl-toolbar{position:relative;top:auto;z-index:1;background:var(--surface);}
#tab-inventory .inventory-table-scroll thead th{position:sticky;top:0;z-index:4;background:var(--surface2);}
#tab-outlog{min-height:0;overflow:hidden;}
#tab-outlog .tbl-wrap{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden;}
#tab-outlog .tbl-toolbar{position:relative;top:auto;z-index:5;background:var(--surface);flex:0 0 auto;}
#tab-outlog .outlog-table-scroll{flex:1 1 auto;min-height:0;max-height:none;overflow:auto;position:relative;isolation:isolate;background:var(--surface);}
#tab-outlog .outlog-table-scroll thead th{position:sticky;top:0;z-index:6;background:var(--surface2);}
#tab-outlog .outlog-table-scroll tbody td{position:relative;z-index:1;background:var(--surface);}
#tab-outlog .outlog-table-scroll tbody tr:hover td{background:var(--bg);}
#tab-outlog .outlog-total-badge{position:relative;z-index:1;}



/* GPT_20260713_SCROLLBAR_UNIFY_V58: 전체 스크롤바 통일 */
.inventory-table-scroll,.edit-product-modal .modal-body,.outlog-table-scroll,.order-admin-items-scroll,.member-table-scroll,#ovAddIn .modal-body,#ovAddOut .modal-body,#tab-strategySets .strategy-set-list,#tab-strategySets .strategy-current-list,.promo-summary-modal-body,.ps-drop,.sidebar,.main{scrollbar-width:auto;scrollbar-color:var(--scroll-thumb) var(--scroll-track);}
.inventory-table-scroll::-webkit-scrollbar,.edit-product-modal .modal-body::-webkit-scrollbar,.outlog-table-scroll::-webkit-scrollbar,.order-admin-items-scroll::-webkit-scrollbar,.member-table-scroll::-webkit-scrollbar,#ovAddIn .modal-body::-webkit-scrollbar,#ovAddOut .modal-body::-webkit-scrollbar,#tab-strategySets .strategy-set-list::-webkit-scrollbar,#tab-strategySets .strategy-current-list::-webkit-scrollbar,.promo-summary-modal-body::-webkit-scrollbar,.ps-drop::-webkit-scrollbar,.sidebar::-webkit-scrollbar,.main::-webkit-scrollbar{width:12px;height:12px;}
.inventory-table-scroll::-webkit-scrollbar-thumb,.edit-product-modal .modal-body::-webkit-scrollbar-thumb,.outlog-table-scroll::-webkit-scrollbar-thumb,.order-admin-items-scroll::-webkit-scrollbar-thumb,.member-table-scroll::-webkit-scrollbar-thumb,#ovAddIn .modal-body::-webkit-scrollbar-thumb,#ovAddOut .modal-body::-webkit-scrollbar-thumb,#tab-strategySets .strategy-set-list::-webkit-scrollbar-thumb,#tab-strategySets .strategy-current-list::-webkit-scrollbar-thumb,.promo-summary-modal-body::-webkit-scrollbar-thumb,.ps-drop::-webkit-scrollbar-thumb,.sidebar::-webkit-scrollbar-thumb,.main::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border-radius:999px;border:3px solid var(--scroll-track);min-height:44px;}
.inventory-table-scroll::-webkit-scrollbar-thumb:hover,.edit-product-modal .modal-body::-webkit-scrollbar-thumb:hover,.outlog-table-scroll::-webkit-scrollbar-thumb:hover,.order-admin-items-scroll::-webkit-scrollbar-thumb:hover,.member-table-scroll::-webkit-scrollbar-thumb:hover,#ovAddIn .modal-body::-webkit-scrollbar-thumb:hover,#ovAddOut .modal-body::-webkit-scrollbar-thumb:hover,#tab-strategySets .strategy-set-list::-webkit-scrollbar-thumb:hover,#tab-strategySets .strategy-current-list::-webkit-scrollbar-thumb:hover,.promo-summary-modal-body::-webkit-scrollbar-thumb:hover,.ps-drop::-webkit-scrollbar-thumb:hover,.sidebar::-webkit-scrollbar-thumb:hover,.main::-webkit-scrollbar-thumb:hover{background:var(--scroll-thumb-hover);}
.inventory-table-scroll::-webkit-scrollbar-track,.edit-product-modal .modal-body::-webkit-scrollbar-track,.outlog-table-scroll::-webkit-scrollbar-track,.order-admin-items-scroll::-webkit-scrollbar-track,.member-table-scroll::-webkit-scrollbar-track,#ovAddIn .modal-body::-webkit-scrollbar-track,#ovAddOut .modal-body::-webkit-scrollbar-track,#tab-strategySets .strategy-set-list::-webkit-scrollbar-track,#tab-strategySets .strategy-current-list::-webkit-scrollbar-track,.promo-summary-modal-body::-webkit-scrollbar-track,.ps-drop::-webkit-scrollbar-track,.sidebar::-webkit-scrollbar-track,.main::-webkit-scrollbar-track{background:var(--scroll-track);border-radius:999px;}
.ps-wrap{position:relative;width:100%;}
.ps-input{width:100%;padding:8px 32px 8px 11px;border:1px solid var(--border);border-radius:8px;font-size:13px;font-family:inherit;background:var(--surface);color:var(--t1);outline:none;box-sizing:border-box;transition:border-color .15s;}
.ps-input:focus{border-color:var(--acc);}
.ps-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;color:var(--t3);font-size:14px;padding:2px 4px;line-height:1;display:none;}
.ps-clear.vis{display:block;}
.ps-drop{position:absolute;top:calc(100% + 3px);left:0;right:0;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 6px 20px rgba(0,0,0,.13);z-index:900;max-height:220px;overflow-y:auto;display:none;}
.ps-drop.open{display:block;}
.ps-item{padding:9px 13px;font-size:13px;cursor:pointer;color:var(--t1);border-bottom:1px solid var(--border);line-height:1.4;}
.ps-drop button.ps-item{width:100%;box-sizing:border-box;margin:0;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent;appearance:none;font-family:inherit;}
.ps-item:last-child{border-bottom:none;}
.ps-item:hover,.ps-item.ps-hi{background:var(--acc-l);color:var(--acc-d);}
.ps-drop button.ps-item:focus-visible{outline:2px solid var(--acc);outline-offset:-2px;background:var(--acc-l);color:var(--acc-d);}
.ps-brand{font-size:11px;color:var(--acc);font-weight:600;margin-right:5px;}
.ps-stock{font-size:11px;color:var(--t3);margin-left:4px;}
.ps-empty{padding:14px 13px;font-size:13px;color:var(--t3);text-align:center;}
.gpt-search-option{display:flex!important;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;}
.gpt-search-main{display:block;font-size:14px;font-weight:950;color:var(--t1);line-height:1.35;}
.gpt-search-meta{display:block!important;margin-left:0!important;font-size:12px!important;font-weight:800!important;color:var(--t3)!important;line-height:1.3;}
.gpt-search-option .ps-brand,.gpt-search-option .strategy-search-brand{display:block;margin:0 0 1px!important;font-size:11px!important;}
.gpt-voice-host{position:relative;}
.gpt-voice-host .gpt-voice-enabled{padding-right:42px!important;}
.gpt-voice-host.gpt-voice-host-has-clear .gpt-voice-enabled{padding-right:68px!important;}
.gpt-voice-inline-wrap{position:relative;display:inline-block;max-width:100%;}
.gpt-voice-inline-wrap-textarea{display:block;line-height:0;}
.gpt-voice-inline-wrap .gpt-voice-enabled{padding-right:42px!important;}
.gpt-voice-price-unit-host{position:relative;}
.price-input-unit.gpt-voice-price-unit-host .gpt-voice-enabled{padding-right:72px!important;}
.price-input-unit.gpt-voice-price-unit-host .price-unit{right:44px;}
.gpt-voice-price-unit-host .gpt-voice-btn{right:8px;}
.gpt-voice-btn{position:absolute;right:8px;top:50%;transform:translateY(-50%);z-index:3;width:28px;height:28px;padding:4px;border:0;border-radius:4px;background:transparent;color:#2b2927;font:inherit;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;}
.gpt-voice-host .gpt-voice-btn{right:8px;}
.gpt-voice-host.gpt-voice-host-has-clear .gpt-voice-btn{right:34px;}
.gpt-voice-host.gpt-voice-host-has-label .gpt-voice-btn{top:auto;bottom:16px;transform:none;}
.gpt-voice-icon{display:block;width:18px;height:18px;pointer-events:none;}
.gpt-voice-btn:hover,.gpt-voice-btn:focus-visible{background:rgba(26,23,20,.05);color:var(--t1);outline:none;box-shadow:0 0 0 1px rgba(26,23,20,.12);}
.gpt-voice-btn[data-listening="1"]{background:rgba(26,23,20,.08);color:var(--t1);box-shadow:none;}
.gpt-voice-btn[disabled]{opacity:.42;cursor:default;}
.gpt-voice-status{position:absolute;right:2px;top:calc(100% + 3px);z-index:905;max-width:min(290px,90vw);padding:3px 7px;border-radius:6px;background:var(--surface);box-shadow:0 2px 8px rgba(0,0,0,.12);color:var(--t2);font-size:11px;font-weight:800;white-space:nowrap;}
.gpt-voice-status[data-voice-layer]{position:fixed;right:auto;left:0;top:0;z-index:950;max-width:min(290px,calc(100vw - 16px));box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;}
.gpt-voice-status[data-state="LISTENING"],.gpt-voice-status[data-state="STARTING"]{color:var(--acc-d);background:var(--acc-l);}
.gpt-voice-status[data-state="SUCCESS"]{color:var(--success);}
.gpt-voice-status[data-state="ERROR"]{color:var(--danger);background:#fff3f3;}

.sort-th{cursor:pointer;user-select:none;transition:color .15s,background .15s;}
.sort-th:hover{color:var(--t1);background:#ebe6dd;}
.sort-mark{display:inline-block;margin-left:4px;font-size:10px;color:var(--acc-d);vertical-align:1px;}
.sort-reset{cursor:pointer;user-select:none;}

.order-admin-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:16px 18px;display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:14px;align-items:start;}
.order-admin-title{font-size:24px;font-weight:950;display:flex;gap:10px;align-items:center;flex-wrap:wrap;line-height:1.25;letter-spacing:-.4px;}
.order-admin-title .order-inline-meta{font-size:23px;font-weight:900;color:var(--t2);letter-spacing:-.35px;}
.order-admin-title .order-inline-meta b{color:var(--t1);font-weight:950;}
.order-admin-title .order-inline-summary{font-size:21px;font-weight:900;color:var(--t2);letter-spacing:-.35px;margin-left:22px;}
.order-admin-title .order-inline-summary b{color:var(--t1);font-weight:950;}
.order-admin-meta{font-size:16px;color:var(--t2);margin-top:6px;line-height:1.7;font-weight:800;}
.order-admin-items-scroll{margin-top:12px;max-height:410px;overflow-y:auto;padding-right:8px;scrollbar-width:thin;}
.order-admin-items-scroll::-webkit-scrollbar{width:8px}.order-admin-items-scroll::-webkit-scrollbar-thumb{background:#d4c4b2;border-radius:999px}.order-admin-items-scroll::-webkit-scrollbar-track{background:#f4eee7;border-radius:999px}
.order-admin-items{font-size:16px;color:var(--t3);display:flex;flex-direction:column;gap:10px;}
.order-item-card{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--border);border-radius:15px;background:#FFFCF7;}
.order-item-main{min-width:0;}
.order-item-name{font-size:29px;font-weight:950;line-height:1.12;color:var(--t1);word-break:keep-all;letter-spacing:-.45px;}
.order-item-sub{margin-top:8px;font-size:18px;font-weight:900;color:var(--t2);display:flex;flex-wrap:wrap;gap:10px 20px;}
.order-item-sub .lbl{color:var(--t3);font-weight:850;margin-right:5px;}
.order-item-sub .order-item-total{color:var(--danger);font-weight:950;font-size:19px;}
.order-item-remove{width:36px;height:36px;border-radius:10px;border:1px solid #e9b8b8;background:#fff;color:#c73e3e;font-weight:950;font-size:20px;cursor:pointer;}
.order-status{display:inline-block;border-radius:20px;padding:3px 10px;font-size:15px;font-weight:950;}
.order-pending{background:var(--warn-l);color:var(--warn);}
.order-received{background:var(--success-l);color:var(--success);}

.tab-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;margin-left:6px;border-radius:999px;background:#D62525;color:#fff;font-size:12px;font-weight:900;vertical-align:middle}
@keyframes orderTabPulse{0%{box-shadow:0 0 0 0 rgba(214,37,37,.45);background:#FFF1F1;}50%{box-shadow:0 0 0 6px rgba(214,37,37,.10);background:#FFE7E7;}100%{box-shadow:0 0 0 0 rgba(214,37,37,0);background:#FFF1F1;}}
.tab.order-alert-pulse{animation:orderTabPulse .85s ease-in-out 5;border-color:#E9A2A2!important;color:#B72020!important;}

.order-actions{display:flex;gap:7px;align-items:center;justify-content:flex-end}.order-actions .btn{min-width:64px;text-align:center;white-space:nowrap}.btn-order-cancel{background:#fff;color:#C73E3E;border:1px solid #E9B8B8}.btn-order-cancel:hover{background:#FFF1F1}
.order-muted{color:var(--muted);font-size:12px;margin-top:5px}

@media(max-width:760px){.order-admin-card{grid-template-columns:1fr}.order-actions{flex-direction:row}.order-actions .btn{width:auto;min-width:72px}.order-admin-items-scroll{max-height:340px;padding-right:4px}.order-admin-title{font-size:21px}.order-admin-title .order-inline-meta{font-size:19px}.order-admin-title .order-inline-summary{font-size:18px;margin-left:0}.order-item-card{grid-template-columns:minmax(0,1fr) 34px}.order-item-name{font-size:23px}.order-item-sub{font-size:16px;gap:8px 12px}.order-item-remove{width:30px;height:30px}}
.act-row{justify-content:center}.act-row .ico-btn{flex:0 0 auto}

.content-members .tbl-wrap{display:flex;flex-direction:column;height:calc(100vh - 145px);min-height:0;overflow:hidden;}
.content-members .member-table-scroll{flex:1 1 auto;min-height:0;max-height:none;overflow-x:auto;overflow-y:auto;}
.member-table-scroll{overflow-x:auto;overflow-y:auto;max-height:430px;scrollbar-width:thin;}
.member-table-scroll::-webkit-scrollbar{width:8px;height:8px;}
.member-table-scroll::-webkit-scrollbar-thumb{background:#d4c4b2;border-radius:999px;}
.member-table-scroll::-webkit-scrollbar-track{background:#f4eee7;border-radius:999px;}
 .member-table-scroll thead th{position:sticky;top:0;z-index:2;}
/* 회원관리 가독성 확대 */
.content-members .tbl-toolbar{padding:14px 16px;}
.content-members .tbl-toolbar .srch-inp,.content-members .tbl-toolbar .flt-sel{height:46px;font-size:18px;font-weight:800;padding:0 14px;}
.content-members .tbl-toolbar .btn-primary{height:46px;font-size:17px;font-weight:900;padding:0 18px;}
#memberHelp{font-size:16px!important;font-weight:800;line-height:1.6;}
.member-table-scroll table{font-size:17px;}
.member-table-scroll th{font-size:16px!important;font-weight:900!important;padding:13px 10px!important;}
.member-table-scroll td{font-size:17px!important;font-weight:800;padding:12px 10px!important;vertical-align:middle;}
.member-table-scroll .srch-inp{height:38px;font-size:16px;font-weight:800;padding:0 10px;}
.member-table-scroll .act.small{font-size:15px;font-weight:900;padding:6px 8px;}

@media(max-width:760px){.content-members .tbl-wrap{height:calc(100vh - 125px);}}

.sub-note{margin-top:5px;font-size:12px;font-weight:900;color:var(--info)}
.admin-login-wrap{min-height:100vh;background:linear-gradient(180deg,#faf7f1 0,#f2ece2 100%);display:none;align-items:center;justify-content:center;padding:28px}
.admin-login-card{width:100%;max-width:420px;background:#fff;border:1px solid var(--border);border-radius:24px;padding:26px;box-shadow:0 12px 36px rgba(43,34,26,.12)}
.admin-login-title{font-size:28px;font-weight:900;margin-bottom:8px;color:var(--t1)}
.admin-login-sub{font-size:14px;color:var(--t2);line-height:1.6;margin-bottom:20px}
.admin-login-card label:not(.admin-login-check){display:block;font-size:13px;font-weight:800;margin:12px 0 6px;color:var(--t1)}
.admin-login-card input[type="text"],.admin-login-card input[type="password"]{width:100%;border:1px solid var(--border);border-radius:12px;padding:13px;font-size:17px;background:var(--bg);outline:none}
.admin-login-check{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:13px;font-weight:700;color:var(--t2)}
.admin-login-check input{width:17px;height:17px}
.admin-login-card .btn{width:100%;margin-top:16px}
.admin-who{font-size:12px;color:#fff;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:6px 10px;font-weight:800;}

.role-badge{display:inline-block;border-radius:999px;padding:2px 7px;margin-left:6px;font-size:11px;font-weight:900;background:#FFF0D7;color:#B25D10}.role-badge.admin{background:#EAF1FF;color:#2D63B8}.member-del{color:#d13f3f;border-color:#e6b8b8}

/* 회원관리 액션/메모 간소화 */
.member-action-select{height:36px;min-width:88px;border:1px solid var(--border);border-radius:9px;background:#fff;color:var(--t1);font-size:15px;font-weight:900;padding:0 10px;cursor:pointer;}
.member-memo-cell{text-align:center;min-width:72px;}
.member-memo-btn{width:42px;height:42px;border-radius:12px;border:2px solid #D9C6AA;background:#FFF8EC;color:#9A5A12;font-size:22px;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 2px 7px rgba(90,52,15,.10);}
.member-memo-btn.has-memo{background:#F5A623;color:#fff;border-color:#C06B00;box-shadow:0 3px 10px rgba(192,107,0,.28);}
.member-memo-btn.has-task{background:#C23B22;color:#fff;border-color:#8F1F10;box-shadow:0 3px 10px rgba(194,59,34,.30);}
.member-memo-btn:hover{background:#B86B16;color:#fff;border-color:#8F4D0E;}
.member-table-scroll table{table-layout:fixed;width:100%;min-width:1180px;}
.member-table-scroll th:nth-child(1),.member-table-scroll td:nth-child(1){width:58px;text-align:center;}
.member-table-scroll th:nth-child(2),.member-table-scroll td:nth-child(2){width:100px;text-align:center;}
.member-table-scroll th:nth-child(3),.member-table-scroll td:nth-child(3){width:125px;text-align:center;}
.member-table-scroll th:nth-child(4),.member-table-scroll td:nth-child(4){width:130px;text-align:center;}
.member-table-scroll th:nth-child(5),.member-table-scroll td:nth-child(5){width:130px;text-align:center;}
.member-table-scroll th:nth-child(6),.member-table-scroll td:nth-child(6){width:115px;text-align:center;}
.member-table-scroll th:nth-child(7),.member-table-scroll td:nth-child(7){width:145px;text-align:center;}
.member-table-scroll th:nth-child(8),.member-table-scroll td:nth-child(8){width:80px;text-align:center;}
.member-table-scroll th:nth-child(9),.member-table-scroll td:nth-child(9){width:145px;text-align:center;}
.member-table-scroll th:nth-child(10),.member-table-scroll td:nth-child(10){width:95px;text-align:right;}
.member-note-modal{width:min(560px,94vw);max-height:86vh;overflow:hidden;display:flex;flex-direction:column;}
.member-note-modal .modal-ttl{font-size:18px;font-weight:900;}
.member-note-modal .modal-body{overflow-y:auto;gap:12px;}
.member-note-target{font-size:16px;font-weight:900;color:var(--t1);}
.member-note-meta{font-size:13px;font-weight:800;color:var(--t3);}
.member-note-textarea{width:100%;min-height:240px;border:1px solid var(--border);border-radius:14px;padding:14px 16px;font-size:18px;font-weight:800;line-height:1.55;resize:vertical;background:#fff;color:var(--t1);}
.member-note-help{font-size:13px;line-height:1.5;color:var(--t3);font-weight:800;background:#F8F1E9;border-radius:12px;padding:10px 12px;}
.member-task-box{border:1px solid var(--border);border-radius:14px;background:#fff;padding:12px;display:flex;flex-direction:column;gap:10px;}
.member-task-title{font-size:15px;font-weight:900;color:var(--t1);display:flex;justify-content:space-between;align-items:center;}
.member-task-add{display:grid;grid-template-columns:1fr auto;gap:8px;}
.member-task-input{height:42px;border:1px solid var(--border);border-radius:10px;padding:0 12px;font-size:15px;font-weight:800;}
.member-task-list{display:flex;flex-direction:column;gap:7px;}
.member-task-row{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;border:1px solid #EFE4D7;border-radius:10px;padding:8px 10px;background:#FFFDFC;}
.member-task-row.done{background:#F6F1EA;color:#8C8175;}
.member-task-row.done .member-task-text{text-decoration:line-through;color:#9B9086;}
.member-task-text{font-size:14px;font-weight:900;line-height:1.35;}
.member-task-del{border:0;background:transparent;color:#C23B22;font-size:16px;font-weight:900;cursor:pointer;}
.member-task-empty{padding:10px;border:1px dashed #D8CBBB;border-radius:10px;color:var(--t3);font-size:13px;font-weight:800;text-align:center;}
.member-table-scroll td.member-action-cell{text-align:right;white-space:nowrap;}


.master-menu-wrap{position:relative;display:inline-block}
.admin-who{cursor:pointer;user-select:none}
.admin-who.master-open{background:rgba(255,255,255,.22);color:#fff;}
.admin-who .tab-badge{margin-left:5px;vertical-align:1px;}
.master-menu{position:absolute;right:0;top:34px;width:220px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 12px 30px rgba(0,0,0,.18);padding:8px;z-index:50;display:none}
.master-menu.show{display:block}
.master-menu .mitem{width:100%;border:0;background:#fff;border-radius:10px;padding:10px 11px;text-align:left;font-size:13px;font-weight:800;color:var(--t1);cursor:pointer}
.master-menu .mitem:hover{background:var(--bg)}
.master-menu .mitem:disabled,.master-menu .mitem.locked{opacity:.42;cursor:not-allowed;background:#f6f3ee;color:var(--t3)}
.master-menu .mitem:disabled:hover,.master-menu .mitem.locked:hover{background:#f6f3ee;color:var(--t3)}
.master-menu .msep{height:1px;background:var(--border);margin:6px 0}
.master-menu .mlbl{font-size:11px;color:var(--t3);font-weight:800;padding:5px 8px 3px}


.drag-handle{width:22px;height:26px;display:inline-flex;align-items:center;justify-content:center;color:var(--border2);cursor:grab;font-size:15px;border-radius:4px;transition:color .15s;margin-right:4px;vertical-align:middle}
.drag-handle:hover{color:var(--t2)}
.drag-num{display:inline-flex;align-items:center;gap:3px;color:var(--t3)}
.drag-disabled{color:var(--t3);font-family:"DM Mono",monospace;font-size:12px}
tr.drag-over td{border-top:2px solid var(--acc)}
tr.dragging-row{opacity:.42}

.order-link{color:var(--info);font-weight:800;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.order-link:hover{opacity:.8}

.msg-compose{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);padding:16px;display:grid;grid-template-columns:180px 1fr auto;gap:10px;align-items:end;}
.msg-compose .fg.full{grid-column:1/-1;}
.msg-list{display:flex;flex-direction:column;gap:10px;padding:12px;}
.msg-card{background:#FFFCF7;border:1px solid var(--border);border-radius:14px;padding:12px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;}
.msg-title{font-size:14px;font-weight:800;color:var(--t1);display:flex;align-items:center;gap:7px;flex-wrap:wrap;}
.msg-meta{font-size:12px;color:var(--t3);margin-top:3px;}
.msg-body{font-size:13px;color:var(--t2);margin-top:8px;white-space:pre-wrap;line-height:1.55;}
.msg-read{font-size:11px;color:var(--t3);margin-top:7px;}
.msg-target-badge{display:inline-block;border-radius:999px;padding:2px 7px;background:var(--info-l);color:var(--info);font-size:11px;font-weight:800;}
.msg-pin-badge{display:inline-block;border-radius:999px;padding:2px 7px;background:#FFF0D7;color:#B25D10;font-size:11px;font-weight:900;}
.msg-pin-check{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:800;color:var(--t1);padding:10px 12px;border:1px solid var(--border);border-radius:12px;background:#FFFCF7;}
.msg-pin-check input{width:16px;height:16px;}
.msg-unread{display:inline-block;border-radius:999px;padding:2px 7px;background:var(--danger-l);color:var(--danger);font-size:11px;font-weight:800;}
.msg-to-label{display:flex!important;align-items:center;justify-content:space-between;gap:8px;}
.msg-all-check{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:900;color:var(--t1);white-space:nowrap;}
.msg-all-check input{width:16px;height:16px;accent-color:var(--acc);}
#msgTo:disabled{background:var(--surface2);color:var(--t3);}
@media(max-width:900px){.msg-compose{grid-template-columns:150px 1fr auto;gap:8px;padding:12px}}
.msg-img-preview{margin-top:9px;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:#fff;max-width:360px}
.msg-img-preview img{width:100%;display:block;max-height:220px;object-fit:contain;background:#fff}

.msg-action-primary{border:none;background:#2b2520;color:#fff;border-radius:10px;padding:8px 12px;font-size:13px;font-weight:900;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.msg-action-primary:hover{background:#17130f}

.msg-edit-card{cursor:default!important;display:block!important}
.msg-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.msg-edit-card .msg-edit-title{font-size:13px;font-weight:900;margin-bottom:10px;color:var(--t1)}
.msg-edit-card input,.msg-edit-card textarea{width:100%;border:1px solid var(--border);border-radius:10px;padding:10px 12px;font-family:inherit;font-size:13px;background:#fff;outline:none}
.msg-edit-card textarea{min-height:108px;resize:vertical;line-height:1.55}
.msg-edit-card input:focus,.msg-edit-card textarea:focus{border-color:var(--acc)}
.msg-edit-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
.msg-action-secondary{border:1px solid var(--border);background:#fff;color:var(--t2);border-radius:10px;padding:8px 12px;font-size:13px;font-weight:900;cursor:pointer}
.msg-edit-pin{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:800;color:var(--t2);margin-top:8px}
.msg-edit-pin input{width:auto}
@media(max-width:760px){.msg-edit-grid{grid-template-columns:1fr}}
.msg-card.compact{cursor:pointer;grid-template-columns:minmax(0,1fr) auto}
.msg-card.compact .msg-body{display:none}
.msg-card.compact:hover{box-shadow:0 4px 14px rgba(61,40,20,.08)}
.msg-popup-ov{position:fixed;inset:0;background:rgba(0,0,0,.42);display:flex;align-items:center;justify-content:center;z-index:9999;padding:22px}
.msg-popup{width:min(720px,96vw);max-height:86vh;overflow:auto;background:#fffdf9;border:1px solid var(--border);border-radius:20px;box-shadow:0 16px 44px rgba(0,0,0,.22);padding:22px}
.msg-popup-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}
.msg-popup-title{font-size:22px;font-weight:900;color:var(--t1);line-height:1.3}
.msg-popup-x{border:none;background:#2b2520;color:#fff;border-radius:10px;width:38px;height:38px;font-size:22px;font-weight:900;cursor:pointer}
.msg-popup-meta{font-size:13px;color:var(--t3);font-weight:700;margin-bottom:14px}
.msg-popup-body{white-space:pre-wrap;line-height:1.7;font-size:15px;color:var(--t2);border-top:1px solid var(--border);padding-top:14px}
.msg-popup-img{margin-top:14px;border:1px solid var(--border);border-radius:14px;overflow:hidden;background:#fff}
.msg-popup-img img{max-width:100%;display:block;margin:0 auto;max-height:520px;object-fit:contain}

.inquiry-box{margin-top:14px}
.inquiry-card{background:#FFFCF7;border:1px solid var(--border);border-radius:14px;padding:12px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;}
.inquiry-status{display:inline-block;border-radius:999px;padding:2px 7px;font-size:11px;font-weight:900;background:#FFF0D7;color:#B25D10}
.inquiry-status.done{background:#E7F5EC;color:#2E7D50}.inquiry-status.closed{background:#F2EDE6;color:#7B6D62}
.inquiry-answer{margin-top:10px;padding:10px 12px;border-radius:12px;background:#F6F0E8;border:1px solid var(--border);white-space:pre-wrap;line-height:1.55;color:var(--t2);font-size:13px}
.guide-url-box{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);padding:14px 16px;display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end;}
.guide-url-box .fg{min-width:0;}
@media(max-width:900px){.guide-url-box{grid-template-columns:1fr;}}


/* Mobile minimum support: landscape-first admin view */
.mobile-rotate-notice{display:none}
@media (max-width:900px){
  body{overflow-x:auto}
  header{height:48px;padding:0 10px;min-width:1024px}
  .logo{font-size:13px}
  .program-version{font-size:9px}
  .logo-tag{font-size:9px;padding:1px 5px}
  .hdr-r{gap:6px}
  .today-badge{font-size:10px;padding:2px 7px}
  .btn-sm{padding:4px 8px;font-size:10px}
  .app{height:calc(100vh - 48px);min-width:1024px}
  .sidebar{width:170px}
  .sb-sec{padding:10px 10px 4px}
  .brand-btn{font-size:12px;padding:6px 8px}
  .add-brand-btn,.delete-brand-btn{margin-left:10px;margin-right:10px;width:calc(100% - 20px)}
  .tabs{padding:0 12px;gap:9px;overflow-x:auto;white-space:nowrap}
  .tab{padding:11px 13px;font-size:13px;font-weight:850}
  .content{padding:12px;gap:10px}
  .stats-row{gap:8px}
  .stat-card{padding:10px 11px}
  .stat-val{font-size:20px}
  .tbl-toolbar{gap:6px;padding:8px 10px;flex-wrap:nowrap}
  .srch-inp{width:165px;font-size:13px;padding:6px 9px}
  .flt-sel{font-size:12px;padding:6px 8px}
  th{font-size:10px;padding:7px 8px}
  td{font-size:12px;padding:7px 8px}
  .io-grid{gap:10px}
  .io-list{max-height:220px}
  .modal{max-width:92vw}
  .master-menu{top:30px}
}
@media (max-width:900px) and (orientation:portrait){
  .mobile-rotate-notice{display:flex;position:fixed;inset:0;z-index:9999;background:rgba(26,23,20,.96);color:#fff;align-items:center;justify-content:center;text-align:center;padding:24px;font-weight:800;line-height:1.7}
  .mobile-rotate-notice .box{max-width:320px}
  .mobile-rotate-notice .icon{font-size:42px;margin-bottom:12px}
}


/* v1.36 KPI card readability update */
.content-inventory .stats-row{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;}
.content-inventory .stat-card{min-height:72px;padding:12px 15px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"lbl val" "sub sub";align-items:end;align-content:center;column-gap:10px;row-gap:4px;}
.content-inventory .stat-lbl{grid-area:lbl;font-size:20px;line-height:1.12;font-weight:900;color:var(--t1);margin:0;letter-spacing:-.03em;}
.content-inventory .stat-val{grid-area:val;font-size:28px;line-height:1;font-weight:900;text-align:right;color:#E22525;font-family:"DM Mono",monospace;}
.content-inventory .stat-sub{grid-area:sub;font-size:17px;line-height:1.15;font-weight:900;color:var(--t1);margin-top:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.content-inventory .stat-card.success .stat-val{color:var(--success);}
.content-inventory .stat-card.acc .stat-val,.content-inventory .stat-card.danger .stat-val{color:#E22525;}
.content-inventory .stat-sub .btn,.content-inventory .stat-sub button{font-size:14px!important;font-weight:900!important;padding:3px 9px!important;border-radius:9px!important;}
@media(max-width:1100px){.content-inventory .stat-lbl{font-size:17px}.content-inventory .stat-val{font-size:24px}.content-inventory .stat-sub{font-size:14px}}

/* v1.58 summary total KPI readability update */
#tab-summary .summary-section-title{font-size:17px;font-weight:900;margin:14px 0 10px;letter-spacing:-.02em;color:var(--t1);}
#tab-summary .summary-kpi-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
#tab-summary .summary-kpi-row .stat-card{min-height:72px;padding:12px 15px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"lbl val" "sub sub";align-items:end;align-content:center;column-gap:10px;row-gap:4px;}
#tab-summary .summary-kpi-row .stat-lbl{grid-area:lbl;font-size:20px;line-height:1.12;font-weight:900;color:var(--t1);margin:0;letter-spacing:-.03em;}
#tab-summary .summary-kpi-row .stat-val{grid-area:val;font-size:28px;line-height:1;font-weight:900;text-align:right;font-family:"DM Mono",monospace;}
#tab-summary .summary-kpi-row .stat-sub{grid-area:sub;font-size:17px;line-height:1.15;font-weight:900;color:var(--t1);margin-top:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
#tab-summary .summary-kpi-row .stat-card.info .stat-val{color:var(--info);}
#tab-summary .summary-kpi-row .stat-card.out .stat-val{color:var(--acc-d);}
#tab-summary .summary-kpi-row .stat-card.success .stat-val{color:var(--success);}
#tab-summary .summary-kpi-row .stat-card.prod .stat-val{color:var(--t1);}



/* GPT_TAB_GROUP_V1: 상단 탭 압축용 소형 전환 버튼 */
.group-switch{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding:0 0 12px;
  flex:0 0 auto;
}
.group-switch-title{
  font-size:22px;
  font-weight:950;
  letter-spacing:-.04em;
  color:var(--t1);
  margin-right:4px;
}
.group-switch-btn{
  min-width:142px;
  height:42px;
  padding:0 22px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--t2);
  font-family:inherit;
  font-size:16px;
  font-weight:950;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  box-shadow:0 1px 0 rgba(26,23,20,.03);
}
.group-switch-btn:hover{background:var(--surface2);color:var(--t1);}
.group-switch-btn.active{background:var(--t1);border-color:var(--t1);color:#fff;}
.group-switch-note{font-size:13px;font-weight:800;color:var(--t3);}
@media(max-width:900px){.group-switch-title{width:100%;}.group-switch-btn{min-width:118px;height:40px;font-size:15px;padding:0 16px;}}

/* GPT_MANAGE_DATA_PANEL_V1: 관리 내부 데이터/점검 카드 */
.manage-panel-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);padding:16px;}
.manage-panel-title{font-size:20px;font-weight:950;color:var(--t1);letter-spacing:-.04em;margin-bottom:4px;}
.manage-panel-help{font-size:13px;font-weight:800;color:var(--t2);line-height:1.45;margin-bottom:12px;}
.manage-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.manage-action-btn{min-height:70px;border:1px solid var(--border);border-radius:14px;background:#fff;color:var(--t1);font-family:inherit;font-size:16px;font-weight:950;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 1px 0 rgba(26,23,20,.03);}
.manage-action-btn:hover{background:var(--acc-l);border-color:var(--acc);color:var(--acc-d);}
.manage-action-btn.danger{color:var(--danger);border-color:#efc9c9;}
.manage-action-btn.danger:hover{background:var(--danger-l);border-color:var(--danger);}
.manage-section-grid{display:grid;grid-template-columns:1fr;gap:14px;}
.manage-quickbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px 0;}
.manage-quick-btn{min-height:36px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--t1);font-family:inherit;font-size:13px;font-weight:900;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:7px 13px;box-shadow:0 1px 0 rgba(26,23,20,.03);white-space:nowrap;}
.manage-quick-btn:hover{background:var(--acc-l);border-color:var(--acc);color:var(--acc-d);}
.manage-quick-btn.danger{color:var(--danger);border-color:#efc9c9;}
.manage-quick-btn.danger:hover{background:var(--danger-l);border-color:var(--danger);}
@media(max-width:1100px){.manage-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* GPT_ARCHIVE_VIEW_V1: 기록보관소 조회 전용 탭 */
#tab-archive{min-height:0;overflow:hidden;}
.archive-top-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);padding:16px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;}
.archive-title{font-size:22px;font-weight:950;letter-spacing:-.04em;color:var(--t1);}
.archive-help{font-size:13px;font-weight:750;color:var(--t2);line-height:1.45;margin-top:2px;}
.archive-month-select{height:42px;border:1px solid var(--border);border-radius:11px;background:var(--bg);padding:0 13px;font-size:16px;font-weight:900;color:var(--t1);font-family:inherit;outline:none;}
.archive-kpi-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;}
.archive-kpi{background:var(--surface);border:1px solid var(--border);border-radius:var(--r);padding:12px 14px;min-height:76px;}
.archive-kpi-lbl{font-size:15px;font-weight:900;color:var(--t1);letter-spacing:-.03em;}
.archive-kpi-val{font-size:28px;font-weight:950;line-height:1.05;margin-top:6px;font-family:"DM Mono",monospace;}
.archive-subtabs{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.archive-subtab{border:1px solid var(--border);background:var(--surface);color:var(--t2);border-radius:999px;padding:9px 14px;font-size:15px;font-weight:900;font-family:inherit;cursor:pointer;}
.archive-subtab b{font-family:"DM Mono",monospace;font-size:14px;font-weight:950;margin-left:4px;color:inherit;}
.archive-subtab.active{background:var(--t1);border-color:var(--t1);color:#fff;}
.archive-table-card{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);overflow:hidden;}
.archive-toolbar{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--border);background:var(--surface);flex:0 0 auto;flex-wrap:wrap;}
.archive-table-scroll{flex:1 1 auto;min-height:0;overflow:auto;}
.archive-table-scroll table{min-width:1120px;table-layout:auto;}
.archive-table-scroll th{position:sticky;top:0;z-index:3;background:var(--surface2);font-size:15px;font-weight:950;color:var(--t1);padding:12px 10px;}
.archive-table-scroll td{font-size:15px;font-weight:800;padding:12px 10px;vertical-align:middle;}
.archive-empty{padding:38px 20px;text-align:center;color:var(--t3);font-size:16px;font-weight:850;}
.archive-note{font-size:13px;color:var(--warn);font-weight:850;background:var(--warn-l);border:1px solid #F2D8B8;border-radius:12px;padding:10px 12px;line-height:1.45;}

/* GPT_MONTH_CLOSE_UI_V1: 월마감 UI 초안 - 기능 연결 전 */
.month-close-page{display:flex;flex-direction:column;gap:14px;max-width:980px;}
.month-close-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);padding:16px;}
.month-close-title{font-size:22px;font-weight:950;letter-spacing:-.04em;color:var(--t1);line-height:1.25;}
.month-close-help{font-size:13px;font-weight:800;color:var(--t2);line-height:1.5;margin-top:4px;}
.month-close-status{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:13px;}
.month-close-mini{background:var(--bg);border:1px solid var(--border);border-radius:13px;padding:12px;min-height:74px;}
.month-close-mini-label{font-size:12px;font-weight:900;color:var(--t2);letter-spacing:-.02em;}
.month-close-mini-value{font-size:19px;font-weight:950;color:var(--t1);letter-spacing:-.03em;margin-top:6px;line-height:1.25;}
.month-close-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;}
.month-close-btn{min-height:38px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--t1);font-family:inherit;font-size:14px;font-weight:950;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 14px;white-space:nowrap;}
.month-close-btn.primary{background:var(--acc);border-color:var(--acc);color:#fff;}
.month-close-btn.danger{border-color:#efc9c9;color:var(--danger);background:#fff;}
.month-close-btn[disabled]{opacity:.55;cursor:not-allowed;filter:grayscale(.2);}
.month-close-note{font-size:13px;font-weight:850;line-height:1.55;color:var(--t2);background:var(--surface2);border:1px solid var(--border);border-radius:12px;padding:11px 12px;margin-top:12px;}
.month-close-note b{color:var(--t1);font-weight:950;}
.month-close-clean{border-color:#efd1d1;background:#fffafa;}
.month-close-clean .month-close-title{color:var(--danger);}
@media(max-width:1100px){.archive-kpi-row{grid-template-columns:repeat(2,minmax(0,1fr));}.archive-title{font-size:20px}.archive-kpi-val{font-size:24px}.month-close-status{grid-template-columns:1fr;}}


/* GPT_SYSTEM_BACKUP_UI_V1: 시스템 관리/백업 팝업 */
.system-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);padding:16px;margin-bottom:14px;}
.system-section-title{font-size:19px;font-weight:950;color:var(--t1);letter-spacing:-.04em;margin-bottom:4px;}
.system-section-help{font-size:13px;font-weight:800;color:var(--t2);line-height:1.45;margin-bottom:12px;}
.system-action-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.system-pill-btn{min-height:38px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--t1);font-family:inherit;font-size:14px;font-weight:950;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 14px;white-space:nowrap;}
.system-pill-btn:hover{background:var(--acc-l);border-color:var(--acc);color:var(--acc-d);}
.system-pill-btn.danger{color:var(--danger);border-color:#efc9c9;background:#fff;}
.system-pill-btn.danger:hover{background:var(--danger-l);border-color:var(--danger);}
.system-pill-btn[disabled]{opacity:.55;cursor:not-allowed;filter:grayscale(.25);}
.system-note{font-size:13px;font-weight:850;color:var(--t2);line-height:1.55;background:var(--surface2);border:1px solid var(--border);border-radius:12px;padding:10px 12px;margin-top:10px;}
.system-note b{font-weight:950;color:var(--t1);}
.backup-popup-body{font-size:15px;font-weight:800;color:var(--t2);line-height:1.55;}
.backup-popup-title{font-size:22px;font-weight:950;color:var(--t1);letter-spacing:-.04em;margin-bottom:8px;}
.backup-popup-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:16px;}

/* GPT_DAILY_BACKUP_BANNER_V1: 마스터 첫 접속 백업 배너 */
.daily-backup-banner{
  position:fixed;
  left:50%;
  top:68px;
  transform:translateX(-50%);
  z-index:1300;
  width:min(760px,calc(100vw - 32px));
  display:none;
  grid-template-columns:minmax(0,1fr) 46px;
  align-items:stretch;
  overflow:hidden;
  border-radius:20px;
  background:#1A1714;
  color:#fff;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 14px 34px rgba(26,23,20,.26);
}
.daily-backup-banner.show{display:grid;}
.daily-backup-banner-main{
  border:0;
  background:transparent;
  color:#fff;
  text-align:left;
  font-family:inherit;
  cursor:pointer;
  padding:15px 18px 15px 20px;
  display:block;
}
.daily-backup-banner-main:hover{background:rgba(255,255,255,.06);}
.daily-backup-banner-title{
  display:block;
  font-size:19px;
  font-weight:950;
  line-height:1.2;
  letter-spacing:-.04em;
}
.daily-backup-banner-sub{
  display:block;
  margin-top:5px;
  font-size:14px;
  font-weight:800;
  color:rgba(255,255,255,.76);
  line-height:1.35;
}
.daily-backup-banner-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:8px;
  padding:5px 10px;
  border-radius:999px;
  background:#F5EDE3;
  color:#1A1714;
  font-size:13px;
  font-weight:950;
}
.daily-backup-banner-close{
  border:0;
  border-left:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:#fff;
  font-size:24px;
  font-weight:950;
  cursor:pointer;
  font-family:inherit;
}
.daily-backup-banner-close:hover{background:rgba(255,255,255,.14);}
@media(max-width:900px){.daily-backup-banner{left:16px;right:auto;transform:none;width:720px;top:58px;}}

/* GPT_SAFETY_BANNER_STACK_V1: 일일 백업/전월말 스냅샷 배너 동시 표시용 */
.safety-banner-stack{
  position:fixed;
  left:50%;
  top:68px;
  transform:translateX(-50%);
  z-index:1300;
  width:min(760px,calc(100vw - 32px));
  display:flex;
  flex-direction:column;
  gap:10px;
  pointer-events:none;
}
.safety-banner-stack .daily-backup-banner{
  position:relative!important;
  left:auto!important;
  top:auto!important;
  transform:none!important;
  width:100%!important;
  z-index:auto!important;
  pointer-events:auto;
}
.stock-snapshot-banner{
  background:#2A4C2F;
  border-color:rgba(255,255,255,.20);
}
.stock-snapshot-banner .daily-backup-banner-action{
  background:#EAF5EE;
  color:#1E5A32;
}
@media(max-width:900px){
  .safety-banner-stack{left:16px;right:auto;transform:none;width:720px;top:58px;}
}



/* v1.40 inventory compact columns: remove brand/cost display, widen useful columns */
.inventory-table-scroll th:nth-child(1),.inventory-table-scroll td:nth-child(1){width:48px;}
.inventory-table-scroll th:nth-child(2),.inventory-table-scroll td:nth-child(2){width:72px;}
.inventory-table-scroll th:nth-child(3),.inventory-table-scroll td:nth-child(3){width:330px;}
.inventory-table-scroll th:nth-child(4),.inventory-table-scroll td:nth-child(4){width:130px;}
.inventory-table-scroll th:nth-child(5),.inventory-table-scroll td:nth-child(5){width:110px;}
.inventory-table-scroll th:nth-child(6),.inventory-table-scroll td:nth-child(6){width:110px;}
.inventory-table-scroll th:nth-child(7),.inventory-table-scroll td:nth-child(7){width:120px;}
.inventory-table-scroll th:nth-child(8),.inventory-table-scroll td:nth-child(8),
.inventory-table-scroll th:nth-child(9),.inventory-table-scroll td:nth-child(9),
.inventory-table-scroll th:nth-child(10),.inventory-table-scroll td:nth-child(10),
.inventory-table-scroll th:nth-child(11),.inventory-table-scroll td:nth-child(11){width:112px;}
.inventory-table-scroll th:nth-child(12),.inventory-table-scroll td:nth-child(12){width:130px;}
.inventory-table-scroll th:nth-child(13),.inventory-table-scroll td:nth-child(13){width:115px;}
.inventory-table-scroll th:nth-child(14),.inventory-table-scroll td:nth-child(14){width:74px;}
.inventory-table-scroll td:nth-child(4),
.inventory-table-scroll td:nth-child(5),
.inventory-table-scroll td:nth-child(6),
.inventory-table-scroll td:nth-child(7){font-size:21px!important;font-weight:950!important;letter-spacing:-.25px;}
.inventory-table-scroll td:nth-child(8),
.inventory-table-scroll td:nth-child(9),
.inventory-table-scroll td:nth-child(10),
.inventory-table-scroll td:nth-child(11){font-size:24px!important;font-weight:950!important;letter-spacing:-.25px;}
.inventory-table-scroll th{font-size:18px!important;font-weight:950!important;color:var(--t1)!important;}
.inv-product-name{font-size:24px!important;font-weight:950!important;}

/* v1.51 in/out modal readability */
#ovAddIn .modal,#ovAddOut .modal{width:min(760px,94vw)!important;max-height:92vh;overflow:hidden;display:flex;flex-direction:column}
#ovAddIn .modal-hdr,#ovAddOut .modal-hdr{padding:22px 26px 18px}
#ovAddIn .modal-ttl,#ovAddOut .modal-ttl{font-size:22px;font-weight:950}
#ovAddIn .modal-x,#ovAddOut .modal-x{width:38px;height:38px;font-size:20px;font-weight:950}
#ovAddIn .modal-body,#ovAddOut .modal-body{padding:22px 26px;gap:18px;overflow-y:auto;max-height:calc(92vh - 132px);font-size:18px;scrollbar-width:thin}
#ovAddIn .flbl,#ovAddOut .flbl{font-size:17px;font-weight:950;color:var(--t1);margin-bottom:8px}
#ovAddIn .fi,#ovAddIn .fsel2,#ovAddOut .fi,#ovAddOut .fsel2,#ovAddIn .ps-input,#ovAddOut .ps-input{font-size:20px;padding:15px 16px 15px 16px;border-radius:13px;min-height:54px}

#ovAddOut .out-qty-stepper{display:grid;grid-template-columns:44px minmax(62px,1fr) 44px;gap:6px;align-items:center;}
#ovAddOut .out-qty-stepper .qty-step-btn{height:54px;border:1px solid var(--border);border-radius:13px;background:#fffaf3;color:#1b1713;font-size:24px;font-weight:950;line-height:1;cursor:pointer;box-shadow:0 1px 0 rgba(0,0,0,.03);}
#ovAddOut .out-qty-stepper .qty-step-btn:active{transform:scale(.98);background:#F4E9DA;}
#ovAddOut .out-qty-stepper #outUnitCount{text-align:center;font-weight:950;padding-left:8px;padding-right:8px;}
#ovAddIn .f2,#ovAddOut .f2{gap:16px}
#ovAddIn .notice,#ovAddOut .notice{font-size:16px!important;line-height:1.6;padding:15px 17px;border-radius:13px;font-weight:850}
#ovAddIn .modal-foot,#ovAddOut .modal-foot{padding:18px 26px;gap:12px}
#ovAddIn .btn,#ovAddOut .btn{font-size:18px;padding:14px 18px;border-radius:13px;font-weight:950}
#ovAddOut .out-list-box{font-size:17px;line-height:1.6;padding:14px 16px}
#ovAddOut .sub-note,#ovAddIn .sub-note{font-size:16px;font-weight:900}

/* Summary period switch */
.summary-title-row{display:flex;align-items:center;gap:12px;margin-bottom:12px;}
.summary-title-row .summary-pair-title{margin-bottom:0!important;}
.summary-period-btn{height:38px;padding:0 22px;border:2px solid var(--t1);border-radius:8px;background:#fff;color:var(--t1);font-size:20px;font-weight:950;line-height:1;cursor:pointer;font-family:inherit;}
.summary-period-btn.active{background:var(--t1);color:#fff;}
.summary-period-btn:active{transform:scale(.98);}
.summary-period-select{height:38px;padding:0 14px;border:2px solid var(--t1);border-radius:8px;background:#fff;color:var(--t1);font-size:20px;font-weight:950;line-height:1;cursor:pointer;font-family:inherit;min-width:138px;appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:none;}
.summary-period-select:focus{outline:none;box-shadow:0 0 0 2px rgba(196,149,106,.18);}

.inventory-table-scroll th:nth-child(10),.inventory-table-scroll td:nth-child(10),.inventory-table-scroll th:nth-child(11),.inventory-table-scroll td:nth-child(11),.inventory-table-scroll th:nth-child(12),.inventory-table-scroll td:nth-child(12),.inventory-table-scroll th:nth-child(13),.inventory-table-scroll td:nth-child(13){width:96px;}
.inventory-table-scroll th:nth-child(14),.inventory-table-scroll td:nth-child(14){width:100px;}
.inventory-table-scroll th:nth-child(15),.inventory-table-scroll td:nth-child(15){width:100px;}
.inventory-table-scroll th:nth-child(16),.inventory-table-scroll td:nth-child(16){width:70px;}

/* GPT fix: 출고기록 묶음합계가 상단 탭/필터 위로 비쳐 보이는 문제 보정
   - .main 내부에서 tabs는 header 아래가 아니라 main 상단에 고정되어야 함
   - 출고기록은 화면 전체 스크롤이 아니라 표 영역 내부 스크롤로 격리
   - 묶음합계 배지/td가 toolbar보다 위 레이어로 올라오지 못하게 함 */
.main{position:relative;}
.tabs{top:0!important;z-index:90!important;background:var(--surface)!important;}
#tab-outlog{min-height:0!important;overflow:hidden!important;}
#tab-outlog .tbl-wrap{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;overflow:hidden!important;position:relative!important;background:var(--surface)!important;z-index:1!important;}
#tab-outlog .tbl-toolbar{position:relative!important;top:auto!important;z-index:30!important;background:var(--surface)!important;flex:0 0 auto!important;box-shadow:0 1px 0 var(--border)!important;}
#tab-outlog .outlog-table-scroll{position:relative!important;z-index:1!important;flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow:auto!important;isolation:isolate!important;background:var(--surface)!important;}
#tab-outlog .outlog-table-scroll table{position:relative!important;z-index:1!important;}
#tab-outlog .outlog-table-scroll thead th{z-index:5!important;background:var(--surface2)!important;}
#tab-outlog .outlog-table-scroll tbody td{position:relative!important;z-index:1!important;}
#tab-outlog .outlog-total-badge{position:relative!important;z-index:1!important;}

/* GPT fix: 수동 입출고 작업 로그가 툴바/헤더 위로 통과해 보이는 문제 보정
   - 기본 .tbl-toolbar sticky가 여러 탭에 전역 적용되어 로그 행이 헤더와 레이어 충돌
   - 재고현황/출고기록 외 일반 탭의 툴바는 고정하지 않고 정상 흐름으로 배치 */
.content:not(.content-inventory) .tbl-toolbar{position:relative!important;top:auto!important;z-index:20!important;background:var(--surface)!important;box-shadow:0 1px 0 var(--border)!important;}
#tab-inout{min-height:0!important;overflow:auto!important;}
#tab-inout .tbl-wrap{position:relative!important;overflow:hidden!important;background:var(--surface)!important;z-index:1!important;}
#tab-inout .tbl-wrap > div[style*="overflow-x:auto"]{position:relative!important;z-index:1!important;background:var(--surface)!important;}
#tab-inout table thead th{position:sticky;top:0;z-index:4;background:var(--surface2)!important;}
#tab-inout table tbody td{position:relative;z-index:1;background:inherit;}


/* GPT_STRATEGY_ADMIN_PATCH */
.strategy-admin-box{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);padding:14px 16px;margin-bottom:12px}
.strategy-admin-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.strategy-admin-title{font-size:17px;font-weight:950;color:var(--t1)}
.strategy-admin-count{font-size:13px;font-weight:900;color:var(--acc-d);background:var(--acc-l);border-radius:999px;padding:4px 10px}
.strategy-admin-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.strategy-file-label{display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:10px;background:var(--t1);color:#fff;font-size:13px;font-weight:900;padding:9px 13px;cursor:pointer}
.strategy-admin-note{font-size:12px;color:var(--t3);font-weight:800;line-height:1.5;margin-top:8px}
.strategy-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px;margin-top:12px}
.strategy-thumb{position:relative;border:1px solid var(--border);border-radius:12px;background:#fff;overflow:hidden;min-height:92px}
.strategy-thumb img{display:block;width:100%;height:92px;object-fit:cover;background:#fff}
.strategy-thumb-num{position:absolute;left:6px;top:6px;background:rgba(0,0,0,.68);color:#fff;border-radius:999px;font-size:11px;font-weight:900;padding:2px 7px}
.strategy-thumb-del{position:absolute;right:6px;top:6px;border:none;background:#D04040;color:#fff;border-radius:8px;font-size:12px;font-weight:900;padding:3px 7px;cursor:pointer}
.strategy-empty{padding:18px;border:1px dashed var(--border2);border-radius:12px;text-align:center;color:var(--t3);font-size:13px;font-weight:800;background:#FFFCF7}


/* GPT_STAGE6_STRATEGY_SETS: 전략세트 작성 탭 */
.strategy-set-grid{display:grid;grid-template-columns:minmax(420px,1fr) minmax(420px,1.1fr);gap:14px;align-items:start;}
.strategy-set-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);padding:18px;}
.strategy-set-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px;}
.strategy-set-title{font-size:22px;font-weight:950;color:var(--t1);letter-spacing:-.04em;}
.strategy-set-help{font-size:13px;font-weight:800;color:var(--t3);line-height:1.55;}
.strategy-form-row{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:14px;}
.strategy-item-add-grid{display:grid;grid-template-columns:132px minmax(210px,1fr) 84px 92px 112px 118px;gap:9px;align-items:end;}
.strategy-check{height:42px;border:1px solid var(--border);border-radius:12px;background:#FFFCF7;display:flex;align-items:center;justify-content:center;gap:7px;font-size:14px;font-weight:900;color:var(--t1);white-space:nowrap;}
.strategy-check input{width:17px;height:17px;accent-color:var(--acc);}
.strategy-search-wrap{position:relative;}
.strategy-search-drop{position:absolute;left:0;right:0;top:calc(100% + 4px);background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 10px 26px rgba(0,0,0,.14);z-index:80;display:none;max-height:260px;overflow:auto;}
.strategy-search-drop.open{display:block;}
.strategy-search-item{padding:10px 12px;border-bottom:1px solid var(--border);cursor:pointer;font-size:14px;font-weight:850;line-height:1.35;}
.strategy-search-item:last-child{border-bottom:none;}
.strategy-search-item:hover,.strategy-search-item.hi{background:var(--acc-l);color:var(--acc-d);}
.strategy-search-brand{font-size:12px;font-weight:900;color:var(--acc-d);margin-right:6px;}
.strategy-search-meta{font-size:12px;color:var(--t3);font-weight:800;margin-left:5px;}
.strategy-current-list{border:1px solid var(--border);border-radius:14px;background:#FFFCF7;overflow:hidden;}
.strategy-current-empty{padding:18px;text-align:center;color:var(--t3);font-size:14px;font-weight:800;}
.strategy-item-row{display:grid;grid-template-columns:minmax(0,1fr) 110px 100px 96px 48px;gap:10px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--border);}
.strategy-item-row:last-child{border-bottom:none;}
.strategy-item-name{font-size:18px;font-weight:950;color:var(--t1);line-height:1.25;word-break:keep-all;}
.strategy-item-sub{font-size:13px;font-weight:800;color:var(--t3);margin-top:3px;}
.strategy-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 10px;font-size:13px;font-weight:950;white-space:nowrap;}
.strategy-pill.main{background:var(--info-l);color:var(--info);}
.strategy-pill.office{background:#FFF0D7;color:#B25D10;}
.strategy-pill.stock{background:var(--success-l);color:var(--success);}
.strategy-save-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;}
.strategy-set-list{display:flex;flex-direction:column;gap:10px;}
.strategy-set-row{border:1px solid var(--border);background:#FFFCF7;border-radius:15px;padding:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;}
.strategy-set-name{font-size:21px;font-weight:950;color:var(--t1);letter-spacing:-.04em;line-height:1.25;}
.strategy-set-meta{font-size:13px;font-weight:850;color:var(--t3);margin-top:5px;}
.strategy-set-detail{margin-top:10px;display:flex;flex-direction:column;gap:5px;}
.strategy-set-detail-line{font-size:15px;font-weight:850;color:var(--t2);line-height:1.35;}
.strategy-set-actions{display:flex;gap:6px;align-items:center;}
.strategy-set-empty{padding:34px 18px;border:1.5px dashed var(--border2);border-radius:15px;text-align:center;color:var(--t3);font-size:15px;font-weight:850;background:#FFFCF7;}
@media(max-width:1200px){.strategy-set-grid{grid-template-columns:1fr}.strategy-item-add-grid{grid-template-columns:1fr 1fr}.strategy-item-add-grid .btn{grid-column:1/-1}.strategy-item-row{grid-template-columns:minmax(0,1fr) 88px 86px 88px 42px}.strategy-item-name{font-size:16px}}

/* GPT_STAGE6_STRATEGY_SETS_UI_BALANCE: 작성/목록 화면 밸런스 조정 */
#tab-strategySets{min-height:0;overflow:hidden;}
#tab-strategySets .strategy-set-grid{grid-template-columns:minmax(680px,1.45fr) minmax(440px,1fr);gap:18px;align-items:start;height:100%;min-height:0;}
#tab-strategySets .strategy-set-card{padding:20px 22px;}
#tab-strategySets .strategy-set-grid>.strategy-set-card:nth-child(2){display:flex;flex-direction:column;max-height:calc(100vh - 150px);min-height:0;}
#tab-strategySets .strategy-set-grid>.strategy-set-card:nth-child(2) .strategy-set-title-row{flex:0 0 auto;}
#tab-strategySets .strategy-set-list{flex:1 1 auto;min-height:0;overflow-y:auto;padding-right:6px;scrollbar-width:thin;}
#tab-strategySets .strategy-set-list::-webkit-scrollbar{width:8px;}
#tab-strategySets .strategy-set-list::-webkit-scrollbar-thumb{background:#d4c4b2;border-radius:999px;}
#tab-strategySets .strategy-set-list::-webkit-scrollbar-track{background:#f4eee7;border-radius:999px;}
#tab-strategySets .strategy-item-add-grid{grid-template-columns:170px 120px 145px minmax(0,1fr) 150px;gap:11px 12px;align-items:end;margin-top:4px;}
#tab-strategySets .strategy-item-add-grid>.fg:nth-child(1){grid-column:1/3;}
#tab-strategySets .strategy-item-add-grid>.strategy-search-wrap{grid-column:1/-1;}
#tab-strategySets .strategy-item-add-grid>.fg:nth-child(3){grid-column:1/2;}
#tab-strategySets .strategy-item-add-grid>.fg:nth-child(4){grid-column:2/3;}
#tab-strategySets .strategy-item-add-grid>.strategy-check{grid-column:3/4;height:46px;font-size:15px;}
#tab-strategySets .strategy-item-add-grid>#btnAddStrategyItem{grid-column:5/6;height:46px!important;font-size:15px;font-weight:950;}
#tab-strategySets .strategy-item-add-grid .fi,#tab-strategySets .strategy-item-add-grid .fsel2{height:46px;font-size:16px;font-weight:850;}
#tab-strategySets #strategyProductSearch{font-size:17px;font-weight:850;}
#tab-strategySets .strategy-current-list{border-radius:16px;}
#tab-strategySets .strategy-item-row{grid-template-columns:minmax(0,1fr) 116px 104px 96px 48px;padding:13px 14px;}
#tab-strategySets .strategy-item-name{font-size:19px;}
#tab-strategySets .strategy-set-row{border:1.5px solid #DED3C7;border-radius:17px;background:#FFFCF7;padding:16px 16px 15px;box-shadow:0 2px 8px rgba(74,55,37,.04);}
#tab-strategySets .strategy-set-row+.strategy-set-row{margin-top:2px;}
#tab-strategySets .strategy-set-name{font-size:22px;}
#tab-strategySets .strategy-set-meta{font-size:14px;font-weight:900;color:var(--t2);}
#tab-strategySets .strategy-set-detail{margin-top:12px;gap:7px;border-top:1px solid var(--border);padding-top:10px;}
#tab-strategySets .strategy-set-detail-line{font-size:16px;font-weight:900;color:var(--t1);line-height:1.45;word-break:keep-all;}
#tab-strategySets .strategy-pay-badge{display:inline-flex;align-items:center;justify-content:center;margin-left:6px;padding:4px 9px;border-radius:999px;font-size:13px;font-weight:950;line-height:1;white-space:nowrap;vertical-align:1px;}
#tab-strategySets .strategy-pay-badge.office{background:#FFF0D7;color:#B25D10;border:1px solid rgba(178,93,16,.22);}
#tab-strategySets .strategy-pay-badge.stock{background:var(--success-l);color:var(--success);border:1px solid rgba(46,125,80,.20);}
#tab-strategySets .strategy-set-actions{align-self:start;}
#tab-strategySets .strategy-set-actions .btn{font-size:13px;font-weight:900;padding:7px 10px;}
@media(max-width:1350px){#tab-strategySets .strategy-set-grid{grid-template-columns:minmax(620px,1.35fr) minmax(420px,1fr);}#tab-strategySets .strategy-set-detail-line{font-size:15px}}
@media(max-width:1200px){#tab-strategySets{overflow:auto;}#tab-strategySets .strategy-set-grid{grid-template-columns:1fr;height:auto;}#tab-strategySets .strategy-set-grid>.strategy-set-card:nth-child(2){max-height:none;}#tab-strategySets .strategy-set-list{overflow:visible;padding-right:0;}#tab-strategySets .strategy-item-add-grid{grid-template-columns:1fr 1fr 1fr;}#tab-strategySets .strategy-item-add-grid>.fg:nth-child(1){grid-column:1/2;}#tab-strategySets .strategy-item-add-grid>.strategy-search-wrap{grid-column:1/-1;}#tab-strategySets .strategy-item-add-grid>#btnAddStrategyItem{grid-column:1/-1}}


/* GPT_STAGE6_STRATEGY_UI_FONTFIX: 전략세트 작성 입력칸 가독성 보정
   - 전략명 입력칸이 브랜드 선택칸보다 작아 보이는 문제 보정
   - 노안 사용자를 고려해 전략세트 작성 탭의 기본 입력 폰트/높이를 통일 */
#tab-strategySets .flbl{font-size:15px!important;font-weight:950!important;color:var(--t1)!important;margin-bottom:8px!important;}
#tab-strategySets #strategySetName{height:54px!important;font-size:18px!important;font-weight:900!important;padding:0 16px!important;border-radius:13px!important;}
#tab-strategySets #strategySetName::placeholder{font-size:17px!important;font-weight:850!important;color:var(--t3)!important;}
#tab-strategySets .strategy-item-add-grid .fi,
#tab-strategySets .strategy-item-add-grid .fsel2{height:54px!important;font-size:18px!important;font-weight:900!important;padding:0 16px!important;border-radius:13px!important;}
#tab-strategySets #strategyProductSearch{height:54px!important;font-size:18px!important;font-weight:900!important;padding:0 16px!important;border-radius:13px!important;}
#tab-strategySets #strategyProductSearch::placeholder{font-size:17px!important;font-weight:850!important;color:var(--t3)!important;}
#tab-strategySets .strategy-check{height:54px!important;font-size:17px!important;font-weight:950!important;border-radius:13px!important;}
#tab-strategySets .strategy-check input{width:20px!important;height:20px!important;}
#tab-strategySets .strategy-item-add-grid>#btnAddStrategyItem{height:54px!important;font-size:17px!important;font-weight:950!important;border-radius:13px!important;}



/* GPT_STAGE6_STRATEGY_UI_PENDINGFIX: 수정대기 묶음 반영
   1) 입력칸/폰트 크기 통일 유지
   2) 작성 카드 세로 간격 축소 + 구성 품목 내부 스크롤
   3) 상단 신규 작성 배지 제거 */
#tab-strategySets .strategy-set-title-row{margin-bottom:12px!important;}
#tab-strategySets .strategy-form-row{gap:6px!important;margin-bottom:12px!important;}
#tab-strategySets .fg{gap:4px!important;}
#tab-strategySets .flbl{margin-bottom:5px!important;}
#tab-strategySets .strategy-item-add-grid{gap:8px 12px!important;margin-top:0!important;}
#tab-strategySets .strategy-search-wrap{margin-top:2px!important;}
#tab-strategySets .strategy-current-wrap{margin-top:10px!important;}
#tab-strategySets .strategy-current-wrap .flbl{margin-bottom:5px!important;}
#tab-strategySets .strategy-current-list{max-height:226px!important;overflow-y:auto!important;scrollbar-width:thin;}
#tab-strategySets .strategy-current-list::-webkit-scrollbar{width:8px;}
#tab-strategySets .strategy-current-list::-webkit-scrollbar-thumb{background:#d4c4b2;border-radius:999px;}
#tab-strategySets .strategy-current-list::-webkit-scrollbar-track{background:#f4eee7;border-radius:999px;}
#tab-strategySets .strategy-save-actions{margin-top:10px!important;}
#tab-strategySets .strategy-item-row{padding:12px 14px!important;}
#tab-strategySets .strategy-set-card:first-child{padding-top:18px!important;padding-bottom:16px!important;}
#tab-strategySets #strategyEditBadge{display:none!important;}

/* GPT_STAGE6_STEP2_STRATEGY_OUT_SELECT: 수동출고 전략세트 선택/출고목록 자동추가 UI */
#ovAddOut .out-strategy-top{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start;}
#ovAddOut #outStrategySetNote{font-size:14px;font-weight:850;color:var(--t3);margin-top:6px;line-height:1.35;}
#ovAddOut .out-cart-set{border:1.5px solid #D9C9B8;background:#FFFCF7;border-radius:14px;margin:8px 8px 10px;overflow:hidden;}
#ovAddOut .out-cart-set-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid var(--border);background:#F8F1E9;}
#ovAddOut .out-cart-set-title{font-size:16px;font-weight:950;color:var(--t1);letter-spacing:-.02em;}
#ovAddOut .out-cart-set-meta{font-size:13px;font-weight:900;color:var(--t2);white-space:nowrap;}
#ovAddOut .out-cart-set-body{display:flex;flex-direction:column;}
#ovAddOut .out-cart-line{display:grid;grid-template-columns:minmax(0,1fr) 92px 94px 42px;gap:8px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--border);}
#ovAddOut .out-cart-line:last-child{border-bottom:none;}
#ovAddOut .out-cart-name{font-size:17px;font-weight:950;color:var(--t1);line-height:1.25;word-break:keep-all;}
#ovAddOut .out-cart-meta{font-size:13px;font-weight:850;color:var(--t3);margin-top:3px;}
.prod-code-inline{display:inline-block;margin-left:18px;color:#7A1F1F;font-size:inherit;font-weight:950;white-space:nowrap;}
#ovAddOut .out-cart-pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 8px;font-size:13px;font-weight:950;white-space:nowrap;}
#ovAddOut .out-cart-pill.qty{background:var(--info-l);color:var(--info);}
#ovAddOut .out-cart-pill.office{background:#FFF0D7;color:#B25D10;}
#ovAddOut .out-cart-pill.stock{background:var(--success-l);color:var(--success);}
#ovAddOut .out-cart-manual{display:grid;grid-template-columns:minmax(0,1fr) 94px 42px;gap:8px;align-items:center;padding:10px 12px;border-bottom:none;}
#ovAddOut .out-cart-manual:last-child{border-bottom:none;}
#ovAddOut .out-cart-set + .out-cart-manual,#ovAddOut .out-cart-manual + .out-cart-set{margin-top:4px;}
@media(max-width:760px){#ovAddOut .out-strategy-top{grid-template-columns:1fr}#ovAddOut .out-cart-line{grid-template-columns:minmax(0,1fr) 80px 86px 38px}.out-cart-set-meta{display:none}}

/* GPT_STRATEGY_MATRIX_OUT_STEP1: 수동출고 전략세트 구간 버튼 UI */
#ovAddOut .out-strategy-tier-wrap{display:flex;gap:5px;align-items:center;justify-content:center;flex-wrap:nowrap;margin-top:6px;min-height:34px;width:100%;}
#ovAddOut .out-strategy-tier-btn{width:32px;height:32px;border-radius:50%;border:2px solid #1e4070;background:#fff;color:#111;font-size:15px;font-weight:950;box-shadow:0 1px 0 #fff inset,0 1px 4px rgba(0,0,0,.12);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;line-height:1;padding:0;}
#ovAddOut .out-strategy-tier-btn:hover{background:#F1F6FF;transform:translateY(-1px);}
#ovAddOut .out-strategy-tier-btn.active{background:#18130f;color:#fff;border-color:#18130f;box-shadow:0 0 0 3px rgba(24,19,15,.12);}
#ovAddOut .out-strategy-tier-btn:disabled{opacity:.38;cursor:not-allowed;transform:none;background:#f5f0ea;color:transparent;border-color:#d8cdc1;box-shadow:none;}
#ovAddOut .out-strategy-tier-empty{display:none;}
#ovAddOut .out-strategy-tier-note{font-size:12px;font-weight:900;color:#2D63B8;margin-top:4px;line-height:1.35;letter-spacing:-.02em;}
#ovAddOut .out-strategy-top .sub-note{display:none;}

/* GPT_20260701_STRATEGY_BRAND_FILTER_V1: 전략세트 브랜드 구분/필터 */
#tab-strategySets .strategy-matrix-topline{grid-template-columns:minmax(320px,1fr) 180px auto!important;}
#tab-strategySets .strategy-brand-group select{height:54px!important;font-size:17px!important;font-weight:950!important;border-radius:13px!important;}
#ovAddOut .out-strategy-brand-filter{margin-bottom:7px!important;font-weight:950!important;}
.strategy-brand-sulwhasoo{color:#C85A24!important;}
.strategy-brand-hera{color:#111111!important;}
.strategy-brand-ap{color:#4A4F55!important;}
.strategy-brand-primera{color:#A57900!important;}
.strategy-brand-holitual{color:#2F68B2!important;}
.strategy-brand-vital{color:#2F7D43!important;}
.strategy-brand-ryo{color:#7A2F5A!important;}
.strategy-brand-etc{color:#777777!important;}
.matrix-set-brand-text{font-weight:950;margin-right:4px;}
@media(max-width:1280px){#tab-strategySets .strategy-matrix-topline{grid-template-columns:1fr!important;}}



/* GPT_STAGE6_UI_READABILITY_BATCH: 공통 가독성 UI 정리
   - 상단 탭 버튼형 처리
   - 전략세트 문구/폰트 위계 보정
   - 수동 입출고 주요 제목/버튼 확대
   - 주문접수/요약 설명문 공통화 */
.tabs{padding:7px 22px!important;gap:9px!important;align-items:center!important;min-height:54px!important;background:var(--surface)!important;}
.tab{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;padding:8px 13px!important;border:1px solid var(--border)!important;border-radius:999px!important;background:#FFFCF7!important;color:var(--t1)!important;font-size:15px!important;font-weight:950!important;line-height:1!important;letter-spacing:-.02em!important;box-shadow:0 1px 3px rgba(55,42,30,.04)!important;}
.tab:hover{background:var(--acc-l)!important;color:var(--acc-d)!important;border-color:#D8C2AA!important;}
.tab.active{background:var(--t1)!important;color:#fff!important;border-color:var(--t1)!important;box-shadow:0 3px 9px rgba(0,0,0,.12)!important;}
.tab .tab-badge{margin-left:4px!important;background:#D62525!important;color:#fff!important;}

.admin-help-line{padding:10px 12px;color:var(--t1);font-size:16px;font-weight:850;line-height:1.55;letter-spacing:-.02em;}
.summary-help-line{padding:0!important;margin-bottom:10px!important;color:var(--t1)!important;font-size:16px!important;font-weight:850!important;}
.order-receive-help{border-bottom:1px solid var(--border);}

#tab-strategySets .strategy-set-grid{grid-template-columns:minmax(520px,1fr) minmax(520px,1fr)!important;gap:16px!important;}
#tab-strategySets .strategy-set-title{font-size:25px!important;font-weight:950!important;letter-spacing:-.05em!important;}
#tab-strategySets .strategy-set-help{font-size:16px!important;font-weight:850!important;color:var(--t1)!important;line-height:1.6!important;letter-spacing:-.02em!important;margin-top:3px!important;}
#tab-strategySets .flbl{font-size:18px!important;font-weight:950!important;color:var(--t1)!important;line-height:1.25!important;}
#tab-strategySets .strategy-current-empty{font-size:16px!important;font-weight:850!important;color:var(--t3)!important;padding:21px 18px!important;}
#tab-strategySets .strategy-save-actions .btn{height:54px!important;min-width:112px!important;padding:0 20px!important;border-radius:13px!important;font-size:17px!important;font-weight:950!important;}
#tab-strategySets .strategy-set-actions{gap:8px!important;}
#tab-strategySets .strategy-set-actions .btn{height:38px!important;min-width:56px!important;padding:0 12px!important;border-radius:10px!important;font-size:15px!important;font-weight:950!important;}
#tab-strategySets .strategy-set-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;}
#tab-strategySets #btnClearStrategySets{height:32px!important;min-width:82px!important;padding:0 10px!important;border-radius:10px!important;font-size:13px!important;font-weight:950!important;background:#fff!important;color:#D04040!important;border:1.5px solid #e6b8b8!important;}
#tab-strategySets #btnClearStrategySets:disabled{opacity:.45!important;cursor:not-allowed!important;color:#aaa!important;border-color:var(--border)!important;}
#tab-strategySets .strategy-set-actions [data-strategy-edit]{background:#fff!important;color:var(--acc-d)!important;border:1.5px solid #D8C2AA!important;}
#tab-strategySets .strategy-set-actions [data-strategy-delete]{background:var(--danger)!important;color:#fff!important;border:1.5px solid var(--danger)!important;}
#tab-strategySets .strategy-set-actions [data-strategy-delete]:hover{background:#B93030!important;border-color:#B93030!important;}
@media(max-width:1200px){#tab-strategySets .strategy-set-grid{grid-template-columns:1fr!important;}}

#tab-inout .io-ttl{font-size:18px!important;font-weight:950!important;color:var(--t1)!important;}
#tab-inout .lbl-in,#tab-inout .lbl-out{font-size:14px!important;font-weight:950!important;padding:4px 10px!important;}
#tab-inout .io-footer .btn{height:46px!important;font-size:17px!important;font-weight:950!important;border-radius:10px!important;}
#tab-inout .tbl-toolbar>span:first-child{font-size:18px!important;font-weight:950!important;color:var(--t1)!important;}
#tab-inout .tbl-toolbar .srch-inp,#tab-inout .tbl-toolbar .flt-sel{height:42px!important;font-size:16px!important;font-weight:900!important;}
#tab-inout .tbl-toolbar .cnt-badge{font-size:15px!important;font-weight:950!important;padding:6px 11px!important;}
#tab-inout .tbl-toolbar .btn{height:42px!important;font-size:15px!important;font-weight:950!important;border-radius:10px!important;}
#tab-inout table th{font-size:14px!important;font-weight:950!important;color:var(--t1)!important;}
#tab-inout table td{font-size:15px!important;font-weight:850!important;}

/* GPT_STAGE6_NAV_SIZE_BALANCE: 배포 화면 기준 상단 탭 확대 + 재고 상품명 약간 축소 */
.tabs{padding:9px 24px!important;gap:11px!important;min-height:64px!important;}
.tab{font-size:18px!important;padding:11px 18px!important;gap:7px!important;border-radius:999px!important;min-height:42px!important;line-height:1.05!important;}
.tab .tab-badge{font-size:13px!important;min-width:22px!important;height:22px!important;}
.inv-product-name{font-size:21px!important;line-height:1.28!important;font-weight:950!important;letter-spacing:-.35px!important;}
@media(max-width:1200px){.inv-product-name{font-size:20px!important}.tab{font-size:17px!important;padding:10px 15px!important}.tabs{gap:9px!important;min-height:60px!important}}

/* GPT_STAGE6_STRATEGY_OUTLOG_BADGE */
#tab-outlog .outlog-office-badge{display:inline-flex;align-items:center;margin-left:8px;padding:3px 8px;border-radius:999px;background:#EAF5EE;color:#2E7D50;border:1px solid rgba(46,125,80,.22);font-size:13px;font-weight:950;vertical-align:1px;white-space:nowrap;}


/* GPT_STAGE6_STRATEGY_V2_READABILITY: 안내/설명 문구 검정색 및 크기 통일 */
.admin-help-line,
.order-receive-help,
.io-empty,
.empty-state .empty-title,
.summary-meta-note{
  color:var(--t1)!important;
  font-size:16px!important;
  font-weight:850!important;
  line-height:1.55!important;
  letter-spacing:-.02em!important;
}
.order-receive-help{padding:10px 12px!important;border-bottom:1px solid var(--border)!important;}
.summary-meta-note{margin-bottom:8px!important;}
#ovAddOut #outStrategyWrap{display:none!important;}


/* GPT_STAGE6_AUDIT_MERGE_V1: 재고실사/재고정확도 UI */
.inv-composition-short{font-size:18px;font-weight:950;color:var(--t2);white-space:nowrap;}
.inv-total-price{font-size:18px;font-weight:950;color:var(--acc-d);white-space:nowrap;cursor:default;}
.stock-cell-wrap{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;position:relative;}
.stock-cell-wrap .inv-expand-btn{width:28px;height:28px;font-size:14px;border-radius:9px;}
.inv-expand-btn{width:34px;height:34px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--t2);font-size:18px;font-weight:950;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;}
.inv-expand-btn:hover{background:var(--surface2);color:var(--acc-d);border-color:rgba(140,99,64,.35);}
.inv-expand-btn.open{background:var(--acc-l);color:var(--acc-d);border-color:rgba(140,99,64,.35);}
.inv-stock-popover{position:absolute;top:34px;left:50%;transform:translateX(-50%);z-index:80;display:flex;gap:10px;align-items:center;background:#fff;border:2px solid #1f3854;border-radius:12px;padding:10px 12px;box-shadow:0 8px 22px rgba(17,24,39,.16);white-space:nowrap;}
.inv-stock-popover .detail-chip{display:inline-flex;align-items:center;gap:6px;padding:8px 11px;border-radius:999px;background:var(--surface2);border:1px solid var(--border);font-size:15px;font-weight:950;color:var(--t2);}
.inv-accuracy{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;font-size:16px;font-weight:950;color:var(--t2);}
.inv-accuracy-dot{width:13px;height:13px;border-radius:999px;display:inline-block;box-shadow:0 0 0 2px rgba(255,255,255,.85),0 1px 4px rgba(17,24,39,.12);}
.inv-accuracy.good .inv-accuracy-dot{background:#35c46b;}
.inv-accuracy.warn .inv-accuracy-dot{background:#f3c64c;}
.inv-accuracy.low .inv-accuracy-dot{background:#f39a3d;}
.inv-accuracy.danger .inv-accuracy-dot{background:#ef4056;}
.inv-action-head{font-size:14px!important;font-weight:950!important;white-space:nowrap;min-width:38px;}
.inv-action-cell{width:42px;text-align:center;padding-left:2px!important;padding-right:2px!important;}
.inv-action-btn{width:38px;height:38px;border-radius:12px;border:1px solid var(--border);background:var(--surface);font-size:20px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;}
.inv-action-btn:hover{background:var(--surface2);border-color:rgba(140,99,64,.35);}
.inv-action-btn.audit{color:var(--info);}
.inv-action-btn.edit{color:var(--acc-d);}
.audit-modal{width:min(620px,94vw);max-height:88vh;overflow:hidden;display:flex;flex-direction:column;}
.audit-modal .modal-hdr{padding:22px 26px 16px;flex:0 0 auto;}
.audit-modal .modal-ttl{font-size:20px;font-weight:950;}
.audit-modal .modal-x{width:36px;height:36px;font-size:18px;font-weight:950;}
.audit-modal .modal-body{padding:22px 26px;gap:16px;overflow-y:auto;font-size:17px;}
.audit-modal .modal-foot{padding:16px 26px;flex:0 0 auto;}
.audit-target-card{border:1px solid rgba(140,99,64,.18);background:var(--surface2);border-radius:14px;padding:14px 16px;}
.audit-target-name{font-size:20px;font-weight:950;color:var(--t1);line-height:1.35;}
.audit-target-meta{font-size:15px;font-weight:850;color:var(--t2);margin-top:6px;}
.audit-unit-help{margin-top:8px;padding:10px 12px;border-radius:12px;background:#FFF8EC;border:1px solid #E8D3B8;color:#8C4D13;font-size:15px;font-weight:950;line-height:1.45;}
.audit-modal .flbl{font-size:16px;font-weight:950;color:var(--t1);}
.audit-modal .fi{font-size:18px;padding:14px 15px;border-radius:13px;}
.audit-modal textarea.fi{min-height:86px;resize:vertical;line-height:1.45;}
.audit-modal textarea#auditMemo.audit-note-active,
.audit-modal textarea#auditMemo:not(:placeholder-shown){border:2px solid var(--danger)!important;background:#FFF8F8!important;box-shadow:0 0 0 2px rgba(208,64,64,.12)!important;}
.inv-action-btn.audit.audit-note-present{border:2px solid var(--danger)!important;background:#FFF8F8!important;box-shadow:0 0 0 2px rgba(208,64,64,.10)!important;}
.audit-modal .sub-note{font-size:15px;font-weight:900;color:var(--t2);}
.audit-modal .btn{font-size:16px;padding:12px 17px;border-radius:12px;font-weight:950;}
/* 재고현황 실사 통합 후 최종 열 폭 */
.inventory-table-scroll th:nth-child(1),.inventory-table-scroll td:nth-child(1){width:48px;}
.inventory-table-scroll th:nth-child(2),.inventory-table-scroll td:nth-child(2){width:72px;}
.inventory-table-scroll th:nth-child(3),.inventory-table-scroll td:nth-child(3){width:330px;}
.inventory-table-scroll th:nth-child(4),.inventory-table-scroll td:nth-child(4){width:130px;}
.inventory-table-scroll th:nth-child(5),.inventory-table-scroll td:nth-child(5){width:105px;}
.inventory-table-scroll th:nth-child(6),.inventory-table-scroll td:nth-child(6){width:115px;}
.inventory-table-scroll th:nth-child(7),.inventory-table-scroll td:nth-child(7){width:112px;}
.inventory-table-scroll th:nth-child(8),.inventory-table-scroll td:nth-child(8){width:120px;}
.inventory-table-scroll th:nth-child(9),.inventory-table-scroll td:nth-child(9){width:112px;}
.inventory-table-scroll th:nth-child(10),.inventory-table-scroll td:nth-child(10){width:125px;}
.inventory-table-scroll th:nth-child(11),.inventory-table-scroll td:nth-child(11){width:74px;}
.inventory-table-scroll th:nth-child(12),.inventory-table-scroll td:nth-child(12){width:74px;}
@media(max-width:1200px){.inv-accuracy{font-size:15px}.inv-accuracy-dot{width:12px;height:12px}.inv-action-btn{width:36px;height:36px;font-size:18px}}

/* GPT_AUDIT_UNIT_GUIDE_V3: 실사 수량 입력 단위 안내 보강 */


/* GPT_STAGE7_MOBILE_PORTRAIT_ALLOW_V1: 모바일 세로 차단 오버레이 해제
   - 관리자 화면 구조는 데스크톱/가로 기준 그대로 유지
   - 세로 모바일에서는 1024px 폭 화면을 손가락으로 좌우/상하 이동해 사용
   - 주문접수 품목 확인용 임시 운용 목적 */
.mobile-rotate-notice{display:none!important;pointer-events:none!important;}
@media (max-width:900px) and (orientation:portrait){
  html,body{overflow:auto!important;-webkit-overflow-scrolling:touch!important;}
  body{min-width:1024px!important;touch-action:pan-x pan-y!important;}
  header{min-width:1024px!important;}
  .app{min-width:1024px!important;height:calc(100vh - 48px)!important;}
}



/* GPT_STRATEGY_MATRIX_UI_V2: 수량구간형 전략세트 1차 UI 개선 */
#tab-strategySets{overflow:auto!important;min-height:0!important;}
#tab-strategySets .strategy-matrix-grid{display:grid;grid-template-columns:minmax(740px,1.55fr) minmax(360px,.75fr);gap:16px;align-items:stretch;}
#tab-strategySets .strategy-matrix-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);padding:18px 20px;box-shadow:0 2px 8px rgba(74,55,37,.035);}
#tab-strategySets .strategy-matrix-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px;}
#tab-strategySets .strategy-matrix-head.compact{align-items:center;}
#tab-strategySets .strategy-matrix-topline{display:grid;grid-template-columns:minmax(320px,1fr) auto;gap:12px;align-items:end;margin-bottom:13px;}
#tab-strategySets .strategy-matrix-note{font-size:13px;font-weight:850;color:var(--t3);line-height:1.45;background:#FFFCF7;border:1px solid var(--border);border-radius:12px;padding:10px 12px;white-space:nowrap;}
#tab-strategySets .strategy-matrix-modebar{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#FFFCF7;border:1px solid var(--border);border-radius:12px;padding:9px 10px;min-height:54px;}
#tab-strategySets .strategy-matrix-mode{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:8px 12px;background:#F2E9DE;color:var(--t1);font-size:14px;font-weight:950;line-height:1.1;white-space:nowrap;}
#tab-strategySets .strategy-matrix-mode.editing{background:#EAF3FF;color:#1557A6;border:1px solid rgba(47,111,219,.24);}
#tab-strategySets .strategy-matrix-modebar .btn{height:36px!important;border-radius:999px!important;font-size:13px!important;font-weight:950!important;white-space:nowrap;}
#tab-strategySets .strategy-matrix-section{border:1px solid var(--border);border-radius:15px;background:#FFFCF7;padding:13px;margin-top:12px;}
#tab-strategySets .strategy-matrix-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;}
#tab-strategySets .strategy-matrix-section-head b{font-size:17px;font-weight:950;color:var(--t1);}
#tab-strategySets .strategy-matrix-section-head>div:first-child>span{display:block;margin-top:3px;font-size:12.5px;font-weight:850;color:var(--t3);}
#tab-strategySets .strategy-matrix-mini-actions{display:flex;gap:6px;align-items:center;}
#tab-strategySets .strategy-tier-wrap{display:flex;gap:7px;align-items:center;flex-wrap:wrap;}
#tab-strategySets .strategy-tier-slot{display:flex;align-items:center;gap:5px;border:1px solid #D8C2AA;background:#fff;border-radius:13px;padding:8px 8px;}
#tab-strategySets .strategy-tier-label{font-size:13px;font-weight:950;color:var(--acc-d);white-space:nowrap;}
#tab-strategySets .strategy-tier-input{width:58px;height:36px;border:1px solid var(--border);border-radius:10px;padding:0 9px;font-size:16px;font-weight:950;text-align:center;background:#FFFCF7;}
#tab-strategySets .strategy-tier-unit{font-size:14px;font-weight:950;color:var(--t1);}
#tab-strategySets .strategy-matrix-addbar{display:grid;grid-template-columns:160px minmax(260px,1fr) 132px;gap:10px;align-items:end;}
#tab-strategySets .matrix-product-wrap{position:relative;}
#tab-strategySets #btnMatrixAddProduct{height:54px!important;border-radius:13px!important;font-size:16px!important;font-weight:950!important;}
#tab-strategySets .strategy-matrix-table-wrap{overflow:auto;border:1px solid var(--border);border-radius:14px;background:#fff;}
#tab-strategySets .strategy-matrix-table{width:100%;border-collapse:separate;border-spacing:0;min-width:980px;}
#tab-strategySets .strategy-matrix-table th{position:sticky;top:0;z-index:2;background:#F7F0E8;border-bottom:1px solid var(--border);font-size:13px;font-weight:950;color:var(--t1);padding:10px 8px;white-space:nowrap;text-align:center;}
#tab-strategySets .strategy-matrix-table td{border-bottom:1px solid var(--border);font-size:14px;font-weight:850;color:var(--t1);padding:9px 8px;vertical-align:middle;text-align:center;}
#tab-strategySets .strategy-matrix-table tr:last-child td{border-bottom:none;}
#tab-strategySets .matrix-prod-cell{text-align:left!important;min-width:230px;}
#tab-strategySets .matrix-prod-name{font-size:16px;font-weight:950;color:var(--t1);line-height:1.28;}
#tab-strategySets .matrix-prod-sub{font-size:12.5px;font-weight:850;color:var(--t3);margin-top:3px;}
#tab-strategySets .matrix-code-cell{font-size:12.5px!important;color:#7A1F1F!important;font-weight:950!important;white-space:nowrap;}
#tab-strategySets .matrix-check{width:20px;height:20px;accent-color:var(--acc);}
#tab-strategySets .matrix-qty{width:58px;height:36px;border:1px solid var(--border);border-radius:10px;padding:0 6px;text-align:center;font-size:15px;font-weight:950;background:#FFFCF7;}
#tab-strategySets .matrix-after{background:#F2F8FF!important;border-color:#BFD5F2!important;color:#1557A6!important;}
#tab-strategySets .matrix-after-help{font-size:12.5px;font-weight:850;color:var(--t3);line-height:1.45;padding:9px 10px;border-top:1px solid var(--border);background:#FFFCF7;}
#tab-strategySets .matrix-empty{padding:28px 16px;text-align:center;color:var(--t3);font-size:15px;font-weight:850;background:#FFFCF7;}
#tab-strategySets .strategy-matrix-side{height:calc(100vh - 142px);min-height:620px;display:flex;flex-direction:column;overflow:hidden;}
#tab-strategySets .strategy-matrix-side .strategy-matrix-head{flex:0 0 auto;}
#tab-strategySets .strategy-matrix-list{display:flex;flex-direction:column;gap:9px;flex:1 1 auto;min-height:0;overflow-y:auto;padding-right:6px;}
#tab-strategySets .matrix-set-row{border:1px solid var(--border);border-radius:15px;background:#FFFCF7;padding:13px 13px 12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;}
#tab-strategySets .matrix-set-name{font-size:18px;font-weight:950;color:var(--t1);line-height:1.25;word-break:keep-all;}
#tab-strategySets .matrix-set-meta{font-size:12.5px;font-weight:850;color:var(--t3);margin-top:5px;line-height:1.35;}
#tab-strategySets .matrix-set-actions{display:flex;gap:5px;align-items:center;}
#tab-strategySets .matrix-set-actions .btn{height:34px!important;padding:0 10px!important;font-size:13px!important;font-weight:950!important;border-radius:9px!important;}
#tab-strategySets .matrix-badge{display:inline-flex;align-items:center;justify-content:center;margin-top:6px;border-radius:999px;padding:4px 8px;background:var(--info-l);color:var(--info);font-size:12px;font-weight:950;}
#tab-strategySets .strategy-search-drop{z-index:120!important;}

#tab-strategySets .strategy-matrix-bottom-actions{display:flex;justify-content:flex-end;gap:8px;align-items:center;margin-top:14px;padding-top:12px;border-top:1px dashed var(--border);} 
#tab-strategySets .strategy-matrix-bottom-actions .btn{height:44px!important;font-size:16px!important;font-weight:950!important;border-radius:12px!important;min-width:118px;}
#tab-strategySets .matrix-set-row{cursor:pointer;}
#tab-strategySets .matrix-set-row.active{border-color:#2F6FDB!important;box-shadow:0 0 0 3px rgba(47,111,219,.16)!important;background:#F3F8FF!important;}
#tab-strategySets .matrix-badge.editing{background:#EAF3FF;color:#1557A6;border:1px solid rgba(47,111,219,.24);}
@media(max-width:1280px){#tab-strategySets .strategy-matrix-grid{grid-template-columns:1fr;}#tab-strategySets .strategy-matrix-side{height:auto;min-height:0;overflow:visible;}#tab-strategySets .strategy-matrix-list{max-height:none;overflow:visible;}#tab-strategySets .strategy-matrix-topline{grid-template-columns:1fr;}#tab-strategySets .strategy-matrix-note{white-space:normal;}#tab-strategySets .strategy-matrix-addbar{grid-template-columns:1fr;} }



/* GPT_20260627_STRATEGY_MATRIX_FIELD_SIZE_V1: 전략세트 작성 입력/구간 박스 확대
   - 새 수량구간형 UI의 strategyMatrixName / strategyMatrixSearch에 기존 확대 규칙 적용
   - 브랜드/제품검색/구간칸을 수동입출고 입력칸과 같은 체급으로 정리 */
#tab-strategySets .strategy-matrix-topline #strategyMatrixName{
  height:54px!important;
  min-height:54px!important;
  font-size:18px!important;
  font-weight:900!important;
  padding:0 16px!important;
  border-radius:13px!important;
  line-height:54px!important;
  box-sizing:border-box!important;
}
#tab-strategySets .strategy-matrix-topline #strategyMatrixName::placeholder{
  font-size:17px!important;
  font-weight:850!important;
  color:var(--t3)!important;
}
#tab-strategySets .strategy-matrix-addbar .fsel2,
#tab-strategySets .strategy-matrix-addbar .fi,
#tab-strategySets #strategyMatrixSearch{
  height:54px!important;
  min-height:54px!important;
  font-size:18px!important;
  font-weight:900!important;
  padding:0 16px!important;
  border-radius:13px!important;
  line-height:54px!important;
  box-sizing:border-box!important;
}
#tab-strategySets #strategyMatrixSearch::placeholder{
  font-size:17px!important;
  font-weight:850!important;
  color:var(--t3)!important;
}
#tab-strategySets .strategy-matrix-addbar{grid-template-columns:168px minmax(300px,1fr) 150px!important;gap:12px!important;align-items:end!important;}
#tab-strategySets #btnMatrixAddProduct{
  height:54px!important;
  min-width:150px!important;
  border-radius:13px!important;
  font-size:17px!important;
  font-weight:950!important;
}
#tab-strategySets .strategy-tier-wrap{gap:9px!important;align-items:center!important;}
#tab-strategySets .strategy-tier-slot{
  min-height:50px!important;
  padding:8px 10px!important;
  border-radius:14px!important;
  gap:7px!important;
  background:#fff!important;
  box-sizing:border-box!important;
}
#tab-strategySets .strategy-tier-label{
  font-size:15px!important;
  font-weight:950!important;
  color:var(--acc-d)!important;
}
#tab-strategySets .strategy-tier-input{
  width:64px!important;
  height:40px!important;
  font-size:18px!important;
  font-weight:950!important;
  border-radius:11px!important;
  padding:0 10px!important;
  line-height:40px!important;
}
#tab-strategySets .strategy-tier-unit{
  font-size:16px!important;
  font-weight:950!important;
  color:var(--t1)!important;
}
#tab-strategySets .strategy-search-drop .strategy-search-item{
  font-size:16px!important;
  font-weight:900!important;
  padding:12px 14px!important;
}
#tab-strategySets .strategy-search-drop .strategy-search-brand,
#tab-strategySets .strategy-search-drop .strategy-search-meta{
  font-size:13px!important;
  font-weight:900!important;
}
@media(max-width:1280px){
  #tab-strategySets .strategy-matrix-addbar{grid-template-columns:1fr!important;}
  #tab-strategySets #btnMatrixAddProduct{width:100%!important;}
}


/* GPT_20260627_PRODUCT_VISIBLE_GUARD_V2: 상품등록/수정 유저 노출 상태 경고 박스
   - select 값 1=노출이면 빨간 경고
   - select 값 0=숨김이면 초록 확인
   - 저장 로직/데이터 구조는 변경하지 않음 */
.product-visible-guard{
  border:2px solid #E15D5D!important;
  background:#FFF5F5!important;
  border-radius:15px!important;
  padding:12px 13px!important;
  gap:8px!important;
  transition:background .15s,border-color .15s,box-shadow .15s!important;
  box-shadow:0 0 0 2px rgba(208,64,64,.08)!important;
}
.product-visible-guard .flbl{
  color:#C82929!important;
  font-weight:950!important;
}
.product-visible-guard .fsel2{
  border-color:#E15D5D!important;
  background:#fff!important;
  color:#1A1714!important;
  font-weight:950!important;
}
.product-visible-guard .visible-guard-note{
  font-size:12px;
  font-weight:900;
  line-height:1.45;
  color:#C82929;
  word-break:keep-all;
}
.product-visible-guard.is-hidden{
  border-color:#2E7D50!important;
  background:#F0FAF4!important;
  box-shadow:0 0 0 2px rgba(46,125,80,.10)!important;
}
.product-visible-guard.is-hidden .flbl{
  color:#2E7D50!important;
}
.product-visible-guard.is-hidden .fsel2{
  border-color:#2E7D50!important;
}
.product-visible-guard.is-hidden .visible-guard-note{
  color:#2E7D50!important;
}
.product-visible-guard.is-visible{
  border-color:#E15D5D!important;
  background:#FFF5F5!important;
}
.product-visible-guard.is-visible .visible-guard-note b{
  color:#A91F1F!important;
}
.edit-product-modal .product-visible-guard .visible-guard-note{
  font-size:14px;
  line-height:1.5;
}


/* GPT_20260629_ACCURACY_PILL_FULL_MODE_V1: 전체모드 재고정확도도 실사모드처럼 날짜 전체 색상 박스로 표시 */
.inventory-table-scroll .inv-accuracy{
  border-radius:999px;
  padding:5px 8px;
  min-width:62px;
  background:#F3EFE8;
}
.inventory-table-scroll .inv-accuracy.good{
  background:#E7F6EC!important;
  color:#207345!important;
}
.inventory-table-scroll .inv-accuracy.warn{
  background:#FFF6D9!important;
  color:#8A6410!important;
}
.inventory-table-scroll .inv-accuracy.low{
  background:#FFF0DF!important;
  color:#A95612!important;
}
.inventory-table-scroll .inv-accuracy.danger{
  background:#FDEAEA!important;
  color:#B32636!important;
}
.inventory-table-scroll .inv-accuracy.good .inv-accuracy-dot{background:#35c46b!important;}
.inventory-table-scroll .inv-accuracy.warn .inv-accuracy-dot{background:#f3c64c!important;}
.inventory-table-scroll .inv-accuracy.low .inv-accuracy-dot{background:#f39a3d!important;}
.inventory-table-scroll .inv-accuracy.danger .inv-accuracy-dot{background:#ef4056!important;}
@media(max-width:900px){.inventory-table-scroll .inv-accuracy{padding:4px 7px;min-width:58px;gap:4px;}}

/* GPT_20260629_AUDIT_EXPIRY_POPUP_V1: 실사모드 유통기한은 행 안 자동저장 대신 팝업 저장 방식 */
#tab-inventory.audit-mode .audit-expiry-pill{
  min-width:76px;
  height:38px;
  border:1px solid #D8C2AA;
  border-radius:11px;
  background:#fff;
  color:var(--t1);
  font-family:inherit;
  font-size:16px;
  font-weight:950;
  text-align:center;
  cursor:pointer;
  box-shadow:0 1px 4px rgba(55,42,30,.05);
}
#tab-inventory.audit-mode .audit-expiry-pill.empty{
  color:var(--t3);
  background:#FFFDF9;
}
#tab-inventory.audit-mode .audit-expiry-pill:hover,
#tab-inventory.audit-mode .audit-expiry-pill:active{
  border-color:var(--acc);
  background:var(--acc-l);
}
.audit-expiry-pop-ov{
  position:fixed;
  inset:0;
  z-index:5000;
  background:rgba(0,0,0,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.audit-expiry-pop{
  width:min(380px,94vw);
  background:#fffaf3;
  border:1px solid #E2D2BE;
  border-radius:20px;
  box-shadow:0 16px 50px rgba(0,0,0,.25);
  overflow:hidden;
}
.audit-expiry-pop-hd{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 18px 12px;
  border-bottom:1px solid #E9DCCB;
}
.audit-expiry-pop-title{font-size:19px;font-weight:950;color:var(--t1);letter-spacing:-.02em;}
.audit-expiry-pop-x{
  width:34px;
  height:34px;
  border:0;
  border-radius:50%;
  background:#EFE7DE;
  color:#6D5D50;
  font-size:20px;
  font-weight:950;
}
.audit-expiry-pop-body{padding:15px 18px 16px;}
.audit-expiry-pop-name{font-size:17px;font-weight:950;color:var(--t1);line-height:1.35;margin-bottom:10px;}
.audit-expiry-pop-help{font-size:14px;font-weight:850;color:var(--t2);line-height:1.45;margin-top:8px;}
.audit-expiry-pop-input{
  width:100%;
  height:52px;
  border:1px solid #D8C2AA;
  border-radius:14px;
  background:#fff;
  color:var(--t1);
  font-size:22px;
  font-weight:950;
  text-align:center;
  outline:none;
}
.audit-expiry-pop-input:focus{border-color:var(--acc);box-shadow:0 0 0 3px rgba(196,139,82,.16);}
.audit-expiry-pop-preview{margin-top:9px;font-size:15px;font-weight:950;color:#2E7D50;min-height:22px;}
.audit-expiry-pop-error{margin-top:9px;font-size:14px;font-weight:950;color:#B32636;min-height:20px;}
.audit-expiry-pop-foot{
  display:grid;
  grid-template-columns:1fr 1.25fr;
  gap:10px;
  padding:13px 18px 18px;
}
.audit-expiry-pop-foot button{
  border-radius:13px;
  padding:12px 10px;
  font-size:16px;
  font-weight:950;
  font-family:inherit;
  cursor:pointer;
}
.audit-expiry-pop-cancel{border:1px solid #D8C2AA;background:#fff;color:var(--t1);}
.audit-expiry-pop-save{border:1px solid var(--acc);background:var(--acc);color:#fff;}
@media(max-width:900px){
  #tab-inventory.audit-mode .audit-expiry-pill{min-width:70px;height:36px;font-size:15px;}
  .audit-expiry-pop{width:min(360px,94vw);}
}


/* GPT_20260629_INVENTORY_AUDIT_MODE_V2: 창고 실사용용 실사 모드
   - 기존 재고현황/실사 저장 로직은 유지
   - 실사모드에서는 한 줄 표로 순번/상품명/제품번호/현재고/재고정확도/유통기한/실사만 표시 */
.audit-mode-toggle.active{
  background:#1A1714!important;
  color:#fff!important;
  border-color:#1A1714!important;
  box-shadow:0 3px 9px rgba(0,0,0,.12)!important;
}
#tab-inventory.audit-mode .inventory-table-scroll table{
  min-width:0!important;
  width:100%!important;
  table-layout:auto!important;
}
#tab-inventory.audit-mode .inventory-table-scroll th,
#tab-inventory.audit-mode .inventory-table-scroll td{
  padding:10px 8px!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
}
#tab-inventory.audit-mode .inventory-table-scroll th.audit-col-no,
#tab-inventory.audit-mode .inventory-table-scroll td.audit-no-cell{
  width:44px!important;
  text-align:center!important;
  color:var(--t3);
  font-weight:900;
}
#tab-inventory.audit-mode .inventory-table-scroll th.audit-col-name,
#tab-inventory.audit-mode .inventory-table-scroll td.audit-name-cell{
  width:auto!important;
  min-width:230px!important;
}
#tab-inventory.audit-mode .inventory-table-scroll th.audit-col-code,
#tab-inventory.audit-mode .inventory-table-scroll td.audit-code-cell{
  width:126px!important;
}
#tab-inventory.audit-mode .inventory-table-scroll th.audit-col-stock,
#tab-inventory.audit-mode .inventory-table-scroll td.audit-stock-cell{
  width:76px!important;
  text-align:center!important;
}
#tab-inventory.audit-mode .inventory-table-scroll th.audit-col-accuracy,
#tab-inventory.audit-mode .inventory-table-scroll td.audit-accuracy-cell{
  width:116px!important;
  text-align:center!important;
}
#tab-inventory.audit-mode .inventory-table-scroll th.audit-col-expiry,
#tab-inventory.audit-mode .inventory-table-scroll td.audit-expiry-cell{
  width:100px!important;
  text-align:center!important;
}
#tab-inventory.audit-mode .inventory-table-scroll th.audit-col-action,
#tab-inventory.audit-mode .inventory-table-scroll td.audit-action-cell{
  width:70px!important;
  text-align:center!important;
}
#tab-inventory.audit-mode .audit-product-name{
  font-size:20px;
  font-weight:950;
  color:var(--t1);
  line-height:1.22;
  letter-spacing:-.04em;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:360px;
}
#tab-inventory.audit-mode .audit-code-text{
  font-family:"DM Mono",monospace;
  font-size:19px;
  font-weight:950;
  color:var(--t1);
  letter-spacing:-.03em;
}
#tab-inventory.audit-mode .audit-stock-num{
  display:inline-block;
  font-size:23px;
  font-weight:950;
  line-height:1.05;
  font-family:"DM Mono",monospace;
}
#tab-inventory.audit-mode .audit-stock-num.stock-low{color:var(--danger);}
#tab-inventory.audit-mode .audit-stock-num.stock-ok{color:var(--success);}
#tab-inventory.audit-mode .audit-accuracy-mini{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  font-size:14px;
  font-weight:950;
  color:var(--t2);
  white-space:nowrap;
}
#tab-inventory.audit-mode .audit-accuracy-mini .inv-accuracy-dot{width:11px;height:11px;}
#tab-inventory.audit-mode .audit-expiry-input{
  width:82px;
  height:38px;
  border:1px solid #D8C2AA;
  border-radius:11px;
  background:#fff;
  color:var(--t1);
  font-size:16px;
  font-weight:950;
  text-align:center;
  outline:none;
}
#tab-inventory.audit-mode .audit-expiry-input:focus{
  border-color:var(--acc);
  box-shadow:0 0 0 3px rgba(196,139,82,.16);
}
#tab-inventory.audit-mode .audit-mode-action-btn{
  min-width:54px;
  height:40px;
  border-radius:12px;
  border:1px solid #D8C2AA;
  background:#fff;
  color:var(--acc-d);
  font-family:inherit;
  font-size:16px;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 1px 4px rgba(55,42,30,.06);
}
#tab-inventory.audit-mode .audit-mode-action-btn:hover,
#tab-inventory.audit-mode .audit-mode-action-btn:active{
  background:var(--acc-l);
  border-color:var(--acc);
}
#tab-inventory.audit-mode .tbl-toolbar{flex-wrap:wrap!important;}
#tab-inventory.audit-mode #invCnt{background:#1A1714;color:#fff;}
@media(max-width:900px){
  #tab-inventory.audit-mode .inventory-table-scroll th,
  #tab-inventory.audit-mode .inventory-table-scroll td{padding:9px 6px!important;}
  #tab-inventory.audit-mode .inventory-table-scroll th.audit-col-name,
  #tab-inventory.audit-mode .inventory-table-scroll td.audit-name-cell{min-width:210px!important;}
  #tab-inventory.audit-mode .inventory-table-scroll th.audit-col-code,
  #tab-inventory.audit-mode .inventory-table-scroll td.audit-code-cell{width:116px!important;}
  #tab-inventory.audit-mode .inventory-table-scroll th.audit-col-accuracy,
  #tab-inventory.audit-mode .inventory-table-scroll td.audit-accuracy-cell{width:106px!important;}
  #tab-inventory.audit-mode .inventory-table-scroll th.audit-col-expiry,
  #tab-inventory.audit-mode .inventory-table-scroll td.audit-expiry-cell{width:92px!important;}
  #tab-inventory.audit-mode .audit-product-name{font-size:18px;max-width:320px;}
  #tab-inventory.audit-mode .audit-code-text{font-size:17px;}
  #tab-inventory.audit-mode .audit-stock-num{font-size:21px;}
  #tab-inventory.audit-mode .audit-accuracy-mini{font-size:13px;}
  #tab-inventory.audit-mode .audit-expiry-input{width:76px;height:36px;font-size:15px;}
  #tab-inventory.audit-mode .audit-mode-action-btn{min-width:50px;height:38px;font-size:15px;}
}



/* GPT_20260629_INVENTORY_AUDIT_MODE_V3: 실사모드 재고정확도 색상 보강
   - 기존 전체모드 inv-accuracy 색상 기준을 실사모드 mini 표시에도 동일 적용
   - 날짜 텍스트도 상태별 색상/배경으로 한눈에 구분 */
#tab-inventory.audit-mode .audit-accuracy-mini{
  border-radius:999px;
  padding:5px 8px;
  min-width:62px;
  background:#F3EFE8;
}
#tab-inventory.audit-mode .audit-accuracy-mini.good{
  background:#E7F6EC!important;
  color:#207345!important;
}
#tab-inventory.audit-mode .audit-accuracy-mini.warn{
  background:#FFF6D9!important;
  color:#8A6410!important;
}
#tab-inventory.audit-mode .audit-accuracy-mini.low{
  background:#FFF0DF!important;
  color:#A95612!important;
}
#tab-inventory.audit-mode .audit-accuracy-mini.danger{
  background:#FDEAEA!important;
  color:#B32636!important;
}
#tab-inventory.audit-mode .audit-accuracy-mini.good .inv-accuracy-dot{background:#35c46b!important;}
#tab-inventory.audit-mode .audit-accuracy-mini.warn .inv-accuracy-dot{background:#f3c64c!important;}
#tab-inventory.audit-mode .audit-accuracy-mini.low .inv-accuracy-dot{background:#f39a3d!important;}
#tab-inventory.audit-mode .audit-accuracy-mini.danger .inv-accuracy-dot{background:#ef4056!important;}
@media(max-width:900px){
  #tab-inventory.audit-mode .audit-accuracy-mini{padding:4px 7px;min-width:58px;gap:4px;}
}



/* GPT_IMPORTANT_MEMO_HIGHLIGHT_V1: 입출고기록 중요 메모 시각 강조 */
#tab-outlog .outlog-group-row.important-row{background:transparent!important;}
#tab-outlog td.outlog-important-memo-cell{background:transparent!important;border-left:0!important;}
#tab-outlog .outlog-important-memo-label{display:inline-flex;align-items:center;gap:4px;margin-bottom:6px;padding:3px 8px;border-radius:999px;background:#FFE08A;color:#8A4B00;font-size:13px;font-weight:950;line-height:1;}
#tab-outlog .outlog-memo-input.important-memo-input{background:#FFFBEA!important;border-color:#E0A800!important;box-shadow:0 0 0 2px rgba(224,168,0,.13)!important;color:#4A3210!important;font-weight:850;}
#tab-inlog .important-row .inlog-memo-cell{background:#FFF3C4!important;border-left:4px solid #F0B429!important;}


/* GPT_SIDEBAR_MINI_CALC_V1: 좌측 브랜드 하단 간단 계산기 */
.mini-calc{margin:14px 10px 0;padding:11px 10px;border:1px solid var(--border);border-radius:14px;background:#fffaf3;box-shadow:0 2px 8px rgba(55,42,30,.05);}
.mini-calc-title{font-size:12px;font-weight:950;color:var(--t2);margin-bottom:7px;letter-spacing:-.02em;}
.mini-calc-display{width:100%;height:38px;border:1px solid #D7C6B4;border-radius:10px;background:#fff;color:var(--t1);font-size:16px;font-weight:950;text-align:right;padding:0 9px;box-sizing:border-box;margin-bottom:8px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;}
.mini-calc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;}
.mini-calc-btn{height:30px;border:1px solid #E1D5C8;border-radius:8px;background:#fff;color:var(--t1);font-size:13px;font-weight:950;font-family:inherit;cursor:pointer;}
.mini-calc-btn.op{background:#F3E7D7;color:#8A4E13;}
.mini-calc-btn.main{background:#1A1714;color:#fff;border-color:#1A1714;}
.mini-calc-btn.clear{background:#FFF1F1;color:#C82929;border-color:#E8BABA;}
.mini-calc-btn:active{transform:scale(.97);}
.mini-calc.active{border-color:#8A4E13;box-shadow:0 0 0 2px rgba(138,78,19,.16),0 2px 8px rgba(55,42,30,.05);}
@media(max-width:900px){.mini-calc{display:none!important;}}


/* GPT_ORDER_PERIOD_FILTER_V2: 주문기록 기간 드롭다운만 유지, 중복 빠른 버튼 제거 */
.order-period-select{min-width:104px;}
.order-period-quick{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap;}
.order-period-chip{border:1px solid var(--border);background:var(--surface);color:var(--t2);border-radius:999px;padding:7px 11px;font-size:13px;font-weight:900;font-family:inherit;cursor:pointer;white-space:nowrap;}
.order-period-chip.active{background:var(--t1);border-color:var(--t1);color:#fff;}
@media(max-width:760px){.order-period-chip{padding:7px 9px;font-size:12px}.order-period-select{min-width:92px;}}



/* GPT_OUTLOG_MEMO_POPUP_V1: 출고기록 메모 가독성 보강
   - 테이블 행 높이를 동적으로 흔들지 않고, 메모칸 기본 높이/폭과 크게 보기 팝업만 추가 */

#tab-outlog .outlog-memo-box{display:flex;flex-direction:column;gap:7px;align-items:stretch;justify-content:center;min-width:0;}
#tab-outlog .outlog-memo-tools{display:flex;justify-content:flex-end;align-items:center;gap:6px;}
#tab-outlog .outlog-memo-open-btn{height:26px;border:1px solid #D8C8B8;background:#FFF9F1;color:#6F4B2E;border-radius:999px;padding:0 10px;font-family:inherit;font-size:12px;font-weight:950;cursor:pointer;white-space:nowrap;}
#tab-outlog .outlog-memo-open-btn:hover{background:#F5E7D8;border-color:#C4956A;}
#tab-outlog .outlog-memo-input{min-height:92px!important;max-height:138px;overflow:auto;resize:none;font-size:15px!important;line-height:1.45!important;}
.outlog-memo-modal-backdrop{position:fixed;inset:0;background:rgba(24,20,16,.42);z-index:9999;display:flex;align-items:center;justify-content:center;padding:24px;}
.outlog-memo-modal{width:min(720px,92vw);background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.22);overflow:hidden;}
.outlog-memo-modal-hd{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid var(--border);background:#FBF7F1;}
.outlog-memo-modal-title{font-size:18px;font-weight:1000;color:var(--t1);}
.outlog-memo-modal-x{border:0;background:#EFE7DC;border-radius:999px;width:34px;height:34px;font-size:18px;font-weight:950;cursor:pointer;color:var(--t2);}
.outlog-memo-modal-body{padding:16px 18px;}
.outlog-memo-modal-meta{font-size:13px;color:var(--t2);font-weight:850;margin-bottom:8px;}
.outlog-memo-modal-text{width:100%;min-height:260px;border:1px solid var(--border);border-radius:12px;padding:12px 13px;box-sizing:border-box;font-family:inherit;font-size:16px;font-weight:850;line-height:1.55;outline:none;resize:vertical;}
.outlog-memo-modal-text:focus{border-color:var(--acc);box-shadow:0 0 0 2px rgba(196,149,106,.16);}

/* GPT_20260709_OUTLOG_MEMO_IMPORTANT_MODAL_V28: 메모 크게 보기 중요메모 체크 연동 */
.outlog-memo-important-row{display:flex;align-items:center;gap:8px;margin:0 0 10px 0;padding:9px 11px;border:1px solid #EAD8B2;border-radius:11px;background:#FFF8E6;color:#7A4B00;font-size:14px;font-weight:950;}
.outlog-memo-important-row input{width:18px;height:18px;accent-color:#C4956A;}
.outlog-memo-important-row span{line-height:1.2;}
.outlog-memo-modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:14px 18px;border-top:1px solid var(--border);background:#FBF7F1;}
.outlog-memo-modal-foot .btn{min-width:82px;}
/* GPT_OUTLOG_PAYCHECK_V1: 출고기록 전략세트 프로모션 지급현황 */
.outlog-pay-status-btn{border:1px solid rgba(208,64,64,.28);background:var(--danger-l);color:var(--danger);border-radius:999px;padding:7px 10px;font-size:13px;font-weight:1000;line-height:1.1;cursor:pointer;white-space:nowrap;min-width:96px;box-shadow:0 1px 0 rgba(0,0,0,.02);}
.outlog-pay-status-btn.done{border-color:rgba(46,125,80,.28);background:var(--success-l);color:var(--success);}
.outlog-pay-status-btn:hover{filter:brightness(.98);transform:translateY(-1px);}
.outlog-pay-status-btn .pay-main{display:block;font-weight:1000;}
.outlog-pay-status-btn .pay-sub{display:block;margin-top:2px;font-family:"DM Mono",monospace;font-size:12px;font-weight:950;opacity:.9;}
.outlog-pay-empty{color:var(--t3);font-weight:900;}
.outpay-modal-backdrop{position:fixed;inset:0;background:rgba(24,20,16,.45);z-index:10000;display:flex;align-items:center;justify-content:center;padding:24px;}
.outpay-modal{width:min(780px,94vw);max-height:90vh;background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.24);overflow:hidden;display:flex;flex-direction:column;}
.outpay-modal-hd{padding:16px 18px;border-bottom:1px solid var(--border);background:#FBF7F1;}
.outpay-modal-title{font-size:19px;font-weight:1000;color:var(--t1);letter-spacing:-.3px;}
.outpay-modal-meta{margin-top:4px;color:var(--t2);font-size:13px;font-weight:850;}
.outpay-modal-body{padding:14px 18px;overflow:auto;}
.outpay-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;padding:11px 13px;border-radius:14px;background:#F7F5F0;border:1px solid var(--border);font-weight:950;}
.outpay-summary .state{border-radius:999px;padding:6px 11px;background:var(--danger-l);color:var(--danger);font-weight:1000;white-space:nowrap;}
.outpay-summary.done .state{background:var(--success-l);color:var(--success);}
.outpay-table{width:100%;border-collapse:separate;border-spacing:0;table-layout:fixed;border:1px solid var(--border);border-radius:14px;overflow:hidden;}
.outpay-table th{font-size:14px;font-weight:1000;color:var(--t1);background:var(--surface2);padding:10px 11px;}
.outpay-table td{font-size:16px;font-weight:850;padding:10px 11px;border-bottom:1px solid var(--border);vertical-align:middle;}
.outpay-table tr:last-child td{border-bottom:none;}
.outpay-name{font-size:17px;font-weight:1000;color:var(--t1);line-height:1.3;word-break:keep-all;}
.outpay-kind{display:inline-block;margin-left:6px;border-radius:999px;padding:2px 7px;font-size:12px;font-weight:950;background:#F4E9DA;color:#8C6340;vertical-align:middle;white-space:nowrap;}
.outpay-kind.office{background:#FFF0D7;color:#B25D10;}
.outpay-planned{text-align:center;font-family:"DM Mono",monospace;font-size:17px;font-weight:1000;color:var(--t1);white-space:nowrap;}
.outpay-step{display:grid;grid-template-columns:38px 58px 38px;align-items:center;justify-content:center;gap:0;border:1px solid #D5C6B3;border-radius:12px;overflow:hidden;width:max-content;margin:0 auto;background:#fff;}
.outpay-step button{height:38px;border:0;background:#fff;font-size:22px;font-weight:1000;color:var(--t1);cursor:pointer;}
.outpay-step button:hover{background:var(--acc-l);}
.outpay-step input{height:38px;width:58px;border:0;border-left:1px solid #D5C6B3;border-right:1px solid #D5C6B3;text-align:center;font-family:"DM Mono",monospace;font-size:17px;font-weight:1000;outline:none;background:#fff;color:var(--t1);}
.outpay-modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:14px 18px;border-top:1px solid var(--border);background:#FBF7F1;}
.outpay-modal-foot .btn{min-width:92px;font-size:15px;font-weight:950;}
/* GPT_20260708_OUTPAY_ACTIONS_V24: 지급현황 초기화/전체 지급 및 표 정렬 */
.outpay-summary-left{min-width:0;line-height:1.25;}
.outpay-summary-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;margin-left:auto;}
.outpay-mini-btn{height:32px;padding:0 10px;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--t1);font-family:inherit;font-size:13px;font-weight:950;cursor:pointer;white-space:nowrap;}
.outpay-mini-btn:hover{background:var(--acc-l);border-color:var(--acc);color:var(--acc-d);}
.outpay-mini-btn.warn{color:var(--danger);border-color:#efc9c9;}
.outpay-mini-btn.warn:hover{background:var(--danger-l);border-color:var(--danger);}
.outpay-table th:first-child,.outpay-table td:first-child{text-align:left;width:54%;}
.outpay-table th:nth-child(2),.outpay-table td:nth-child(2){text-align:center;width:21%;}
.outpay-table th:nth-child(3),.outpay-table td:nth-child(3){text-align:center;width:25%;}
.outpay-table th{vertical-align:middle;}
.outpay-planned{display:flex;align-items:center;justify-content:center;min-height:38px;}

/* GPT_20260708_OUTPAY_TABLE_FIX_V25: 지급현황 나갈수량 셀 테이블 정렬 복구 */
.outpay-table{
  table-layout:fixed!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
.outpay-table th:first-child,.outpay-table td:first-child{width:55%!important;text-align:left!important;}
.outpay-table th:nth-child(2),.outpay-table td:nth-child(2){width:18%!important;text-align:center!important;}
.outpay-table th:nth-child(3),.outpay-table td:nth-child(3){width:27%!important;text-align:center!important;}
.outpay-table td.outpay-planned{
  display:table-cell!important;
  vertical-align:middle!important;
  text-align:center!important;
  min-height:0!important;
  white-space:nowrap!important;
  line-height:1.3!important;
  padding:10px 11px!important;
}
.outpay-table .outpay-step{margin:0 auto!important;}
@media(max-width:900px){.outpay-summary{align-items:flex-start;flex-direction:column}.outpay-summary-actions{margin-left:0;justify-content:flex-start}}
@media(max-width:900px){.outpay-modal-backdrop{align-items:flex-start;padding:12px}.outpay-table{min-width:660px}.outpay-modal-body{overflow:auto}.outlog-pay-status-btn{min-width:88px;font-size:12px;padding:6px 8px}}

/* GPT_20260708_OUTPAY_ROW_DONE_V26: 지급현황 행 단위 지급완료 체크 표시 */
.outpay-paid-cell{display:flex;align-items:center;justify-content:center;gap:8px;}
.outpay-done-mark{width:22px;height:22px;border-radius:999px;background:var(--success-l);border:1px solid rgba(46,125,80,.28);color:var(--success);font-size:14px;font-weight:1000;display:inline-flex;align-items:center;justify-content:center;line-height:1;opacity:0;visibility:hidden;transform:scale(.92);transition:opacity .12s ease,transform .12s ease;flex:0 0 22px;}
.outpay-done-mark.on{opacity:1;visibility:visible;transform:scale(1);}
.outpay-row-done td{background:rgba(46,125,80,.025);}
@media(max-width:900px){.outpay-paid-cell{gap:6px}.outpay-done-mark{width:20px;height:20px;flex-basis:20px;font-size:13px}}
@media(max-width:900px){.outlog-memo-modal-backdrop{align-items:flex-start;padding:12px}.outlog-memo-modal-text{min-height:220px}}

/* GPT_20260707_OUT_RETURN_UI_V13: 출고기록 반품 UI 테스트 */
#tab-outlog .outlog-manage-actions{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;}
#tab-outlog .outlog-return-btn{height:34px;min-width:48px;border:1px solid #C7D7F5;background:#EEF5FF;color:#2457A6;border-radius:8px;font-family:inherit;font-size:13px;font-weight:950;cursor:pointer;white-space:nowrap;}
#tab-outlog .outlog-return-btn:hover{background:#E2EEFF;border-color:#8FB3EF;}
#tab-outlog .outlog-return-preview-badge{display:none!important;} /* v17: 반품 미리보기 배지 제거 */
#tab-outlog .outlog-return-state-badge{display:inline-flex;align-items:center;justify-content:center;margin-left:8px;border-radius:999px;padding:2px 7px;font-size:12px;font-weight:1000;vertical-align:middle;white-space:nowrap;border:1px solid #E5C28F;background:#FFF7E6;color:#B45309;}
#tab-outlog .outlog-return-state-badge.full{border-color:#F1B8B8;background:#FFF1F1;color:#C2413A;}
#tab-outlog .outlog-return-state-badge.partial{border-color:#E5C28F;background:#FFF7E6;color:#B45309;}
#tab-outlog .outlog-qty-returned{display:flex;flex-direction:column;gap:2px;align-items:flex-start;line-height:1.22;min-width:96px;text-align:left;}
#tab-outlog .outlog-qty-returned .now{font-size:17px;font-weight:1000;color:var(--t1);}
#tab-outlog .outlog-qty-returned .meta{font-size:11px;font-weight:900;color:#B45309;white-space:normal;line-height:1.22;}
.outreturn-modal-backdrop{position:fixed;inset:0;background:rgba(24,20,16,.45);z-index:10020;display:flex;align-items:center;justify-content:center;padding:24px;}
.outreturn-modal{width:min(820px,94vw);max-height:90vh;background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.24);overflow:hidden;display:flex;flex-direction:column;}
.outreturn-modal-hd{padding:16px 18px;border-bottom:1px solid var(--border);background:#FBF7F1;}
.outreturn-modal-title{font-size:19px;font-weight:1000;color:var(--t1);letter-spacing:-.3px;}
.outreturn-modal-meta{margin-top:4px;color:var(--t2);font-size:13px;font-weight:850;line-height:1.45;}
.outreturn-modal-body{padding:14px 18px;overflow:auto;}
.outreturn-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px;}
.outreturn-chip{border:1px solid var(--border);border-radius:12px;background:#FFFCF8;padding:10px 12px;text-align:center;}
.outreturn-chip .lbl{font-size:12px;font-weight:900;color:var(--t2);}
.outreturn-chip .val{margin-top:3px;font-size:18px;font-weight:1000;color:var(--t1);}
.outreturn-table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--border);border-radius:12px;overflow:hidden;}
.outreturn-table th{background:#F3EEE7;color:var(--t1);font-size:13px;font-weight:1000;padding:10px;text-align:left;border-bottom:1px solid var(--border);}
.outreturn-table td{padding:10px;border-bottom:1px solid var(--border);vertical-align:middle;font-size:14px;font-weight:850;}
.outreturn-table tr:last-child td{border-bottom:0;}
.outreturn-prod{font-size:15px;font-weight:1000;color:var(--t1);}
.outreturn-sub{margin-top:3px;font-size:12px;font-weight:850;color:var(--t2);}
.outreturn-step{display:flex;align-items:center;gap:6px;}
.outreturn-step button{width:34px;height:34px;border:1px solid var(--border);border-radius:9px;background:#FFF9F1;font-size:18px;font-weight:1000;cursor:pointer;}
.outreturn-step input{width:74px;height:34px;border:1px solid var(--border);border-radius:9px;text-align:center;font-family:inherit;font-size:15px;font-weight:1000;}

.outreturn-direct{display:flex;align-items:center;gap:6px;}
.outreturn-direct input{width:86px;height:36px;border:1px solid var(--border);border-radius:9px;text-align:center;font-family:inherit;font-size:15px;font-weight:1000;background:#fff;}
.outreturn-after-label{font-size:13px;font-weight:950;color:#2457A6;white-space:nowrap;}
.outreturn-zero-note{font-size:12px;font-weight:900;color:var(--t2);}
.outreturn-preview{font-weight:1000;color:#2457A6;}
.outreturn-preview .meta{display:block;margin-top:2px;font-size:12px;font-weight:900;color:#B45309;}
.outreturn-help{margin-top:10px;padding:10px 12px;border:1px dashed #D9B892;border-radius:12px;background:#FFF9F1;color:var(--t2);font-size:13px;font-weight:850;line-height:1.5;}
.outreturn-modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:14px 18px;border-top:1px solid var(--border);background:#FBF7F1;}
.outreturn-modal-foot .btn{min-width:92px;font-size:15px;font-weight:950;}
@media(max-width:900px){.outreturn-modal-backdrop{align-items:flex-start;padding:12px}.outreturn-summary{grid-template-columns:1fr}.outreturn-table{min-width:690px}.outreturn-modal-body{overflow:auto}}

/* GPT_20260707_OUT_RETURN_UI_V14: 전략세트 반품은 세트 단위, 일반 품목은 낱개 단위 */
/* GPT_20260707_OUT_RETURN_UI_V15: 반품 수량 입력을 반품 후 적용 수량 기준으로 전환 */
/* GPT_20260708_OUT_RETURN_UI_V19: 출고기록 수량 하단 설명 제거, 일부/전체반품 배지 표시 */
.outreturn-section{border:1px solid var(--border);border-radius:14px;overflow:hidden;background:#fff;margin-bottom:12px;}
.outreturn-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#F7F2EB;border-bottom:1px solid var(--border);font-size:15px;font-weight:1000;color:var(--t1);}
.outreturn-section-title .hint{font-size:12px;font-weight:900;color:var(--t2);}
.outreturn-section-title.strategy{color:#7B1FA2;background:#FAF2FF;border-bottom-color:#E7D3F1;}
.outreturn-section-title.general{color:#111;background:#F7F5F0;}
.outreturn-divider{height:1px;border-top:1px dashed #D8C8B5;margin:12px 0;}
.outreturn-set-name{font-size:16px;font-weight:1000;color:#7B1FA2;line-height:1.3;word-break:keep-all;}
.outreturn-set-sub{margin-top:3px;font-size:12px;font-weight:850;color:var(--t2);}
.outreturn-table.strategy-return th{background:#F7EBFF;color:#6E1B91;}
.outreturn-table.strategy-return td{background:#FFFCFF;}
.outreturn-set-preview{font-size:15px;font-weight:1000;color:#7B1FA2;white-space:nowrap;}
.outreturn-set-preview .meta{display:block;margin-top:2px;font-size:12px;font-weight:900;color:#B45309;}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}



/* GPT_PROMO_FILTER_COLOR_V3: 출고기록 프로모션 분류 필터 + 품목명 색상 구분 */
.outlog-promo-color-note{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 4px;font-size:12px;font-weight:950;white-space:nowrap;color:var(--t3);} 
.outlog-promo-color-note .note-strategy{color:#7B1FA2;font-weight:1000;}
.outlog-promo-color-note .note-general{color:#000;font-weight:1000;}
.outlog-product-name.outlog-promo-strategy-name{color:#7B1FA2!important;font-weight:1000;}
.outlog-product-name.outlog-promo-general-name{color:#000!important;}
.promo-summary-table .promo-general-total td:first-child{font-weight:1000;color:#111111;}

/* GPT_PROMO_SET_SUMMARY_V1: 프로모션 출고 합산 우측 전체 개수 버튼 + 구성 요약 팝업 */
#tab-summary .promo-summary-open-btn{border:1px solid #E0C8A8;background:#FFF8EC;border-radius:999px;padding:9px 14px;font-family:inherit;cursor:pointer;justify-self:end;min-width:132px;}
#tab-summary .promo-summary-open-btn:hover{background:#F7E9D4;border-color:#C4956A;}
#tab-summary .promo-summary-open-btn b{color:var(--acc-d)!important;}
.promo-summary-modal-backdrop{position:fixed;inset:0;background:rgba(24,20,16,.45);z-index:10001;display:flex;align-items:center;justify-content:center;padding:22px;}
.promo-summary-modal{width:min(980px,94vw);max-height:88vh;background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:0 22px 70px rgba(0,0,0,.24);overflow:hidden;display:flex;flex-direction:column;}
.promo-summary-modal-hd{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 20px;border-bottom:1px solid var(--border);background:#FBF7F1;}
.promo-summary-modal-title{font-size:21px;font-weight:1000;color:var(--t1);letter-spacing:-.04em;}
.promo-summary-modal-sub{margin-top:4px;font-size:13px;font-weight:850;color:var(--t2);}
.promo-summary-modal-x{border:0;background:#EFE7DC;border-radius:999px;width:36px;height:36px;font-size:19px;font-weight:950;cursor:pointer;color:var(--t2);}
.promo-summary-modal-body{padding:16px 18px;overflow:auto;scrollbar-width:thin;}
.promo-summary-table{width:100%;border-collapse:collapse;min-width:760px;}
.promo-summary-table th{padding:10px 9px;border-bottom:1px solid var(--border);background:#F6EFE7;color:var(--t2);font-size:14px;font-weight:950;text-align:right;white-space:nowrap;}
.promo-summary-table th:first-child{text-align:left;}
.promo-summary-table td{padding:12px 9px;border-bottom:1px solid #EFE6DB;font-size:15px;font-weight:850;color:var(--t1);text-align:right;vertical-align:middle;white-space:nowrap;}
.promo-summary-table td:first-child{text-align:left;white-space:normal;word-break:keep-all;font-size:16px;font-weight:950;}
.promo-summary-table .promo-divider td{padding:9px 0;border-bottom:2px solid #D8C8B8;background:#FCFAF6;font-size:0;line-height:0;}
.promo-summary-table .promo-money{font-family:"DM Mono",monospace;font-weight:950;color:var(--danger);}
.promo-summary-view-btn{border:1px solid #D8C8B8;background:#fffaf3;color:var(--t2);border-radius:999px;padding:7px 10px;font-size:13px;font-weight:950;font-family:inherit;cursor:pointer;}
.promo-summary-view-btn:hover{background:#F5E7D8;color:var(--t1);border-color:#C4956A;}
#tab-outlog tr.promo-summary-target-row td{background:#FFF3D8!important;box-shadow:inset 4px 0 0 #D08422;}
.promo-summary-empty{padding:24px;text-align:center;color:var(--t3);font-size:15px;font-weight:850;}
@media(max-width:760px){.promo-summary-modal{width:96vw}.promo-summary-modal-title{font-size:19px}.promo-summary-table{min-width:700px}.promo-summary-table td,.promo-summary-table th{font-size:13px}.promo-summary-table td:first-child{font-size:14px}}



/* GPT_20260707_OUT_STAGE3_UI_V12: 수동출고 3단계 UI 보정 - 확인 버튼 색상/헤더 설명 줄맞춤 */
#ovAddOut .modal{width:min(940px,94vw)!important;}
#ovAddOut .modal-body{gap:14px!important;}
#ovAddOut .out-stage3-topline{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:14px;align-items:end;}
#ovAddOut .out-stage3-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:stretch;}
#ovAddOut .out-stage3-panel{border:1.5px solid var(--border);border-radius:16px;background:#FFFCF7;padding:14px;display:flex;flex-direction:column;gap:10px;min-width:0;}
#ovAddOut .out-stage3-panel-head{display:flex;justify-content:space-between;gap:10px;align-items:center;border-bottom:1px solid var(--border);padding-bottom:9px;}
#ovAddOut .out-stage3-panel-head b{font-size:19px;font-weight:950;color:var(--t1);letter-spacing:-.04em;line-height:1.25;}
#ovAddOut .out-stage3-panel-head span{font-size:13px;font-weight:850;color:var(--t1);line-height:1.25;text-align:right;white-space:nowrap;}
#ovAddOut .out-stage3-panel-head b{white-space:nowrap;}
#ovAddOut .out-manual-confirm{height:54px;border-radius:13px;font-size:15px;font-weight:950;display:flex;align-items:center;justify-content:center;}
#ovAddOut .out-manual-confirm:disabled{opacity:.45;cursor:not-allowed;background:#f5f0ea;color:#9a8a7b;border-color:var(--border);}
#ovAddOut .out-manual-select-grid,#ovAddOut .out-strategy-pick-grid{display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px;align-items:end;}
#ovAddOut .out-manual-qty-box{display:grid;grid-template-columns:minmax(190px,240px) minmax(0,1fr);gap:10px;align-items:end;}
#ovAddOut .out-unit-hidden{display:none!important;}
#ovAddOut .out-current-target{border:1px solid var(--border);border-radius:13px;background:#fff;padding:12px 13px;min-height:50px;display:flex;align-items:center;font-size:14px;font-weight:900;color:var(--t2);line-height:1.35;}
#ovAddOut .out-current-target.active{background:#EEF7FF;border-color:#BFD5F2;color:#1557A6;}
#ovAddOut .out-current-target.disabled{background:#f5f0ea;color:#9a8a7b;}
#ovAddOut .out-strategy-accum-box{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;}
#ovAddOut .out-strategy-accum-box>div{background:#fff;border:1px solid var(--border);border-radius:13px;padding:10px 8px;text-align:center;}
#ovAddOut .out-strategy-accum-box span{display:block;font-size:12px;font-weight:900;color:var(--t3);margin-bottom:4px;}
#ovAddOut .out-strategy-accum-box b{font-size:18px;font-weight:950;color:var(--t1);}
#ovAddOut .out-strategy-add-wrap{display:grid;grid-template-columns:1fr 1fr 1fr 70px;gap:8px;align-items:center;margin-top:0!important;}
#ovAddOut .out-strategy-add-btn{height:46px;border:1px solid var(--border);border-radius:13px;background:#fffaf3;color:var(--t1);font-size:16px;font-weight:950;cursor:pointer;}
#ovAddOut .out-strategy-add-btn:not(:disabled):hover{background:var(--acc-l);color:var(--acc-d);}
#ovAddOut .out-strategy-add-btn:disabled,#ovAddOut .out-strategy-direct:disabled{opacity:.45;cursor:not-allowed;background:#f5f0ea!important;color:#9a8a7b!important;}
#ovAddOut .out-strategy-direct{height:46px!important;min-height:46px!important;text-align:center;font-weight:950!important;font-size:16px!important;padding:8px!important;}
#ovAddOut .out-strategy-preview{border:1px dashed #C9B9A8;border-radius:13px;background:#fff;padding:12px;min-height:54px;font-size:14px;font-weight:850;color:var(--t1);line-height:1.45;}
#ovAddOut .out-strategy-preview{word-break:keep-all;}
#ovAddOut .out-strategy-preview b{font-weight:950;color:var(--t1);}
#ovAddOut .out-stage-toast{display:none;position:sticky;bottom:0;z-index:5;margin:0 auto;max-width:520px;text-align:center;background:#1F2937;color:#fff;border-radius:999px;padding:10px 16px;font-size:14px;font-weight:900;box-shadow:0 8px 22px rgba(0,0,0,.18);}
#ovAddOut .out-stage-toast.show{display:block;}
#ovAddOut .out-cart-manual{grid-template-columns:minmax(0,1fr) 94px 42px!important;}
@media(max-width:880px){#ovAddOut .out-stage3-topline,#ovAddOut .out-stage3-grid{grid-template-columns:1fr;}#ovAddOut .out-manual-select-grid,#ovAddOut .out-strategy-pick-grid,#ovAddOut .out-manual-qty-box{grid-template-columns:1fr;}#ovAddOut .out-strategy-add-wrap{grid-template-columns:1fr 1fr;}#ovAddOut .out-strategy-accum-box{grid-template-columns:1fr;}}


/* GPT_20260708_STAGE4_V20_UI_TUNE: 출고등록/출고기록 UI 정렬 보정 */
#ovAddOut .out-stage3-panel-head{align-items:center!important;}
#ovAddOut .out-stage3-panel-head b{font-size:19px!important;font-weight:950!important;line-height:1.25!important;}
#ovAddOut .out-stage3-panel-head span{font-size:13px!important;font-weight:850!important;line-height:1.25!important;}
#ovAddOut .out-strategy-pick-grid .fg,#ovAddOut .out-manual-select-grid .fg{display:flex!important;flex-direction:column!important;gap:6px!important;justify-content:flex-start!important;}
#ovAddOut .out-strategy-pick-grid .flbl,#ovAddOut .out-manual-select-grid .flbl{height:22px!important;line-height:22px!important;margin:0!important;font-size:15px!important;font-weight:950!important;}
#ovAddOut .out-strategy-pick-grid .fsel2,#ovAddOut .out-manual-select-grid .fsel2,#ovAddOut .out-manual-select-grid .ps-input{height:54px!important;min-height:54px!important;}
#ovAddOut .out-strategy-qty-label{display:block!important;margin:0!important;height:22px!important;line-height:22px!important;font-size:15px!important;font-weight:950!important;color:var(--t1)!important;}
#ovAddOut .out-strategy-add-wrap{display:grid!important;grid-template-columns:1fr 1fr 1fr!important;gap:10px!important;align-items:center!important;margin-top:0!important;}
#ovAddOut .out-strategy-add-btn,#ovAddOut .out-strategy-direct{height:54px!important;min-height:54px!important;border-radius:13px!important;font-size:16px!important;font-weight:950!important;}
#ovAddOut .out-strategy-add-btn[data-out-strategy-add-custom="1"]{background:var(--acc)!important;border-color:var(--acc)!important;color:#fff!important;}
#ovAddOut .out-strategy-add-btn[data-out-strategy-add-custom="1"]:disabled{opacity:.45!important;cursor:not-allowed!important;background:#f5f0ea!important;color:#9a8a7b!important;border-color:var(--border)!important;}
#ovAddOut .out-qty-stepper #outUnitCount{text-align:center!important;}
#ovAddOut .out-qty-stepper #outUnitCount::placeholder{text-align:center!important;color:#6f625d!important;font-weight:950!important;opacity:1!important;}

#tab-outlog .outlog-memo-input{min-height:74px!important;max-height:104px!important;font-size:14px!important;line-height:1.38!important;}
#tab-outlog .outlog-memo-box{gap:5px!important;}
#tab-outlog .outlog-manage-actions{gap:6px!important;align-items:center!important;justify-content:center!important;}
@media(max-width:880px){#ovAddOut .out-strategy-add-wrap{grid-template-columns:1fr!important;}}



/* GPT_20260708_STAGE4_UI_V21: 전략세트 출고 라벨/박스 정렬 보정 */
#ovAddOut .out-strategy-pick-grid{align-items:end!important;}
#ovAddOut .out-strategy-pick-grid .fg{display:flex!important;flex-direction:column!important;gap:6px!important;justify-content:flex-start!important;margin:0!important;}
#ovAddOut .out-strategy-pick-grid .flbl{height:22px!important;line-height:22px!important;margin:0!important;padding:0!important;font-size:15px!important;font-weight:950!important;color:var(--t1)!important;}
#ovAddOut .out-strategy-pick-grid .fsel2{height:54px!important;min-height:54px!important;line-height:1.25!important;margin:0!important;padding-top:0!important;padding-bottom:0!important;display:flex!important;align-items:center!important;}
#ovAddOut .out-strategy-brand-filter{margin:0!important;}
#ovAddOut .out-strategy-accum-box>div{min-height:66px!important;padding:10px 8px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;}
#ovAddOut .out-strategy-accum-box span{line-height:1.25!important;margin:0 0 5px!important;}
#ovAddOut .out-strategy-accum-box b{line-height:1.25!important;margin:0!important;display:block!important;overflow:visible!important;}

/* GPT_20260708_STAGE4_UI_V22: 출고등록 셀렉트 글자 잘림/굵기 통일 보정 */
#ovAddOut .out-manual-select-grid .fsel2,
#ovAddOut .out-strategy-pick-grid .fsel2{
  font-size:18px!important;
  font-weight:900!important;
  line-height:1.42!important;
  padding-top:0!important;
  padding-bottom:0!important;
  box-sizing:border-box!important;
}
#ovAddOut .out-manual-select-grid .fsel2 option,
#ovAddOut .out-strategy-pick-grid .fsel2 option{
  font-size:18px!important;
  line-height:1.42!important;
  font-weight:850!important;
}
#ovAddOut .out-manual-select-grid .flbl,
#ovAddOut .out-strategy-pick-grid .flbl{
  font-size:15px!important;
  font-weight:950!important;
  color:var(--t1)!important;
}


/* GPT_V31_STRATEGY_ACCUM_COLORS: make monthly/add/applied counts easier to scan */
#ovAddOut .out-strategy-accum-box>div:nth-child(1) span,
#ovAddOut .out-strategy-accum-box>div:nth-child(1) b{color:#111!important;}
#ovAddOut .out-strategy-accum-box>div:nth-child(2) span,
#ovAddOut .out-strategy-accum-box>div:nth-child(2) b{color:#1F5FBF!important;}
#ovAddOut .out-strategy-accum-box>div:nth-child(3) span,
#ovAddOut .out-strategy-accum-box>div:nth-child(3) b{color:#C7352D!important;}

/* GPT_20260710_STRATEGY_SUMMARY_V49 */
.strategy-summary-backdrop{position:fixed;inset:0;background:rgba(24,20,16,.46);z-index:10020;display:flex;align-items:center;justify-content:center;padding:24px;}
.strategy-summary-modal{width:min(980px,95vw);max-height:90vh;background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:0 24px 70px rgba(0,0,0,.25);overflow:hidden;display:flex;flex-direction:column;}
.strategy-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px 14px;border-bottom:1px solid var(--border);background:#FBF7F1;}
.strategy-summary-title{font-size:20px;font-weight:1000;color:var(--t1);}
.strategy-summary-sub{font-size:13px;font-weight:800;color:var(--t2);margin-top:3px;}
.strategy-summary-x{width:36px;height:36px;border:0;border-radius:999px;background:#EFE7DC;color:var(--t2);font-size:19px;font-weight:950;cursor:pointer;}
.strategy-summary-filters{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:12px 18px;border-bottom:1px solid var(--border);background:#fff;}
.strategy-summary-filters .out-date-inp{width:138px;}
.strategy-summary-body{overflow:auto;min-height:240px;padding:0 18px 16px;}
.strategy-summary-table{width:100%;border-collapse:collapse;table-layout:fixed;}
.strategy-summary-table th{position:sticky;top:0;z-index:2;background:var(--surface2);font-size:14px;font-weight:950;color:var(--t1);padding:11px 10px;}
.strategy-summary-table td{font-size:15px;font-weight:800;padding:11px 10px;}
.strategy-summary-table th,.strategy-summary-table td{vertical-align:middle;}
.strategy-summary-return{font-size:17px!important;font-weight:1000!important;color:#D65252;}
.strategy-summary-net{font-size:18px!important;font-weight:1000!important;color:#1B2CFF;}
.strategy-summary-empty{text-align:center;color:var(--t3);padding:50px 20px!important;font-size:16px!important;}
.strategy-summary-foot{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:13px 18px;border-top:1px solid var(--border);background:#FBF7F1;}
.strategy-summary-actions{display:flex;gap:8px;}
.strategy-summary-check{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:900;color:var(--t2);white-space:nowrap;}
.strategy-summary-check input{width:17px;height:17px;accent-color:var(--acc);}
.strategy-summary-launch{display:inline-flex;align-items:center;gap:8px;background:#141414!important;color:#fff!important;border-color:#141414!important;padding:10px 16px!important;min-height:42px;font-size:14px!important;font-weight:1000!important;border-radius:12px!important;box-shadow:0 4px 12px rgba(0,0,0,.12);}
.strategy-summary-launch::before{content:"📊";font-size:17px;line-height:1;}
.strategy-summary-launch:hover{background:#000!important;border-color:#000!important;filter:brightness(1.02);}
.strategy-summary-return{font-size:17px!important;font-weight:1000!important;color:#D65252;}

/* GPT_20260710_STRATEGY_GROUP_DIVIDER_V50: 카운셀러 전환 구분선 */
.strategy-summary-table tr.strategy-summary-person-start td{border-top:3px solid #776B60!important;}

.strategy-summary-views{display:flex;align-items:center;gap:7px;padding:10px 18px 8px;background:#fff;}
.strategy-summary-view-btn{border:1px solid var(--border);background:#fff;color:var(--t2);border-radius:999px;padding:7px 13px;font-family:inherit;font-size:13px;font-weight:950;cursor:pointer;}
.strategy-summary-view-btn.active{background:var(--t1);border-color:var(--t1);color:#fff;}
.strategy-summary-table.strategy-summary-person-mode .strategy-summary-counselor{width:160px;text-align:left;vertical-align:top;}
.strategy-summary-table.strategy-summary-person-mode .strategy-summary-sequence{width:58px;text-align:center;}
.strategy-summary-table.strategy-summary-person-mode .strategy-summary-strategy{width:auto;text-align:left;}
.strategy-summary-table.strategy-summary-person-mode .strategy-summary-price{width:120px;text-align:right;}
.strategy-summary-table.strategy-summary-person-mode .strategy-summary-out-col,
.strategy-summary-table.strategy-summary-person-mode .strategy-summary-return-col,
.strategy-summary-table.strategy-summary-person-mode .strategy-summary-net-col{width:76px;text-align:right;}
.strategy-summary-table.strategy-summary-person-mode .strategy-summary-total{width:120px;text-align:right;}
.strategy-summary-table.strategy-summary-person-mode .strategy-summary-subtotal td{background:#FBF7F1;font-weight:1000;text-align:right;}
.strategy-summary-table.strategy-summary-set-mode .strategy-summary-strategy{width:auto;text-align:left;}
.strategy-summary-table.strategy-summary-set-mode .strategy-summary-price{width:120px;text-align:right;}
.strategy-summary-table.strategy-summary-set-mode .strategy-summary-person-count{width:90px;text-align:right;}
.strategy-summary-table.strategy-summary-set-mode .strategy-summary-out-col,
.strategy-summary-table.strategy-summary-set-mode .strategy-summary-return-col,
.strategy-summary-table.strategy-summary-set-mode .strategy-summary-net-col{width:76px;text-align:right;}
.strategy-summary-table.strategy-summary-set-mode .strategy-summary-total{width:120px;text-align:right;}
.strategy-summary-price,.strategy-summary-total{font-variant-numeric:tabular-nums;line-height:24px;white-space:nowrap;}
#tab-outlog tr.outlog-person-start td{border-top:3px solid #776B60!important;}
@media(max-width:760px){.strategy-summary-backdrop{padding:8px}.strategy-summary-modal{width:98vw;max-height:94vh}.strategy-summary-filters{padding:10px}.strategy-summary-filters .out-date-inp{width:126px}.strategy-summary-body{padding:0 8px 10px}.strategy-summary-table{min-width:720px}}

/* GPT_20260713_STRATEGY_PAGE_FIXED_V60: 전략세트 작성 탭은 전체 페이지 스크롤 없이 내부 영역만 스크롤 */
.main.strategy-page-open{overflow:hidden!important;}
.main.strategy-page-open>#tab-strategySets{flex:1 1 auto!important;height:auto!important;min-height:0!important;overflow:hidden!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-grid{height:100%!important;min-height:0!important;align-items:stretch!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-main,
.main.strategy-page-open>#tab-strategySets .strategy-matrix-side{height:100%!important;min-height:0!important;max-height:none!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-main{overflow-y:auto!important;overflow-x:hidden!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-side{overflow:hidden!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-list{min-height:0!important;overflow-y:auto!important;}
@media(max-width:1280px){
  .main.strategy-page-open{overflow-y:auto!important;}
  .main.strategy-page-open>#tab-strategySets{height:auto!important;overflow:visible!important;}
  .main.strategy-page-open>#tab-strategySets .strategy-matrix-grid{height:auto!important;}
  .main.strategy-page-open>#tab-strategySets .strategy-matrix-main,
  .main.strategy-page-open>#tab-strategySets .strategy-matrix-side{height:auto!important;overflow:visible!important;}
}
/* GPT_20260713_STRATEGY_PAGE_TEXT_COMPACT_V62: 요청 문구 삭제 및 구간 안내 한 줄 이동 */
.main.strategy-page-open>#tab-strategySets .strategy-matrix-head{margin-bottom:4px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-section-head>div:first-child{display:flex!important;align-items:center!important;gap:12px!important;flex-wrap:wrap!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-section-head>div:first-child>span{display:inline!important;margin:0!important;color:var(--t1)!important;font-size:12px!important;font-weight:800!important;line-height:1.2!important;}

/* GPT_20260713_STRATEGY_TIER_GUIDE_MOVE_V65: 구간 안내를 제목 오른쪽, 버튼은 맨 오른쪽으로 고정 */
.main.strategy-page-open>#tab-strategySets .strategy-tier-head{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;flex-wrap:nowrap!important;}
.main.strategy-page-open>#tab-strategySets .strategy-tier-title{display:flex!important;align-items:center!important;gap:12px!important;flex:0 0 auto!important;min-width:0!important;flex-wrap:nowrap!important;white-space:nowrap!important;}
.main.strategy-page-open>#tab-strategySets .strategy-tier-title>b{flex:0 0 auto!important;white-space:nowrap!important;}
.main.strategy-page-open>#tab-strategySets .strategy-tier-title>.strategy-tier-guide{display:inline!important;margin:0!important;color:var(--t1)!important;font-size:12px!important;font-weight:800!important;line-height:1.2!important;white-space:nowrap!important;flex:0 0 auto!important;}
.main.strategy-page-open>#tab-strategySets .strategy-tier-head>.strategy-matrix-mini-actions{display:inline-flex!important;align-items:center!important;gap:6px!important;flex:0 0 auto!important;white-space:nowrap!important;}
.main.strategy-page-open>#tab-strategySets .strategy-tier-head>.strategy-matrix-mini-actions .btn{flex:0 0 auto!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-section{padding:9px 12px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-section-head{margin-bottom:6px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-tier-wrap{margin-top:0!important;}
.main.strategy-page-open>#tab-strategySets .strategy-tier-slot{padding:4px 7px!important;}
@media(max-width:1500px){
  .main.strategy-page-open>#tab-strategySets .strategy-tier-title{gap:10px!important;}
  .main.strategy-page-open>#tab-strategySets .strategy-tier-title>.strategy-tier-guide{font-size:11.5px!important;}
}

/* GPT_20260713_STRATEGY_TIER_DELETE_GUIDE_V66: 안내문 제거 + 6구간 제한 + 박스 추가 압축 */
.main.strategy-page-open>#tab-strategySets .strategy-tier-head{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;flex-wrap:nowrap!important;}
.main.strategy-page-open>#tab-strategySets .strategy-tier-title{display:flex!important;align-items:center!important;gap:0!important;flex:0 0 auto!important;min-width:0!important;}
.main.strategy-page-open>#tab-strategySets .strategy-tier-head .strategy-matrix-mini-actions{display:inline-flex!important;align-items:center!important;gap:6px!important;flex:0 0 auto!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-section{padding:8px 12px!important;margin-top:8px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-section-head{margin-bottom:5px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-tier-wrap{margin-top:0!important;}
.main.strategy-page-open>#tab-strategySets .strategy-tier-slot{padding:4px 7px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-tier-head .strategy-tier-guide{display:none!important;}

/* GPT_20260713_STRATEGY_PAGE_COMPACT_V61: 100% 배율에서 제목~저장 버튼까지 한 화면에 맞춤 */

.main.strategy-page-open>#tab-strategySets{padding:12px 16px!important;gap:0!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-grid{gap:12px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-card{padding:13px 16px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-head{margin-bottom:8px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-head h2{font-size:24px!important;line-height:1.2!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-head p{margin-top:2px!important;line-height:1.35!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-topline{margin-bottom:8px!important;gap:10px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-topline #strategyMatrixName,
.main.strategy-page-open>#tab-strategySets .strategy-matrix-topline select{height:48px!important;min-height:48px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-modebar{min-height:48px!important;padding:6px 8px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-mode{padding:7px 10px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-section{padding:10px 12px!important;margin-top:8px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-section-head{margin-bottom:7px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-section-head b{font-size:16px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-section-head>div:first-child>span{margin-top:1px!important;font-size:12px!important;line-height:1.25!important;}
.main.strategy-page-open>#tab-strategySets .strategy-tier-slot{padding:5px 7px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-tier-input{height:32px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-addbar{gap:8px!important;}
.main.strategy-page-open>#tab-strategySets #btnMatrixAddProduct{height:48px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-table-wrap{max-height:calc(100vh - 610px)!important;min-height:96px!important;}
.main.strategy-page-open>#tab-strategySets .matrix-empty{padding:20px 14px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-bottom-actions{margin-top:8px!important;padding-top:8px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-bottom-actions .btn{height:40px!important;font-size:14px!important;min-width:108px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-side .strategy-matrix-head{margin-bottom:8px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-list{gap:7px!important;}
.main.strategy-page-open>#tab-strategySets .matrix-set-row{padding:10px 11px!important;}
.main.strategy-page-open>#tab-strategySets .matrix-set-name{font-size:17px!important;}
.main.strategy-page-open>#tab-strategySets .matrix-set-meta{margin-top:3px!important;line-height:1.25!important;}


/* GPT_20260713_MANUAL_LOG_SCROLL_SAFE_V70: v68 기준 안전 복구 */
#manualLogScroll{scrollbar-width:auto;scrollbar-color:var(--scroll-thumb) var(--scroll-track);}
#manualLogScroll::-webkit-scrollbar{width:12px;height:12px;}
#manualLogScroll::-webkit-scrollbar-track{background:var(--scroll-track);border-radius:999px;}
#manualLogScroll::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border-radius:999px;border:3px solid var(--scroll-track);min-height:44px;}
#manualLogScroll::-webkit-scrollbar-thumb:hover{background:var(--scroll-thumb-hover);}
#manualLogScroll table{width:100%;min-width:1050px;}
#manualLogScroll thead th{position:sticky;top:0;z-index:5;background:var(--surface2);}

/* GPT_20260713_STRATEGY_SCROLL_TRIM_V73: 좌측 구성표/우측 저장목록 높이 미세 축소 */
.main.strategy-page-open>#tab-strategySets{padding:10px 16px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-grid{gap:10px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-card{padding:12px 14px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-side .strategy-matrix-head{margin-bottom:6px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-side .strategy-matrix-head h2{font-size:22px!important;line-height:1.15!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-side .strategy-matrix-head p{margin-top:1px!important;line-height:1.28!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-side .count-badge,
.main.strategy-page-open>#tab-strategySets .strategy-matrix-side .stat-badge,
.main.strategy-page-open>#tab-strategySets .strategy-matrix-side .count-chip{padding:8px 9px!important;font-size:12px!important;min-width:42px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-combined{padding:4px 10px 6px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-combined-head-toolbar{margin-bottom:4px!important;gap:10px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-combined-title>b{font-size:17px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-combined-title span{font-size:11px!important;line-height:1.15!important;}
.main.strategy-page-open>#tab-strategySets .strategy-inline-brand .fsel2{height:38px!important;min-height:38px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-inline-product .fi{height:38px!important;min-height:38px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-addbar-header #btnMatrixAddProduct{height:38px!important;min-height:38px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-table-wrap-spaced{margin-top:4px!important;max-height:calc(100vh - 482px)!important;min-height:126px!important;}
.main.strategy-page-open>#tab-strategySets .matrix-empty{padding:24px 12px!important;font-size:13.5px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-bottom-actions{margin-top:6px!important;padding-top:6px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-bottom-actions .btn{height:38px!important;min-width:104px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-list{gap:6px!important;}
.main.strategy-page-open>#tab-strategySets .matrix-set-row{padding:8px 10px!important;border-radius:13px!important;gap:8px!important;}
.main.strategy-page-open>#tab-strategySets .matrix-set-name{font-size:16px!important;line-height:1.2!important;}
.main.strategy-page-open>#tab-strategySets .matrix-set-meta{margin-top:2px!important;font-size:12px!important;line-height:1.2!important;}
.main.strategy-page-open>#tab-strategySets .matrix-set-actions .btn{height:34px!important;padding:0 10px!important;font-size:13px!important;}


/* GPT_20260713_STRATEGY_SCROLL_TRIM_V74: 우측 저장목록 원인 가정, 양쪽 높이 추가 축소 */
.main.strategy-page-open>#tab-strategySets{padding:8px 14px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-grid{gap:8px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-card{padding:10px 12px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-main,
.main.strategy-page-open>#tab-strategySets .strategy-matrix-side{max-height:calc(100vh - 118px)!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-head{margin-bottom:6px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-head h2{font-size:22px!important;line-height:1.12!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-head p{font-size:13px!important;line-height:1.18!important;margin-top:1px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-topline{margin-bottom:6px!important;gap:8px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-topline #strategyMatrixName,
.main.strategy-page-open>#tab-strategySets .strategy-matrix-topline select{height:44px!important;min-height:44px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-modebar{min-height:44px!important;padding:5px 7px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-mode{padding:6px 9px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-section{padding:7px 10px!important;margin-top:6px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-section-head{margin-bottom:4px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-section-head b{font-size:15px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-section-head>div:first-child>span{font-size:11.5px!important;line-height:1.18!important;}
.main.strategy-page-open>#tab-strategySets .strategy-tier-slot{padding:3px 6px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-tier-input{height:30px!important;}

.main.strategy-page-open>#tab-strategySets .strategy-matrix-combined{padding:2px 8px 4px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-combined-head-toolbar{margin-bottom:3px!important;gap:8px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-combined-title>b{font-size:16px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-combined-title span{font-size:10.5px!important;line-height:1.1!important;}
.main.strategy-page-open>#tab-strategySets .strategy-inline-brand .fsel2{width:142px!important;min-width:142px!important;height:36px!important;min-height:36px!important;font-size:14px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-inline-product{max-width:460px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-inline-product .fi{height:36px!important;min-height:36px!important;font-size:14px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-addbar-header #btnMatrixAddProduct{height:36px!important;min-height:36px!important;font-size:14px!important;padding:0 12px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-table-wrap-spaced{margin-top:3px!important;max-height:calc(100vh - 470px)!important;min-height:118px!important;}
.main.strategy-page-open>#tab-strategySets .matrix-empty{padding:16px 10px!important;font-size:13px!important;line-height:1.2!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-bottom-actions{margin-top:4px!important;padding-top:4px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-bottom-actions .btn{height:36px!important;min-width:98px!important;font-size:13px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-side .strategy-matrix-head{margin-bottom:4px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-side .strategy-matrix-head h2{font-size:20px!important;line-height:1.08!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-side .strategy-matrix-head p{font-size:12.5px!important;line-height:1.18!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-side .count-badge,
.main.strategy-page-open>#tab-strategySets .strategy-matrix-side .stat-badge,
.main.strategy-page-open>#tab-strategySets .strategy-matrix-side .count-chip{padding:6px 8px!important;font-size:11px!important;min-width:38px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-list{gap:5px!important;padding-right:4px!important;}

/* PREVIEW_FREEZE_C: final authoring, payment, report and input visual polish. */
@media(min-width:1281px){
  #tab-strategySets .strategy-matrix-topline.strategy-authoring-linked{grid-template-columns:190px 152px 150px minmax(180px,1fr) 128px!important;grid-template-areas:"mode type brand linked linked" "mode name name name price"!important;align-items:end!important;row-gap:10px!important;}
  #tab-strategySets .strategy-matrix-topline.strategy-authoring-custom{grid-template-columns:190px 152px 150px minmax(180px,1fr) 128px!important;grid-template-areas:"mode type brand name name" "mode . . . price"!important;align-items:end!important;row-gap:10px!important;}
  #tab-strategySets .strategy-authoring-type-field{grid-area:type;}
  #tab-strategySets #strategyLinkedProductField{grid-area:linked;width:100%;min-width:0;max-width:none;justify-self:stretch;}
  #tab-strategySets #strategyLinkedProductField .strategy-search-wrap,
  #tab-strategySets #strategyLinkedProductSearch{width:100%;min-width:0;max-width:none;}
  #tab-strategySets .strategy-name-field{grid-area:name;}
  #tab-strategySets .strategy-price-field{grid-area:price;}
  #tab-strategySets .strategy-brand-group{grid-area:brand;max-width:none;}
  #tab-strategySets .strategy-matrix-modebar{grid-area:mode;align-self:stretch;justify-self:stretch;width:190px;max-width:100%;height:auto!important;min-height:0!important;margin-top:0;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:7px 10px!important;border:1px solid var(--border)!important;border-radius:14px;background:#FFFCF7!important;box-shadow:none!important;}
  #tab-strategySets .strategy-matrix-action-stack{width:166px;max-width:100%;height:auto;box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:8.5px;padding:0;border:0;background:transparent;}
  #tab-strategySets .strategy-matrix-action-stack .strategy-matrix-mode{width:100%;box-sizing:border-box;justify-content:center;padding:7px 10px!important;font-size:13px!important;background:#E6D0AA!important;color:#5C4126!important;border:1px solid rgba(132,93,44,.22);}
  #tab-strategySets .strategy-matrix-action-stack .btn{width:100%!important;min-width:0!important;height:39px!important;padding:0 14px!important;font-size:16px!important;display:flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;}
}
#tab-strategySets .strategy-matrix-action-stack{width:100%;max-width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:8.5px;}
#tab-strategySets .strategy-matrix-action-stack.idle #btnMatrixNewTop{order:1;background:#171717!important;color:#fff!important;border-color:#171717!important;}
#tab-strategySets .strategy-matrix-action-stack.idle .strategy-matrix-mode{order:2;}
#tab-strategySets .strategy-matrix-action-stack.creating .strategy-matrix-mode,
#tab-strategySets .strategy-matrix-action-stack.editing .strategy-matrix-mode{order:1;}
#tab-strategySets .strategy-matrix-action-stack.creating #btnMatrixNewTop,
#tab-strategySets .strategy-matrix-action-stack.editing #btnMatrixNewTop{order:2;background:#fff!important;color:var(--t1)!important;border-color:var(--border)!important;}
#tab-strategySets .strategy-matrix-topline .strategy-authoring-type-field select,
#tab-strategySets .strategy-matrix-topline #strategyLinkedProductSearch,
#tab-strategySets .strategy-matrix-topline #strategyMatrixName,
#tab-strategySets .strategy-matrix-topline #strategyPrice,
#tab-strategySets .strategy-matrix-topline #strategyMatrixSetBrand{height:44px!important;min-height:44px!important;line-height:44px!important;font-size:15px!important;padding:0 12px!important;}
#tab-strategySets .strategy-matrix-topline #strategyLinkedProductSearch.gpt-voice-enabled,
#tab-strategySets .strategy-matrix-topline #strategyMatrixName.gpt-voice-enabled,
#tab-strategySets #strategyMatrixSearch.gpt-voice-enabled{padding-right:42px!important;}
#tab-strategySets .strategy-matrix-topline .fg{min-width:0;}
#tab-strategySets .strategy-search-item.gpt-search-option{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;text-align:left;width:100%;border:0;background:#fff;}
#tab-strategySets .strategy-search-item.gpt-search-option:hover{background:var(--acc-l);}
#tab-strategySets .strategy-matrix-mode.idle{background:#F2EEE9!important;color:var(--t2)!important;border:1px solid var(--border)!important;}
#tab-strategySets .strategy-matrix-mode.creating{background:#171717!important;color:#fff!important;border:1px solid #171717!important;}
#tab-strategySets .strategy-matrix-main.strategy-matrix-idle .strategy-matrix-section,
#tab-strategySets .strategy-matrix-main.strategy-matrix-idle .strategy-matrix-topline>.fg{opacity:.68;}
#tab-strategySets .strategy-matrix-main.strategy-matrix-idle :disabled{cursor:not-allowed;}

/* GPT_V1_OUTLOG_13COL_WIDTH_AUTHORITY
   현재 출고기록 13열 구조의 단일 최종 폭 authority.
   nth-child 누적 보정 대신 header/cell 의미 클래스로 열 폭을 고정한다. */
#tab-outlog .outlog-table-scroll{overflow:auto!important;}
#tab-outlog .outlog-table-scroll table{
  width:1840px!important;
  min-width:1840px!important;
  table-layout:fixed!important;
}

#tab-outlog .outlog-time-head,
#tab-outlog .outlog-time-cell{width:138px!important;}

#tab-outlog .outlog-person-head,
#tab-outlog .outlog-person-cell{width:120px!important;}

#tab-outlog .outlog-actor-head,
#tab-outlog .outlog-actor-cell{width:95px!important;}

#tab-outlog .outlog-type-head,
#tab-outlog .outlog-type-cell{width:105px!important;}

#tab-outlog .outlog-product-head,
#tab-outlog .outlog-product-cell{width:300px!important;}

#tab-outlog .outlog-qty-head,
#tab-outlog .outlog-qty-cell{width:80px!important;}

#tab-outlog .outlog-unit-head,
#tab-outlog .outlog-unit-cell{width:80px!important;}

#tab-outlog .outlog-amount-head,
#tab-outlog .outlog-amount-cell{width:125px!important;}

#tab-outlog .outlog-total-head,
#tab-outlog .outlog-total-cell{width:180px!important;}

#tab-outlog .outlog-pay-head,
#tab-outlog .outlog-pay-cell{width:120px!important;}

#tab-outlog .outlog-pay-time-head,
#tab-outlog .outlog-pay-time-cell{width:130px!important;}

#tab-outlog .outlog-memo-head,
#tab-outlog .outlog-memo-cell{width:270px!important;}

#tab-outlog .outlog-manage-head,
#tab-outlog .outlog-manage-cell{width:97px!important;}

#tab-outlog .outlog-total-cell,
#tab-outlog .outlog-total-badge{
  white-space:nowrap!important;
}
#tab-outlog .outlog-table-scroll .memo-cell{overflow-wrap:anywhere;word-break:keep-all;}
.outpay-done-mark{padding:0;cursor:pointer;font-family:inherit;}

.strategy-summary-table td{border-bottom:1px solid #E9E1D9;}
.strategy-summary-table.strategy-summary-person-mode tr.strategy-summary-person-start td{border-top:3px solid #655B52!important;}
.strategy-summary-table.strategy-summary-person-mode td[rowspan]{background:#FBF8F4;font-weight:950;border-right:1px solid #E2D8CE;vertical-align:top;padding-top:14px;}
.strategy-summary-table.strategy-summary-person-mode .strategy-summary-subtotal td{border-top:2px solid #CFC2B6!important;background:#F7F2EC!important;}
.strategy-summary-table.strategy-summary-person-mode .strategy-summary-subtotal td:first-child{text-align:right!important;color:#675D54;}
.strategy-summary-table.strategy-summary-set-mode td.strategy-summary-strategy{padding-right:22px;}
.strategy-summary-table.strategy-summary-set-mode .strategy-summary-price,
.strategy-summary-table.strategy-summary-set-mode .strategy-summary-person-count,
.strategy-summary-table.strategy-summary-set-mode .strategy-summary-out-col,
.strategy-summary-table.strategy-summary-set-mode .strategy-summary-return-col,
.strategy-summary-table.strategy-summary-set-mode .strategy-summary-net-col,
.strategy-summary-table.strategy-summary-set-mode .strategy-summary-total{font-variant-numeric:tabular-nums;}
.strategy-summary-table.strategy-summary-set-mode .strategy-summary-price{padding-left:18px!important;}

.gpt-voice-btn{width:28px!important;height:28px!important;padding:4px!important;border:0!important;border-radius:4px!important;background:transparent!important;color:#2b2927!important;}
.gpt-voice-btn:hover,.gpt-voice-btn:focus-visible{background:rgba(43,41,39,.05)!important;color:#2b2927!important;box-shadow:0 0 0 1px rgba(43,41,39,.12)!important;}
.gpt-voice-btn[data-listening="1"]{background:rgba(43,41,39,.08)!important;color:#2b2927!important;}
.gpt-voice-icon{width:18px!important;height:18px!important;}
.main.strategy-page-open>#tab-strategySets .matrix-set-row{padding:7px 9px!important;border-radius:12px!important;gap:7px!important;}
.main.strategy-page-open>#tab-strategySets .matrix-set-name{font-size:15px!important;line-height:1.15!important;}
.main.strategy-page-open>#tab-strategySets .matrix-set-meta{margin-top:1px!important;font-size:11px!important;line-height:1.15!important;}
.main.strategy-page-open>#tab-strategySets .matrix-set-actions .btn{height:32px!important;padding:0 9px!important;font-size:12px!important;}

/* BRANCH_CORE_V53_STRATEGY_COMPOSITION_AUTHORITY_R1
   Composition search and table are display-only projections of the canonical product. */
#tab-strategySets .strategy-composition-search-item.gpt-search-option{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:3px!important;
  align-items:stretch!important;
}
#tab-strategySets .strategy-composition-search-item .strategy-search-primary{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:14px;
  min-width:0;
}
#tab-strategySets .strategy-composition-search-item .gpt-search-main{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--t1);
  font-size:15px;
  font-weight:950;
}
#tab-strategySets .strategy-composition-search-item .strategy-search-code{
  flex:0 1 auto;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--t3);
  font-size:12px;
  font-weight:850;
  font-variant-numeric:tabular-nums;
}
#tab-strategySets .strategy-composition-search-item .strategy-search-meta{
  color:var(--t3)!important;
  font-size:12.5px!important;
  font-weight:850!important;
}
#tab-strategySets .strategy-matrix-table{min-width:max(100%,900px);}
#tab-strategySets .strategy-matrix-table.strategy-matrix-tier-count-5{min-width:max(100%,1020px);}
#tab-strategySets .strategy-matrix-table.strategy-matrix-tier-count-6{min-width:max(100%,1090px);}
#tab-strategySets .strategy-matrix-table .matrix-prod-head,
#tab-strategySets .strategy-matrix-table .matrix-prod-cell{
  width:32%;
  min-width:clamp(170px,20vw,230px);
  text-align:left!important;
}
#tab-strategySets .strategy-matrix-table .matrix-code-head,
#tab-strategySets .strategy-matrix-table .matrix-code-cell{
  width:1%;
  min-width:76px;
  max-width:112px;
  padding-left:5px!important;
  padding-right:5px!important;
  text-align:left!important;
  overflow:hidden;
  text-overflow:ellipsis;
}
#tab-strategySets .strategy-matrix-table .matrix-composition-head,
#tab-strategySets .strategy-matrix-table .matrix-composition-cell{
  width:1%;
  min-width:82px;
  white-space:nowrap;
  font-size:12.5px;
  font-weight:900;
  color:var(--t2);
}
#tab-strategySets .strategy-matrix-table .matrix-office-head,
#tab-strategySets .strategy-matrix-table .matrix-office-cell,
#tab-strategySets .strategy-matrix-table .matrix-after-head,
#tab-strategySets .strategy-matrix-table .matrix-delete-head,
#tab-strategySets .strategy-matrix-table .matrix-delete-cell{width:1%;white-space:nowrap;}
@media(max-width:760px){
  #tab-strategySets .strategy-composition-search-item .strategy-search-primary{gap:8px;}
  #tab-strategySets .strategy-composition-search-item .gpt-search-main{font-size:14px;}
  #tab-strategySets .strategy-matrix-table .matrix-prod-head,
  #tab-strategySets .strategy-matrix-table .matrix-prod-cell{min-width:160px;}
}


/* GPT_20260713_ARCHIVE_ACTIVITY_MERGE_V79 */
.archive-period-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.archive-period-btn{height:42px;border:1px solid var(--border);border-radius:11px;background:var(--surface);padding:0 14px;font-family:inherit;font-size:15px;font-weight:950;color:var(--t2);cursor:pointer;}
.archive-period-btn.active{background:var(--t1);border-color:var(--t1);color:#fff;}
#btnExportArchiveView{white-space:nowrap;}
@media(max-width:900px){.archive-period-controls{width:100%;justify-content:flex-start}.archive-toolbar #archiveSearch{width:100%!important}.archive-period-controls .archive-month-select{flex:1;min-width:150px}}
/* BRANCH CORE V53: effective productType=full form lock. */
.gpt-full-product-form-locked .gpt-full-product-locked-control,
.gpt-full-product-form-locked .gpt-full-product-locked-voice {
  cursor: not-allowed;
}
.gpt-full-product-form-locked .gpt-full-product-locked-control {
  background: #f5f3ef;
  border-color: #d8d1c6;
  color: #766f65;
  opacity: 1;
}
.gpt-full-product-form-locked .gpt-full-product-locked-voice {
  opacity: .38;
  pointer-events: none;
}

/* BRANCH CORE V53: product-code prefix / suffix form projection. */
.product-code-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  min-width: 0;
  gap: 0;
}
.product-code-field.is-product-code-split .product-code-entry {
  grid-template-columns: minmax(0, 2fr) 8px minmax(0, 3fr);
  gap: 6px;
}
.product-code-entry .product-code-prefix {
  width: 100%;
  min-width: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.product-code-entry .product-code-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  min-width: 8px;
  color: var(--t2);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}
.product-code-entry .product-code-separator[hidden] {
  display: none;
}
.product-code-entry .product-code-suffix,
.product-code-entry .gpt-voice-inline-wrap {
  display: block;
  width: 100% !important;
  min-width: 0;
}
.product-code-hint {
  min-height: 15px;
  margin-top: 5px;
  line-height: 1.35;
}
.product-code-hint[hidden] {
  display: none;
}
.product-code-field.is-product-code-category-required .product-code-entry {
  opacity: .72;
}
@media (max-width: 560px) {
  .product-code-field.is-product-code-split .product-code-entry {
    gap: 5px;
  }
}

/* BRANCH CORE V53: structural left-flow tier bar and per-row one-shot multiplier input. */
#tab-strategySets .strategy-tier-head{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  justify-content:flex-start!important;
  gap:0!important;
  margin-bottom:0!important;
  overflow-x:auto;
  scrollbar-width:thin;
}
#tab-strategySets .strategy-tier-left-group{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex:0 0 auto!important;
  min-width:0!important;
  gap:14px!important;
  flex-wrap:nowrap!important;
}
#tab-strategySets .strategy-tier-title{
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  white-space:nowrap!important;
  gap:0!important;
  margin:0!important;
}
#tab-strategySets .strategy-tier-wrap{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:7px!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:max-content;
  flex-wrap:nowrap!important;
}
#tab-strategySets .strategy-tier-spacer{
  flex:1 1 auto!important;
  min-width:14px;
}
#tab-strategySets .strategy-tier-slot{
  flex:0 0 auto;
  min-width:96px;
  justify-content:center;
  padding:3px 5px!important;
}
#tab-strategySets .strategy-tier-input{
  width:58px!important;
}
#tab-strategySets .strategy-tier-head>.strategy-matrix-mini-actions{
  margin-left:0!important;
  padding-left:0!important;
  flex:0 0 auto!important;
}
#tab-strategySets .strategy-tier-head>.strategy-matrix-mini-actions .btn{
  min-width:72px!important;
  height:38px!important;
  padding:0 14px!important;
  font-size:13.5px!important;
}
#tab-strategySets .strategy-matrix-table .matrix-prod-head,
#tab-strategySets .strategy-matrix-table .matrix-prod-cell{
  width:28%;
  min-width:clamp(160px,18vw,215px);
}
#tab-strategySets .strategy-matrix-table .matrix-code-head,
#tab-strategySets .strategy-matrix-table .matrix-code-cell{
  min-width:72px;
  max-width:104px;
}
#tab-strategySets .strategy-matrix-table .matrix-multiplier-head,
#tab-strategySets .strategy-matrix-table .matrix-multiplier-cell{
  width:76px;
  min-width:76px;
  padding-left:5px!important;
  padding-right:5px!important;
  white-space:nowrap;
}
#tab-strategySets .strategy-matrix-table .matrix-multiplier-head{
  font-size:11px;
}
#tab-strategySets .strategy-matrix-table .matrix-multiplier{
  display:block;
  width:58px;
  height:36px;
  margin:0 auto;
  padding:0 7px;
  border:1px solid #e4ddd4;
  border-radius:10px;
  background:#fffdf9;
  text-align:center;
  font:600 13px/1 'Noto Sans KR',sans-serif;
  color:#201d19;
  box-sizing:border-box;
}
#tab-strategySets .strategy-matrix-table .matrix-multiplier[aria-invalid="true"]{
  border-color:#d97b73;
  background:#fff8f7;
}
@media(max-width:1180px){
  #tab-strategySets .strategy-tier-head{align-items:center!important;}
  #tab-strategySets .strategy-tier-slot{min-width:92px;}
}
/* GPT_V1_INVENTORY_SORT_DISCOVERY_MARK
   정렬 가능한 재고현황 헤더는 평상시 ↕, 활성 정렬은 기존 ▲/▼로 표시한다. */
#tab-inventory .sort-th{
  cursor:pointer;
  user-select:none;
}
#tab-inventory .sort-th .sort-mark{
  display:inline-block;
  margin-left:4px;
  font-size:11px;
  font-weight:900;
  line-height:1;
  color:var(--acc-d);
  opacity:.82;
  vertical-align:1px;
}
#tab-inventory .sort-th:hover .sort-mark{
  color:var(--acc-d);
  opacity:1;
}
