@charset 'utf-8';
/* Layout CSS - 기본 레이아웃 스타일 */

/* ----- layout ----- */
.admin-wrap {width:100%;height:100vh;}

/* Header */
.admin-header {display:flex;align-items:center;justify-content:space-between;column-gap:16px;position:relative;z-index:200;height:64px;padding:0 24px;color:#212121;box-shadow:0px 4px 6px rgba(0,0,0,0.25);}
.admin-header .header-left {display:flex;flex-wrap:wrap;align-items:center;column-gap:16px;}
.admin-header .header-left .header-menu {}
.admin-header .header-left .header-menu .menu-btn {overflow:hidden;width:40px;height:40px;background:url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 26H29V24H11V26ZM11 21H29V19H11V21ZM11 14V16H29V14H11Z' fill='%23121212'/%3E%3C/svg%3E") no-repeat center center / 40px 40px;font-size:0;line-height:0;text-indent:-100000px;cursor:pointer;transition:all 0.2s;}
.admin-header .header-left .header-menu .menu-btn:hover {}
.admin-header .header-left .header-menu .menu-btn.on {background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none'%3E%3Cpath d='M11 26H29V24H11V26ZM11 21H29V19H11V21ZM11 14V16H29V14H11Z' fill='%23121212'/%3E%3Crect x='2' y='2' width='36' height='36' rx='18' fill='%23121212' fill-opacity='0.3'/%3E%3C/svg%3E") no-repeat center center / 40px 40px;}
.admin-header .header-left .header-menu .menu-btn.off {}
.admin-header .header-left .logo {display:flex;align-items:center;column-gap:16px;text-decoration:none;}
.admin-header .header-left .logo .logo-icon {display:block;width:38px;height:24px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='38' height='24' viewBox='0 0 38 24' fill='none'%3E%3Cpath d='M26.6815 8.03467H11.3185V14.7939H26.6815V8.03467Z' fill='%23FC8300'/%3E%3Cpath d='M38 0H30.7843V24H38V0Z' fill='%230C27C1'/%3E%3Cpath d='M7.21575 0H0V24H7.21575V0Z' fill='%23CC0D0D'/%3E%3C/svg%3E") no-repeat center center / 38px 24px;font-size:0;line-height:0;text-indent:-100000px;}
.admin-header .header-left .logo .logo-txt {font-size:20px;line-height:1.6;color:#121212;font-weight:400;white-space:nowrap;}
.admin-header .header-left .state {font-size:16px;line-height:1.6;color:#cc0d0d;}
.admin-header .header-right {display:flex;flex-wrap:nowrap;align-items:center;column-gap:24px;}
.admin-header .header-right .user-info {display:flex;flex-wrap:wrap;justify-content:right;column-gap:4px;font-size:14px;line-height:1.6;color:#666;}
.admin-header .header-right .user-info .user-name {white-space:nowrap;}
.admin-header .header-right .user-info .user-number {white-space:nowrap;}
.admin-header .header-right .user-opt {display:flex;flex-wrap:nowrap;column-gap:16px;}
.admin-header .header-right .user-opt .logout {overflow:hidden;width:40px;height:40px;background:url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25 15L23.59 16.41L26.17 19H16V21H26.17L23.59 23.58L25 25L30 20L25 15ZM12 13H20V11H12C10.9 11 10 11.9 10 13V27C10 28.1 10.9 29 12 29H20V27H12V13Z' fill='%23121212'/%3E%3C/svg%3E") no-repeat center center / 40px 40px;font-size:0;line-height:0;text-indent:-100000px;}
.admin-header .header-right .user-opt .logout:hover {border:1px solid #34495e;border-radius:4px;}
@media (max-width:540px) {
	.admin-header {padding:0 10px 0 16px;}
	.admin-header .header-left {column-gap:10px;}
	.admin-header .header-left .logo-txt {display:none;}
	.admin-header .header-left .logo .logo-icon {display:none;}
	.admin-header .header-right {column-gap:5px;}
	.admin-header .header-right .user-opt {column-gap:10px;}
}

/* main container */
.admin-main {display:flex;overflow:hidden;width:100%;height:calc(100vh - 64px);}

/* ----- side bar ----- */
/* 사이드바 컨테이너 */
.admin-sidebar {display:flex;height:100%;box-shadow:1px 0px 6px rgba(0,0,0,0.20);transition:margin-left 0.3s ease,opacity 0.3s ease;}
.admin-sidebar.is-hide {margin-left:-240px;opacity:0;}
.admin-sidebar .sidebar-cont {display:flex;width:240px;flex-direction:column;background:#f7f7f7;}

/* ----- 메뉴 내비게이션 ----- */
.sidebar-nav {display:block;overflow-y:auto;flex:1;}
.sidebar-nav::-webkit-scrollbar {width:4px;height:4px;}
.sidebar-nav::-webkit-scrollbar-track {background:#f7f7f7;}/* 스크롤바 트랙 (배경) */
.sidebar-nav::-webkit-scrollbar-thumb {background:#bbb;border-radius:4px;}/* 스크롤바 썸 (막대) */
.sidebar-nav::-webkit-scrollbar-thumb:hover {background:#888;}/* 스크롤바 썸 호버 */

.sidebar-nav .sidebar-menu {display:block;width:100%;border-bottom:1px solid #e0e0e0;}
.sidebar-nav .sidebar-menu .menu-item {display:block;width:100%;border-top:1px solid #e0e0e0;}
/* 아코디언 버튼 */
.menu-item .menu-btn {display:flex;position:relative;width:100%;padding:8.5px 46px 8px 52px;border:none 0;background:transparent;font-size:14px;line-height:1.4;color:#0c27c1;text-align:left;align-items:center;cursor:pointer;transition:all 0.2s;}
.menu-item .menu-btn:hover {background:#f1f5ff;}
.menu-item .menu-btn::after {content:'';display:block;position:absolute;top:50%;left:16px;width:24px;height:24px;margin-top:-12px;background:url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 9.5L12 14.5L17 9.5H7Z' fill='black' fill-opacity='0.56'/%3E%3C/svg%3E") no-repeat center center / 24px 24px;transition:transform 0.2s;}
.menu-item.on > .menu-btn::after {transform:rotate(180deg);}
/* 단일 메뉴 링크 */
.menu-item .menu-link {display:flex;position:relative;width:100%;padding:8.5px 46px 8px 52px;font-size:14px;line-height:1.4;color:#0c27c1;text-decoration:none;align-items:center;transition:all 0.2s;}
.menu-item .menu-link::after {content:'';display:block;position:absolute;top:50%;right:20px;width:20px;height:20px;margin-top:-10px;background:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.08751 5L6.91251 6.175L10.7292 10L6.91251 13.825L8.08751 15L13.0875 10L8.08751 5Z' fill='black' fill-opacity='0.56'/%3E%3C/svg%3E") no-repeat center center / 20px 20px;}
.menu-item .menu-link:hover {background:#f1f5ff;}
.menu-item .menu-link.point {font-weight:600;}
/* 서브메뉴 */
.menu-item > .submenu {overflow:hidden;width:100%;max-height:0;transition:max-height 0.3s ease;}
.menu-item > .submenu > .menu-item .menu-link {padding-left:72px;color:#212121;}
.menu-item > .submenu > .menu-item .menu-btn {padding-left:72px;color:#212121;}
.menu-item > .submenu > .menu-item .menu-btn::after {left:36px;}
.menu-item > .submenu > .menu-item > .submenu > .menu-item .menu-link {padding-left:92px;}
.menu-item > .submenu > .menu-item > .submenu > .menu-item .menu-btn {padding-left:92px;}
.menu-item > .submenu > .menu-item > .submenu > .menu-item .menu-btn::after {left:56px;}
.menu-item.on > .submenu {max-height:none;}
/*.menu-item.on > .submenu .menu-item {border-top:1px solid #e0e0e0;border-bottom:none;}*/


/* ----- page tab ----- */
.pagetab {width:100%;height:48px;background:#fff;border-bottom:1px solid #212121;}
.pagetab.is-hide {display:none;}
.pagetab .pagetab-area {display:flex;flex-wrap:nowrap;justify-content:space-between;position:relative;height:48px;padding:0 0 1px 0;}
.pagetab .pagetab-area .pagetab-list {display:flex;flex-wrap:nowrap;overflow:auto;scrollbar-width:none;cursor:grab;user-select:none;}
.pagetab .pagetab-area .pagetab-list:active {cursor:grabbing;}
.pagetab .pagetab-area .pagetab-list::-webkit-scrollbar {display:none;}
.pagetab .pagetab-area .pagetab-list::after {content:'';display:block;padding-left:4px;font-size:0;line-height:0;}
.pagetab .pagetab-area .pagetab-list ul {display:flex;flex-wrap:nowrap;}
.pagetab .pagetab-area .pagetab-list ul li {display:flex;flex-wrap:nowrap;align-items:center;column-gap:8px;position:relative;z-index:1;min-height:48px;padding:7px 16px 7px 16px;}
/*.pagetab .pagetab-area .pagetab-list ul li::before {content:'';display:block;position:absolute;top:17px;left:-1px;width:1px;height:14px;background:#e0e0e0;font-size:0;line-height:0;}*/
.pagetab .pagetab-area .pagetab-list ul li a {display:block;font-size:14px;line-height:1.2;color:#666;white-space:nowrap;}
.pagetab .pagetab-area .pagetab-list ul li a::after {content:'';display:block;position:absolute;top:0;left:0;right:0;bottom:0;border-bottom:2px solid transparent;background:url("../images/common/blank.gif") repeat 0 0;}
.pagetab .pagetab-area .pagetab-list ul li a:hover {color:#212121;}
.pagetab .pagetab-area .pagetab-list ul li a:focus {color:#212121;}
.pagetab .pagetab-area .pagetab-list ul li.on {background:#e7e9f9;}
.pagetab .pagetab-area .pagetab-list ul li.on::before {display:none;}
.pagetab .pagetab-area .pagetab-list ul li.on a {color:#0c27c1;}
.pagetab .pagetab-area .pagetab-list ul li.on a::after {border-bottom:2px solid #0c27c1;}
.pagetab .pagetab-area .pagetab-list ul li .del {display:block;overflow:hidden;position:relative;z-index:1;width:30px;height:30px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30' fill='none'%3E%3Cpath d='M20.8333 10.3415L19.6583 9.1665L15 13.8248L10.3417 9.1665L9.16666 10.3415L13.825 14.9998L9.16666 19.6582L10.3417 20.8332L15 16.1748L19.6583 20.8332L20.8333 19.6582L16.175 14.9998L20.8333 10.3415Z' fill='black' fill-opacity='0.56'/%3E%3C/svg%3E") no-repeat center center / 30px 30px;font-size:0;line-height:0;text-indent:-100000px;}
.pagetab .pagetab-area .pagetab-list ul li .del:hover {background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30' fill='none'%3E%3Cpath d='M20.8333 10.3415L19.6583 9.1665L15 13.8248L10.3417 9.1665L9.16666 10.3415L13.825 14.9998L9.16666 19.6582L10.3417 20.8332L15 16.1748L19.6583 20.8332L20.8333 19.6582L16.175 14.9998L20.8333 10.3415Z' fill='%23212121'/%3E%3C/svg%3E") no-repeat center center / 30px 30px;}
.pagetab .pagetab-area .pagetab-list ul li .del:focus {background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30' fill='none'%3E%3Cpath d='M20.8333 10.3415L19.6583 9.1665L15 13.8248L10.3417 9.1665L9.16666 10.3415L13.825 14.9998L9.16666 19.6582L10.3417 20.8332L15 16.1748L19.6583 20.8332L20.8333 19.6582L16.175 14.9998L20.8333 10.3415Z' fill='%23212121'/%3E%3C/svg%3E") no-repeat center center / 30px 30px;}
.pagetab .pagetab-area .pagetab-list ul li:hover a {color:#212121;}
.pagetab .pagetab-area .pagetab-list ul li:hover .del {background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30' fill='none'%3E%3Cpath d='M20.8333 10.3415L19.6583 9.1665L15 13.8248L10.3417 9.1665L9.16666 10.3415L13.825 14.9998L9.16666 19.6582L10.3417 20.8332L15 16.1748L19.6583 20.8332L20.8333 19.6582L16.175 14.9998L20.8333 10.3415Z' fill='%23212121'/%3E%3C/svg%3E") no-repeat center center / 30px 30px;}
.pagetab .pagetab-area .pagetab-opt {position:relative;z-index:2;background:#fff;}
.pagetab .pagetab-area .pagetab-opt .opt-btn {display:flex;flex-wrap:nowrap;column-gap:8px;position:relative;padding:4px 0 0 4px;}
.pagetab .pagetab-area .pagetab-opt .opt-btn button {display:block;width:40px;height:40px;font-size:0;line-height:0;text-indent:-100000px;}
.pagetab .pagetab-area .pagetab-opt .opt-btn .more-btn {display:flex;flex-wrap:nowrap;position:relative;}
.pagetab .pagetab-area .pagetab-opt .opt-btn .more-btn.on {display:flex;}
.pagetab .pagetab-area .pagetab-opt .opt-btn .more-btn.off {display:none;}
.pagetab .pagetab-area .pagetab-opt .opt-btn .more-btn::before {content:'';display:block;position:absolute;left:-20px;top:0;width:20px;height:100%;background:linear-gradient(to right,transparent,#fff);pointer-events:none;}
.pagetab .pagetab-area .pagetab-opt .opt-btn .more-btn button.prev {background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none'%3E%3Cpath d='M22.295 14L23.705 15.41L19.125 20L23.705 24.59L22.295 26L16.295 20L22.295 14Z' fill='%23121212'/%3E%3C/svg%3E") no-repeat center center / 40px 40px;}
.pagetab .pagetab-area .pagetab-opt .opt-btn .more-btn button.prev.off {opacity:0.2;}
.pagetab .pagetab-area .pagetab-opt .opt-btn .more-btn button.next {background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none'%3E%3Cpath d='M17.705 14L16.295 15.41L20.875 20L16.295 24.59L17.705 26L23.705 20L17.705 14Z' fill='%23121212'/%3E%3C/svg%3E") no-repeat center center / 40px 40px;}
.pagetab .pagetab-area .pagetab-opt .opt-btn .more-btn button.next.off {opacity:0.2;}
.pagetab .pagetab-area .pagetab-opt .opt-btn button.tab-del {background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none'%3E%3Cpath d='M27 14.41L25.59 13L20 18.59L14.41 13L13 14.41L18.59 20L13 25.59L14.41 27L20 21.41L25.59 27L27 25.59L21.41 20L27 14.41Z' fill='%23121212'/%3E%3C/svg%3E") no-repeat center center / 40px 40px;}


/* ----- Content ----- */
.admin-content {display:flex;flex-direction:column;flex:1;min-width:0;overflow:hidden;width:100%;height:100%;}
.admin-content .admin-wrap {display:flex;flex-direction:column;flex:1;min-width:0;overflow-x:auto;overflow-y:auto;position:relative;width:100%;height:100%;padding:0 24px;}

/* page */
.page {position:relative;width:100%;padding:28px 0 0 0;}
.page .page-box {display:none;width:100%;}
.page .page-box.on {display:block;}
.page .page-placeholder {display:flex;align-items:center;justify-content:center;min-height:200px;padding:40px;color:#666;font-size:16px;}
.page .page-placeholder.is-hide {display:none;}

/* page head */
.page-head {display:flex;flex-wrap:nowrap;align-items:center;margin:0 0 12px 0;}
.page-head h2 {font-size:24px;line-height:1.33;color:#212121;}
.page-head .page-option {display:flex;flex-wrap:wrap;column-gap:49px;row-gap:8px;overflow:hidden;margin-left:auto;}
.page-head .page-option .option-function {position:relative;}
.page-head .page-option .option-function * {vertical-align:top;}
.page-head .page-option .option-function::before {content:'';display:block;position:absolute;top:8px;left:-25px;width:1px;height:15px;background:#e0e0e0;font-size:0;line-height:0;}

/* 검색조건 */
.conditions {display:flex;flex-wrap:wrap;/*align-items:stretch;*/width:100%;border:1px solid #e0e0e0;border-top:1px solid #9e9e9e;border-right:none 0;}
.condition-field {flex:1;display:flex;flex-wrap:wrap;border-right:1px solid #e0e0e0;}
.condition-field .field-list {display:flex;flex-wrap:wrap;flex-basis:100%;position:relative;width:100%;border-top:1px solid #e0e0e0;}
.condition-field:first-child .field-list:first-child {border-top:none 0;}
.condition-field .field-list::before {content:'';display:block;position:absolute;left:0;bottom:-1px;width:100%;height:1px;background:#e0e0e0;}
.condition-field .field-list table {max-width:100%;}
.condition-field .field-list table th {padding:12px 16px;background:#fafafa;font-size:14px;line-height:1.4;color:#212121;font-weight:normal;text-align:left;vertical-align:middle;}
.condition-field .field-list table td {padding:10px 16px;background:#fff;font-size:13px;line-height:1.4;color:#212121;text-align:left;vertical-align:middle;}
.condition-field .field-list table tr th,.condition-field .field-list table tr td {border-top:1px solid #e0e0e0;}
.condition-field .field-list table tr:first-child th,.condition-field .field-list table tr:first-child td {border-top:none 0;}
.condition-field .field-list table.full {width:100%;}
.conditions .condition-apply {display:flex;justify-content:center;align-items:center;padding:8px 40px;border-right:1px solid #e0e0e0;}
.conditions .condition-tip {font-size:12px;line-height:1.6;color:#666;}
.conditions .validation-tip {font-size:13px;line-height:1.6;color:#666;}
.conditions .sub-field {display:flex;flex-wrap:wrap;column-gap:32px;row-gap:20px;}
.conditions .sub-field .sub-field-list {display:flex;align-items:center;}
.conditions .sub-field .sub-field-list.full {flex-basis:100%;width:100%;}

/* result box */
.result-box {margin:8px 0 0 0;}
.result-box h4 {margin:16px 0 8px 0;padding:0 0 0 16px;font-size:16px;line-height:1.6;color:#121212;}
.result-option {display:flex;flex-wrap:wrap;justify-content:space-between;column-gap:10px;row-gap:8px;margin:8px 0;}
.result-option .option-function {display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:8px;margin-left:auto;}
.result-option .option-function .result-info {display:flex;flex-wrap:wrap;column-gap:8px;font-size:13px;line-height:1.4;color:#666;}
.result-option .option-function .result-info .em {color:#e65100;}
.result-option .option-function .btn-box + .result-info {padding-left:8px;}
.result-option .option-function .total {font-size:13px;line-height:1.4;color:#0c27c1;}
.result-option .option-function .each {display:flex;flex-wrap:wrap;column-gap:6px;}
.result-option .option-function .each span {font-size:13px;line-height:1.4;color:#666;}
.result-option .option-function .select {height:30px;}
.result-option .option-function.lead {margin-left:0;}

/* 무상판매수정 HG010323: 권종 요약·총합을 버튼 바로 아래 왼쪽 한 덩어리로 */
.result-option.gift-non-sale-update-grid-toolbar {
  flex-direction: column;
  align-items: flex-start;
  row-gap: 6px;
}
.result-option.gift-non-sale-update-grid-toolbar .gift-non-sale-update-count-row {
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 20px;
  row-gap: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: #666;
}
.result-option.gift-non-sale-update-grid-toolbar .gift-non-sale-update-count-row .gift-non-sale-update-후보총합,
.result-option.gift-non-sale-update-grid-toolbar .gift-non-sale-update-count-row .gift-non-sale-update-대상총합 {
  color: #0c27c1;
  font-weight: 500;
}

.grid-table {width:calc(100% + 14px);}
.conditions + .result-box .admin-grid:first-child {margin-top:17px;}

/* grid sorting bar */
.grid-sort {display:flex;flex-wrap:nowrap;justify-content:space-between;padding:9px 16px;background:#fff;}
.grid-sort .sort-field {display:flex;flex-wrap:wrap;column-gap:24px;row-gap:10px;}
.grid-sort .sort-field .field-list {display:inline-block;}
.grid-sort .sort-field .field-list label {color }
.grid-sort .sort-apply {margin-left:auto;}

/* Footer */
.admin-footer {display:none;/*display:flex;*/width:100%;height:40px;padding:0 20px;background:#2c3e50;color:#95a5a6;font-size:12px;align-items:center;justify-content:space-between;border-top:1px solid #1a252f;}
.admin-copyright {display:block;}
.admin-version {display:block;}



/* ----- Layer Popup ----- */
/* 모달 배경 (overlay) */
.layer-modal-overlay {display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:1000;}
.layer-modal-overlay.is-visible {display:block;}

/* 레이어 팝업 */
.layer-popup {display:none;position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:600px;max-width:calc(100% - 40px);height:740px;max-height:calc(100vh - 40px);background:#fff;border-radius:4px;box-shadow:0 4px 20px rgba(0,0,0,0.3);z-index:1001;}
.layer-popup.is-visible {display:block;}
.layer-popup.alert {width:444px;height:auto;}
/* 상품권 난수번호 팝업: 커스텀 너비 */
#gift-random-no-layer.layer-popup {width:692px;}

/* 사은품 입출고조정 — 기타 입고 조정 레이어 */
.freebie-adj-other-in-layer.layer-popup {width:1000px;height:auto;max-height:calc(100vh - 40px);}
.freebie-adj-other-in-layer .layer-content {display:flex;flex-direction:column;min-height:0;}
.freebie-adj-other-in-layer .freebie-adj-other-in-grid-wrap {flex:1;min-height:200px;margin-top:8px;}

/* 사은품 입출고조정 — 기타 출고 조정 레이어 */
.freebie-adj-other-out-layer.layer-popup {width:1000px;height:auto;max-height:calc(100vh - 40px);}
.freebie-adj-other-out-layer .layer-content {display:flex;flex-direction:column;min-height:0;}
.freebie-adj-other-out-layer .freebie-adj-other-out-grid-wrap {flex:1;min-height:200px;margin-top:8px;}

/* 사은품 입출고조정 — 폐기 처리 레이어 */
.freebie-adj-discard-layer.layer-popup {width:1000px;height:auto;max-height:calc(100vh - 40px);}
.freebie-adj-discard-layer .layer-content {display:flex;flex-direction:column;min-height:0;}
.freebie-adj-discard-layer .freebie-adj-discard-grid-wrap {flex:1;min-height:200px;margin-top:8px;}

/* 사은품 입출고조정 — 품목마스터 조회 레이어 (상위 팝업 위 스택) */
.freebie-adj-mtl-master-layer.layer-popup {width:720px;height:auto;max-height:calc(100vh - 40px);}
.freebie-adj-mtl-master-layer .freebie-adj-mtl-master-grid-wrap {min-height:220px;margin-top:8px;}

/* 사은품재고조회(매장) — 품목마스터 조회 레이어 */
.freebie-stock-dept-mtl-master-layer.layer-popup {width:720px;height:auto;max-height:calc(100vh - 40px);}
.freebie-stock-dept-mtl-master-layer .freebie-stock-dept-mtl-master-grid-wrap {min-height:220px;margin-top:8px;}

/* 사은품재고조회(수불부) — 품목마스터 조회 레이어 */
.freebie-stock-ledger-mtl-master-layer.layer-popup {width:720px;height:auto;max-height:calc(100vh - 40px);}
.freebie-stock-ledger-mtl-master-layer .freebie-stock-ledger-mtl-master-grid-wrap {min-height:220px;margin-top:8px;}

/* 사은품입출고조회 — 품목마스터 조회 레이어 */
.freebie-poso-doc-mtl-master-layer.layer-popup {width:720px;height:auto;max-height:calc(100vh - 40px);}
.freebie-poso-doc-mtl-master-layer .freebie-poso-doc-mtl-master-grid-wrap {min-height:220px;margin-top:8px;}

/* 사은품수불부관리 — 품목마스터 조회 레이어 */
.freebie-stock-manage-mtl-master-layer.layer-popup {width:720px;height:auto;max-height:calc(100vh - 40px);}
.freebie-stock-manage-mtl-master-layer .freebie-stock-manage-mtl-master-grid-wrap {min-height:220px;margin-top:8px;}

/* 사은품매장-사용자매핑 — 매핑 업로드 엑셀 레이어 (임시입고 엑셀업로드와 동일 폭) */
.freebie-dept-user-mapping-excel-layer.layer-popup {width:1000px;height:auto;max-height:calc(100vh - 40px);}
.freebie-dept-user-mapping-excel-layer .freebie-dept-user-mapping-excel-grid-wrap {min-height:280px;margin-top:8px;}

/* 사은품매장-사용자매핑 — 사은품매장(매장계정조회) 레이어 */
.freebie-dept-user-mapping-shop-layer.layer-popup {width:1100px;height:auto;max-height:calc(100vh - 40px);}
.freebie-dept-user-mapping-shop-layer .freebie-dept-user-mapping-shop-grid-wrap {min-height:260px;margin-top:8px;}

/* 사은품지급-코드매핑 — 매핑 업로드 엑셀 레이어 (임시입고 엑셀업로드와 동일 폭) */
.freebie-payment-code-mapping-excel-layer.layer-popup {width:1000px;height:auto;max-height:calc(100vh - 40px);}
.freebie-payment-code-mapping-excel-layer .freebie-payment-code-mapping-excel-grid-wrap {min-height:280px;margin-top:8px;}

/* 사은품지급-코드매핑 — 사은품매장(매장계정조회) 레이어 */
.freebie-payment-code-mapping-shop-layer.layer-popup {width:1100px;height:auto;max-height:calc(100vh - 40px);}
.freebie-payment-code-mapping-shop-layer .freebie-payment-code-mapping-shop-grid-wrap {min-height:260px;margin-top:8px;}

/* 레이어 레이아웃 */
.layer-popup .layer-wrap {display:flex;flex-direction:column;width:100%;height:100%;padding:20px 0 8px 0;}

/* 레이어 헤더 (타이틀) */
.layer-popup .layer-header {display:flex;align-items:center;justify-content:space-between;margin-top:-4px;margin-bottom:16px;padding:0 24px;}
.layer-popup .layer-header .layer-title {font-size:20px;line-height:1.6;color:#121212;font-weight:400;}
.layer-popup .layer-header .layer-close {overflow:hidden;width:34px;height:34px;margin-left:auto;border:none;background:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34' fill='none'><path d='M24 11.41L22.59 10L17 15.59L11.41 10L10 11.41L15.59 17L10 22.59L11.41 24L17 18.41L22.59 24L24 22.59L18.41 17L24 11.41Z' fill='black' fill-opacity='0.56'/></svg>") no-repeat center center / 34px 34px;font-size:0;line-height:0;text-indent:-100000px;cursor:pointer;transition:background-color 0.2s;}
.layer-popup .layer-header .layer-close:hover {background-image:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34' fill='none'><path d='M24 11.41L22.59 10L17 15.59L11.41 10L10 11.41L15.59 17L10 22.59L11.41 24L17 18.41L22.59 24L24 22.59L18.41 17L24 11.41Z' fill='%23121212'/></svg>");}

/* 레이어 내용 */
.layer-popup .layer-content {flex:1;overflow-y:auto;margin:0 0 10px 0;padding:0 24px;}
/* 상품권 난수번호 팝업: 내용 영역 배경 */
.layer-popup .random-no-display {background:#e8f4fc;padding:16px;border-radius:4px;margin:0;}
.layer-popup .random-no-display .conditions {border-top:none;}
.layer-popup .random-no-display .field-list table {margin:0;}

/* 레이어 개체 예외처리 */
.layer-popup .conditions {border-top:1px solid #e0e0e0}
.layer-popup .admin-grid::before {display:none;}

/* 교환권 MMS 클레임 확인 팝업: 행 간 여백 */
.ticket-exchange-mms-claim-layer .ticket-exchange-mms-claim-fields > tbody > tr > th,
.ticket-exchange-mms-claim-layer .ticket-exchange-mms-claim-fields > tbody > tr > td {
	padding-top: 12px;
	padding-bottom: 12px;
}
.ticket-exchange-mms-claim-layer .ticket-exchange-mms-claim-fields > tbody > tr:first-child > th,
.ticket-exchange-mms-claim-layer .ticket-exchange-mms-claim-fields > tbody > tr:first-child > td {
	padding-top: 4px;
}

/* 레이어 하단 (버튼) */
.layer-popup .layer-footer {display:flex;align-items:center;justify-content:space-between;margin-top:8px;padding:0 24px;}
.layer-popup .layer-footer .footer-left {}
.layer-popup .layer-footer .footer-right {margin-left:auto;}

/* 반응형: 작은 화면 */

@media (max-width:768px) {
	.layer-popup {width:calc(100% - 20px);max-width:calc(100% - 20px);height:calc(100vh - 20px);max-height:calc(100vh - 20px);}
	.layer-popup .layer-header {padding:16px 20px;}
	.layer-popup .layer-content {padding:20px;}
	.layer-popup .layer-footer {padding:12px 20px;flex-direction:column;gap:8px;}
	.layer-popup .layer-footer .footer-left,
	.layer-popup .layer-footer .footer-right {width:100%;justify-content:center;}
}