/* GPT_ORDER_PARTIAL_EDIT_V1 */
.order-item-card.order-item-removed{opacity:.72;background:#faf7f4;border-style:dashed;}
.order-deleted-badge{display:inline-flex;align-items:center;margin-left:6px;padding:2px 7px;border-radius:999px;background:var(--surface2);color:var(--danger);font-size:11px;font-weight:900;border:1px solid var(--border);}
.order-qty-control{display:inline-flex;align-items:center;gap:4px;vertical-align:middle;}
.order-qty-step{width:24px;height:24px;border-radius:7px;border:1px solid var(--border);background:var(--surface);color:var(--t2);font-weight:900;cursor:pointer;line-height:1;}
.order-qty-step:hover{border-color:var(--acc);color:var(--acc-d);background:var(--acc-l);}
.order-qty-input{width:44px;height:24px;text-align:center;border:1px solid var(--border);border-radius:7px;background:var(--bg);font-size:13px;font-weight:900;color:var(--t1);font-family:inherit;}
.order-qty-input:focus{outline:none;border-color:var(--acc);}
.order-item-remove{min-width:28px;height:28px;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--danger);font-weight:900;cursor:pointer;}
.order-item-remove:hover{background:var(--danger-l);border-color:var(--danger);}
.order-status.order-deleted{background:var(--surface2);color:var(--danger);border:1px solid var(--border);}

/* GPT_20260713_STRATEGY_COMBINED_SEARCH_V72: 구성표 상단 효율화 + 검색 툴바 압축 */
.main.strategy-page-open>#tab-strategySets .strategy-matrix-combined{padding:6px 12px 8px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-combined-head-toolbar{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;flex-wrap:nowrap!important;margin-bottom:6px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-combined-title{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:2px!important;flex:0 0 auto!important;min-width:84px!important;padding-top:0!important;margin-top:0!important;}
.main.strategy-page-open>#tab-strategySets .strategy-combined-title>b{font-size:18px!important;line-height:1.05!important;margin:0!important;}
.main.strategy-page-open>#tab-strategySets .strategy-combined-title span{display:block!important;margin:0!important;color:var(--t2)!important;font-size:11.5px!important;font-weight:750!important;line-height:1.2!important;white-space:nowrap!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-addbar-header{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;flex:1 1 auto!important;min-width:0!important;margin:0!important;padding-top:0!important;}
.main.strategy-page-open>#tab-strategySets .strategy-inline-field{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-inline-label{display:none!important;}
.main.strategy-page-open>#tab-strategySets .strategy-inline-brand .fsel2{width:150px!important;min-width:150px!important;height:40px!important;min-height:40px!important;font-size:15px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-inline-product{flex:1 1 auto!important;min-width:0!important;max-width:500px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-inline-product .strategy-search-wrap{flex:1 1 auto!important;min-width:0!important;}
.main.strategy-page-open>#tab-strategySets .strategy-inline-product .fi{width:100%!important;height:40px!important;min-height:40px!important;font-size:15px!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-addbar-header #btnMatrixAddProduct{height:40px!important;min-height:40px!important;font-size:15px!important;padding:0 16px!important;flex:0 0 auto!important;}
.main.strategy-page-open>#tab-strategySets .strategy-matrix-table-wrap-spaced{margin-top:6px!important;max-height:calc(100vh - 494px)!important;min-height:150px!important;}
.main.strategy-page-open>#tab-strategySets .matrix-empty{padding:34px 14px!important;font-size:14px!important;font-weight:850!important;}
@media(max-width:1500px){
  .main.strategy-page-open>#tab-strategySets .strategy-matrix-addbar-header{gap:8px!important;}
  .main.strategy-page-open>#tab-strategySets .strategy-inline-brand .fsel2{width:138px!important;min-width:138px!important;}
  .main.strategy-page-open>#tab-strategySets .strategy-inline-product{max-width:430px!important;}
}
@media(max-width:1280px){
  .main.strategy-page-open>#tab-strategySets .strategy-combined-head-toolbar{flex-direction:column!important;align-items:stretch!important;gap:8px!important;}
  .main.strategy-page-open>#tab-strategySets .strategy-matrix-addbar-header{justify-content:flex-start!important;flex-wrap:wrap!important;}
}

/* GPT_20260713_SETTLEMENT_FULL_HEIGHT_V81
   정산 탭의 좌우 합산 박스를 남은 화면 높이까지 동일하게 확장.
   전체 페이지 스크롤은 만들지 않고 각 합산 목록만 내부 스크롤. */
#tab-summary.settlement-page{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:hidden!important;
}
#tab-summary .settlement-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  gap:14px!important;
  flex:1 1 auto!important;
  min-height:0!important;
  height:100%!important;
  align-items:stretch!important;
}
#tab-summary .settlement-grid>div{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  min-height:0!important;
}
#tab-summary .summary-title-row{
  flex:0 0 auto!important;
}
#tab-summary .sum-card{
  flex:1 1 auto!important;
  min-height:0!important;
  height:auto!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
#tab-summary .summary-meta-note{
  flex:0 0 auto!important;
}
#tab-summary .settlement-list-scroll{
  flex:1 1 auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  padding-right:6px!important;
  scrollbar-width:thin;
}
#tab-summary .sum-card>.io-empty{
  flex:1 1 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
@media(max-width:1200px){
  #tab-summary.settlement-page{overflow:auto!important;}
  #tab-summary .settlement-grid{grid-template-columns:1fr!important;height:auto!important;}
  #tab-summary .sum-card{min-height:360px!important;}
}


/* GPT_20260714_STRATEGY_EDITABLE_ADD_COUNT_V87 */
#ovAddOut .out-strategy-direct{appearance:textfield;-moz-appearance:textfield;background:#fff!important;color:var(--info)!important;font-size:19px!important;font-weight:1000!important;}
#ovAddOut .out-strategy-direct::-webkit-inner-spin-button,#ovAddOut .out-strategy-direct::-webkit-outer-spin-button{-webkit-appearance:none;margin:0;}
#ovAddOut .out-strategy-direct:focus{outline:none;border-color:var(--info)!important;box-shadow:0 0 0 3px rgba(47,111,219,.12);}
#tab-outlog .outlog-progress-qty,#tab-outlog .outlog-progress-unit{flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:0!important;white-space:normal!important;line-height:1.05!important;text-align:center!important;min-width:54px;}
#tab-outlog .outlog-progress-qty{font-size:15px!important;}
#tab-outlog .outlog-progress-unit{font-size:13px!important;}


/* GPT_20260714_BRAND_MANAGER_UI_STAGE1B_V91 */
.category-sidebar-title{font-size:12px;font-weight:900;letter-spacing:.7px}
.brand-admin-actions{display:flex;flex-direction:column;gap:7px;padding:0 12px;margin-top:9px}
.brand-admin-actions button{margin:0!important;width:100%!important;min-width:0!important;height:38px!important;padding:0 10px!important;font-size:12px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.brand-row-shell{padding:0 14px}
.brand-btn .brand-chevron{margin-left:6px;font-size:11px;color:var(--t3);transition:transform .16s ease}
.brand-btn.expanded .brand-chevron{transform:rotate(90deg)}
.brand-sub-shell{margin:2px 4px 7px 18px;padding:8px 10px;border:0;border-radius:8px;background:var(--surface2);color:var(--t3);font-size:11px;font-weight:800;line-height:1.35}
.brand-icon-mark{display:inline-flex;width:22px;height:22px;align-items:center;justify-content:center;margin-right:8px;flex:0 0 auto;color:var(--brand-icon-color,#6B7280)}
.brand-shape{display:inline-block;position:relative;width:15px;height:15px;background:currentColor;flex:0 0 auto}
.brand-shape.shape-circle{border-radius:50%}
.brand-shape.shape-diamond{width:12px;height:12px;transform:rotate(45deg);border-radius:2px}
.brand-shape.shape-square{border-radius:1px}
.brand-shape.shape-rounded{border-radius:5px}
.brand-shape.shape-triangle{clip-path:polygon(50% 0,100% 100%,0 100%)}
.brand-shape.shape-hexagon{clip-path:polygon(25% 6%,75% 6%,100% 50%,75% 94%,25% 94%,0 50%)}
.brand-shape.shape-star{clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 94%,50% 72%,21% 94%,32% 57%,2% 35%,39% 35%)}
.brand-shape.shape-flower{background:transparent;width:18px;height:18px}
.brand-shape.shape-flower:before{content:'✿';position:absolute;inset:-4px 0 0 -1px;font-size:20px;line-height:18px;color:currentColor;font-weight:900}
.brand-shape.shape-cross{clip-path:polygon(35% 0,65% 0,65% 35%,100% 35%,100% 65%,65% 65%,65% 100%,35% 100%,35% 65%,0 65%,0 35%,35% 35%)}
.brand-shape.shape-droplet{width:13px;height:13px;border-radius:50% 50% 50% 0;transform:rotate(-45deg)}
.brand-stage-modal{width:440px!important}
.brand-stage-picker-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.brand-stage-picker{position:relative}
.brand-stage-picker-btn{width:100%;height:48px;border:1px solid var(--border);border-radius:11px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 13px;font-family:inherit;font-weight:900;color:var(--t1);cursor:pointer}
.brand-stage-picker-btn:hover{border-color:var(--acc)}
.brand-stage-picker-preview{display:flex;align-items:center;gap:9px}
.brand-stage-picker-preview .brand-shape{color:var(--picker-color,#C4956A);width:18px;height:18px}
.brand-stage-picker-preview .shape-diamond{width:14px;height:14px}
.brand-stage-picker-preview .shape-flower{width:19px;height:19px}
.brand-stage-picker-preview .shape-droplet{width:15px;height:15px}
.brand-stage-popover{display:none;position:absolute;z-index:30;top:54px;left:0;min-width:230px;max-width:320px;padding:10px;border:1px solid var(--border);border-radius:12px;background:#fff;box-shadow:0 12px 30px rgba(0,0,0,.16)}
.brand-stage-popover.open{display:block}
.brand-stage-shape-grid{display:grid;grid-template-columns:repeat(5,42px);gap:8px}
.brand-stage-shape-btn{width:42px;height:42px;border:1px solid var(--border);border-radius:9px;background:#fff;display:flex;align-items:center;justify-content:center;color:var(--picker-color,#C4956A);cursor:pointer}
.brand-stage-shape-btn:hover{background:var(--surface2)}
.brand-stage-shape-btn.sel{border-color:var(--acc);box-shadow:0 0 0 3px rgba(47,111,219,.14);background:var(--acc-l)}
.brand-stage-shape-btn .brand-shape{width:18px;height:18px}
.brand-stage-shape-btn .shape-diamond{width:14px;height:14px}
.brand-stage-shape-btn .shape-flower{width:19px;height:19px}
.brand-stage-shape-btn .shape-droplet{width:15px;height:15px}
.brand-stage-color-popover{width:300px}
.brand-stage-color-label{font-size:11px;font-weight:900;color:var(--t2);margin:1px 0 7px}
.brand-stage-color-grid{display:grid;grid-template-columns:repeat(10,22px);gap:5px;margin-bottom:10px}
.brand-stage-color-btn{width:22px;height:22px;border-radius:3px;border:2px solid #fff;box-shadow:0 0 0 1px var(--border);cursor:pointer}
.brand-stage-color-btn:hover{transform:scale(1.08)}
.brand-stage-color-btn.sel{box-shadow:0 0 0 3px var(--t1)}
.brand-stage-note{padding:9px 11px;border-radius:9px;background:var(--surface2);color:var(--t2);font-size:12px;font-weight:800;line-height:1.45}


/* GPT_20260714_BRAND_CATEGORY_STAGE1C_V92 */
.brand-stage-modal-wide{width:min(820px,94vw)!important;max-height:90vh!important}
.brand-stage-modal-wide .modal-body{max-height:calc(90vh - 132px)!important;overflow-y:auto!important}
.category-delete-confirm-modal{width:min(460px,92vw)!important}
.category-delete-target{display:flex;flex-direction:column;gap:7px;padding:14px 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface2);color:var(--t1)}
.category-delete-target b{font-size:13px}
.category-delete-target span{font-size:15px;font-weight:850;word-break:keep-all;overflow-wrap:anywhere}
.category-delete-confirm-modal .modal-body p{margin:16px 2px 0;line-height:1.55;color:var(--t2);font-weight:700}
.brand-stage-body{display:grid;gap:14px}
.brand-stage-brand-section,.brand-category-section{border:1px solid var(--border);border-radius:14px;padding:14px;background:#fff}
.brand-category-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.brand-category-head>div{display:flex;flex-direction:column;gap:3px}
.brand-category-head b{font-size:16px}
.brand-category-head span{font-size:12px;color:var(--t2);font-weight:750}
.brand-category-list{display:flex;flex-direction:column;gap:10px}
.brand-category-empty{padding:22px 12px;border:1px dashed var(--border);border-radius:11px;text-align:center;color:var(--t3);font-size:12px;font-weight:850;background:var(--surface2)}
.brand-category-card{border:1px solid var(--border);border-radius:12px;padding:12px;background:#fffaf4}
.brand-category-card-top{display:grid;grid-template-columns:32px 1fr 34px;gap:9px;align-items:end}
.brand-category-order{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--surface2);font-size:12px;font-weight:1000;color:var(--t2);margin-bottom:7px}
.brand-category-remove{width:34px;height:40px;border:1px solid #efcaca;border-radius:9px;background:#fff;color:var(--danger);font-weight:1000;cursor:pointer;margin-bottom:1px}
.brand-category-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-top:9px}
.brand-category-controls .fsel2{width:100%;height:48px!important}
.brand-category-picker .brand-stage-picker-btn{height:48px}
.brand-category-shape-btn{justify-content:flex-start;gap:8px}
.brand-category-shape-btn>span:last-child{margin-left:auto}
.brand-category-color-btn{justify-content:flex-start;gap:9px}
.brand-category-color-btn>span:last-child{margin-left:auto}
.brand-category-color-chip{width:22px;height:22px;border-radius:5px;border:1px solid var(--border);flex:0 0 auto}
.brand-category-default{display:flex;align-items:center;gap:7px;margin-top:10px;padding:9px 10px;border-radius:9px;background:#fff;color:var(--t2);font-size:12px;font-weight:850}
.brand-category-default input{width:16px;height:16px}
.brand-sub-list{padding:6px 8px!important;background:transparent!important;border-left:0!important}
.brand-sub-preview{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:4px;padding:5px 6px;border:1px solid transparent;border-radius:8px;color:var(--t2);font-size:12px;font-weight:850;box-sizing:border-box}
.brand-sub-preview .brand-icon-mark{width:18px;height:18px;margin-right:0}
.brand-sub-preview .brand-shape{width:12px;height:12px}
.brand-sub-preview small{font-size:10px;color:var(--t3);font-weight:800}
@media(max-width:760px){.brand-stage-modal-wide{width:96vw!important}.brand-category-controls{grid-template-columns:1fr}.brand-stage-picker-row{grid-template-columns:1fr}.brand-category-head{align-items:flex-start;flex-direction:column}}

/* GPT_20260714_PRODUCT_CATEGORY_TEST_V93
   V108: 소카테고리 이름과 정산 구분을 분리하고 기존 other는 견본으로 호환한다. */
.brand-sub-preview{width:100%;background:transparent;text-align:left;cursor:pointer;font-family:inherit;}
.brand-sub-preview:hover{background:#f4f1ec;}
.brand-sub-preview.active{background:var(--acc-l);border-color:#cfd9e8;color:var(--acc-d);box-shadow:none;}
.product-category-field.no-categories .sub-note{color:var(--t3);}
.product-category-field select:disabled{opacity:.65;background:#f5f3ef;}

/* GPT_20260714_PRODUCT_CATEGORY_CLICK_ALIGN_V94 */
.brand-row-shell .brand-btn{display:grid!important;grid-template-columns:24px minmax(0,1fr) 34px 14px!important;column-gap:5px!important;align-items:center!important;padding-left:6px!important;padding-right:5px!important;}
.brand-row-shell .brand-btn .brand-icon-mark{margin-right:0!important;justify-self:center!important;}
.brand-row-shell .brand-btn .brand-name-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;}
.brand-row-shell .brand-btn .bcnt{margin-left:0!important;justify-self:center!important;min-width:26px;text-align:center;}
.brand-row-shell .brand-btn .brand-chevron{margin-left:0!important;justify-self:center!important;}
.brand-row-shell .brand-btn .brand-chevron-empty{visibility:hidden;}
.brand-sub-shell.brand-sub-list{padding:4px 0 5px 0!important;margin-left:18px!important;margin-right:0!important;background:transparent!important;border:0!important;border-radius:8px!important;}
.brand-sub-preview{display:grid!important;grid-template-columns:24px minmax(0,1fr) 34px 14px!important;column-gap:5px!important;align-items:center!important;padding:6px 5px 6px 6px!important;}
.brand-sub-preview .brand-icon-mark{margin-right:0!important;justify-self:center!important;}
.brand-sub-preview .brand-sub-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;}
.brand-sub-preview small{justify-self:center!important;min-width:26px;text-align:center;font-size:10px!important;background:var(--surface2);border-radius:999px;padding:2px 5px;}
.brand-sub-preview.active small{background:#dfe8f5;color:var(--acc-d);}
.brand-sub-spacer{display:block;width:14px;height:1px;}
.brand-sub-row{position:relative;width:100%;min-width:0;}
.brand-sub-row.is-draggable .brand-sub-preview{cursor:pointer;}
.brand-sub-drag-handle{display:inline-flex;width:14px;height:18px;align-items:center;justify-content:center;color:#a5a09a;font-size:15px;font-weight:900;line-height:1;opacity:.72;cursor:grab;touch-action:none;user-select:none;}
.brand-sub-drag-handle:active{cursor:grabbing;}
.brand-sub-row.is-draggable:hover .brand-sub-drag-handle{color:var(--acc-d);opacity:1;}
.brand-sub-row.child-category-dragging{opacity:.45;}
.brand-sub-row.child-category-drop-before:before,.brand-sub-row.child-category-drop-after:after{content:'';position:absolute;z-index:2;left:5px;right:5px;height:2px;border-radius:2px;background:var(--acc);pointer-events:none;}
.brand-sub-row.child-category-drop-before:before{top:-1px;}
.brand-sub-row.child-category-drop-after:after{bottom:-1px;}
.brand-row-shell.child-category-invalid-drop>.brand-btn{outline:1px dashed #d48a8a;outline-offset:-2px;}
.brand-sub-row[aria-busy="true"]{cursor:wait;opacity:.58;}
