:root{--navy:#0b2b68;--navy-2:#143f88;--blue:#2767d4;--body:#283247;--muted:#78849a;--line:#e2e7f0;--background:#f5f7fb;--white:#fff;--radius:11px;--shadow:0 3px 22px rgba(21,45,91,.045);font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--background);font-family:"Malgun Gothic","Apple SD Gothic Neo","Noto Sans KR",Arial,sans-serif;color:var(--body);font-size:13px}a{text-decoration:none;color:inherit}a:hover{color:#2162cb}button,input,textarea,select{font:inherit}button{cursor:pointer}.container-fluid{width:calc(100% - 48px);max-width:1900px;margin:0 auto}
.topbar{background:#fff;border-bottom:1px solid #dae2ed;position:relative;z-index:2}.topline{min-height:67px;display:flex;justify-content:space-between;align-items:center;gap:20px}.brand{font-weight:800;font-size:20px;display:inline-flex;align-items:center;gap:11px;letter-spacing:-.7px;color:#122950}.brand-mark{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#0e3174;color:#fff;font-family:Arial,sans-serif;font-size:20px;font-weight:bold;box-shadow:0 3px 8px #0b2b6833}.top-actions{display:flex;align-items:center;gap:15px;font-size:12px}.top-user{color:#55627c}.online-dot{display:inline-block;width:7px;height:7px;background:#19bd84;border-radius:100%;margin-right:6px}.utility-link{color:#51627b}.logout-btn{background:#ebf1fc;border:1px solid #d6e2f7;border-radius:5px;padding:7px 12px;color:#163f82}.logout-btn:hover{background:#dce8fa}.main-nav{background:#0c306f;display:flex;align-items:stretch;padding:0 24px;min-height:46px;gap:0;overflow-x:auto}.main-nav a{display:flex;gap:8px;align-items:center;white-space:nowrap;color:#eaf1ff;font-weight:700;padding:0 25px;border-right:1px solid #ffffff24}.main-nav a:hover,.main-nav a.active{background:#1c4e9b;color:#fff}.nav-icon{font-size:15px;opacity:.8}
.workspace{padding:30px 0 42px}.page-title-row{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}.breadcrumb{color:#8793a8;font-size:11px}.breadcrumb a:hover{text-decoration:underline}.page-title-row h1{font-size:23px;line-height:1.35;letter-spacing:-.6px;margin:9px 0 5px;color:#15294e}.subtitle{margin:0;color:#8994a8;font-size:12px}.page-buttons{display:flex;gap:8px}.btn{border-radius:6px;padding:10px 16px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;border:1px solid transparent;min-height:35px}.btn-primary{background:#174caa;color:#fff}.btn-primary:hover{background:#0a367c;color:#fff}.btn-success{background:#138b63;color:#fff}.btn-success:hover{background:#07744e;color:#fff}.btn-light{background:#fff;border-color:#dce3ed;color:#4d5d75}.btn-light:hover{background:#f1f5fb;color:#234e92}.btn-small{min-height:28px;padding:5px 9px;font-weight:500}.btn-large{min-height:48px;width:100%;justify-content:space-between;font-size:14px;padding:0 20px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:19px 21px;box-shadow:var(--shadow);position:relative;min-height:128px;overflow:hidden}.stat-card:hover{border-color:#adc7f0;transform:translateY(-1px)}.stat-name{font-weight:700;color:#67768e;font-size:12px}.stat-number{font-size:32px;font-weight:800;letter-spacing:-1px;color:#142e60;margin:8px 0 2px}.stat-number small{font-weight:500;font-size:12px;color:#8794ab;margin-left:4px}.stat-detail{font-size:11px;color:#5683c8}.stat-glyph{position:absolute;right:19px;top:17px;font-size:31px;color:#dee9f9;line-height:1}.board-grid{display:grid;grid-template-columns:minmax(360px, .92fr) minmax(480px,1.15fr);gap:20px;align-items:stretch}.stacked-panels{display:grid;gap:18px;grid-template-rows:1fr 1fr}.panel-heading{height:48px;padding:0 19px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5eaf2}.panel-heading>div{display:flex;align-items:center;gap:9px}.panel-heading h2{margin:0;font-size:13px;font-weight:800;letter-spacing:-.2px;color:#21395f}.panel-dot{width:5px;height:15px;border-radius:2px;background:#2a66cc}.panel-note,.more-link{font-size:11px;color:#7e8a9e}.more-link:hover{text-decoration:underline;color:#2265cd}.calendar-panel{min-height:379px}.calendar-controls{height:48px;display:flex;align-items:center;gap:18px;justify-content:center;color:#1f3e7c}.calendar-controls strong{font-size:14px}.calendar-nav{display:grid;place-items:center;border:1px solid #dce6f3;border-radius:5px;height:24px;width:25px;color:#4d72ad;font-size:20px}.calendar-nav:hover{background:#eef4ff}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));padding:0 14px 15px}.weekday{text-align:center;padding:10px 1px;background:#edf4fb;color:#7189a5;font-size:11px;font-weight:bold;border-right:1px solid #fff}.weekday.sunday{color:#d55d68;background:#fff0f1}.weekday.saturday{color:#3e8ac4}.day-cell{border:1px solid #edf0f5;margin:-.5px;min-height:49px;padding:7px 5px;display:flex;flex-direction:column;gap:6px}.day-cell.is-today{background:#f0f6ff;box-shadow:inset 0 0 0 1px #b3ccf6}.day-cell.muted{background:#f8f9fc;color:#b9c0cd}.day-number{font-size:11px;align-self:flex-start}.day-count{font-size:10px;color:#276bd4;background:#eaf2ff;align-self:flex-start;border-radius:3px;padding:2px 4px}.day-count:hover{background:#d8e9ff}.compact-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:12px}.compact-table thead{background:#f7f9fc;color:#697890}.compact-table th{height:34px;font-weight:700;text-align:left}.compact-table th,.compact-table td{padding:8px 15px;border-bottom:1px solid #edf0f4;vertical-align:middle}.compact-table tbody tr:last-child td{border-bottom:0}.compact-table td{height:33px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compact-table a:hover{text-decoration:underline}.compact-table th:nth-last-child(-n+2),.compact-table td:nth-last-child(-n+2){white-space:nowrap;width:91px}.compact-table .empty-cell{height:56px}.empty-cell{text-align:center!important;color:#99a4b5}.lower-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}.lower-grid .panel{min-height:214px}.truncate-cell{max-width:260px}.recent-panel{margin-top:20px}.recent-panel .compact-table th:last-child,.recent-panel .compact-table td:last-child{width:160px}
.status{display:inline-flex;align-items:center;justify-content:center;font-size:11px;white-space:nowrap;padding:4px 6px;border-radius:4px;font-weight:800}.status-done{color:#129065;background:#e4f8ef}.status-verified{color:#2c6ac3;background:#e6f1ff}.status-neutral{color:#62748e;background:#eef1f7}.status-alert{color:#d37914;background:#fff1d5}.status-cancel{color:#c34d5a;background:#ffe7ea}.payment{font-size:11px;color:#a56b16}.payment-done{color:#168760}.flash-list{margin-top:12px}.flash{border-radius:7px;padding:12px 16px;margin:8px 0;font-weight:700}.flash-error{background:#fff0f1;color:#b3344b;border:1px solid #f5c5cc}.flash-success{background:#e9f8ef;color:#168356;border:1px solid #bcebcf}.footer{padding:17px 0 26px;border-top:1px solid #e2e8f0;display:flex;justify-content:space-between;color:#9ca7b7;font-size:11px}
.list-workspace{max-width:none}.filter-panel{padding:17px 19px;margin-bottom:17px}.filter-form{display:flex;align-items:flex-end;gap:11px;flex-wrap:wrap}.filter-field{display:flex;flex-direction:column;gap:7px;min-width:134px;flex:1 0 130px}.filter-field.filter-search{flex:2 1 230px}.filter-field label{font-size:11px;color:#75829a;font-weight:700}.filter-field input,.filter-field select{height:37px;background:#fff;padding:0 11px;border:1px solid #d8e0ec;border-radius:6px;min-width:0;width:100%;color:#263a57;outline:none}.filter-field input:focus,.filter-field select:focus{border-color:#3374d9;box-shadow:0 0 0 3px #3374d91c}.filter-action{display:flex;gap:7px}.filter-action .btn{min-height:37px}.customer-table-panel{border-radius:7px}.table-toolbar{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;gap:14px;border-bottom:1px solid #e8edf4;font-size:12px}.table-toolbar b{font-size:15px;color:#164aab}.table-hint{color:#93a0b0;font-size:11px}.table-scroll{width:100%;overflow:auto}.customer-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:11px;min-width:1620px}.customer-table thead{background:#6f83ae;color:#fff}.customer-table th{height:41px;font-weight:700;padding:9px 8px;text-align:center;border-right:1px solid #ffffff30}.customer-table td{height:37px;padding:7px 8px;border-right:1px solid #e9edf4;border-bottom:1px solid #edf0f5;text-align:center;max-width:280px;overflow:hidden;text-overflow:ellipsis}.customer-table tbody tr:nth-child(even){background:#fcfdff}.customer-table tbody tr:hover{background:#f2f7ff}.customer-table tbody tr.highlight-verified{background:#fcf9cb}.customer-table tbody tr.highlight-response{background:#fff3d8}.customer-table tbody tr.highlight-verified:hover{background:#f8f3b6}.customer-table tbody tr.highlight-response:hover{background:#ffebc1}.customer-name{font-weight:800;color:#20345a;min-width:115px}.customer-name a:hover{text-decoration:underline;color:#1f6ac9}.customer-table .plan-col{color:#db4e54;font-weight:700;text-align:left;min-width:130px}.customer-table .amount{text-align:right;font-variant-numeric:tabular-nums}.customer-table .memo-col{text-align:left;max-width:240px;min-width:110px}.customer-table .nowrap{white-space:nowrap}.edit-link{color:#276bd4;background:#eef5ff;border:1px solid #d9e9ff;border-radius:3px;padding:4px 7px}.edit-link:hover{background:#d9e8ff}.customer-table .large-empty{height:180px;font-size:13px}.pagination-bar{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;padding:18px 20px;color:#8290a4;font-size:11px}.pagination{display:flex;align-items:center;gap:5px}.page-button{display:grid;place-items:center;min-width:32px;height:32px;padding:0 7px;border:1px solid #dce3ef;border-radius:5px;color:#4a5a76;background:#fff;font-size:12px}.page-button.current{background:#164da5;color:#fff;border-color:#164da5;font-weight:700}.page-button:hover:not(.current){border-color:#a9c2eb;background:#f1f6ff}.page-button.disabled{opacity:.35;pointer-events:none}
.form-workspace{max-width:1150px}.edit-panel{padding:0 25px}.form-section{padding:26px 0;border-bottom:1px solid #ecf0f5}.form-section:last-of-type{border-bottom:none}.form-section h2{margin:0 0 19px;font-size:14px;color:#173360}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px 18px}.form-grid label,.memo-label{display:flex;flex-direction:column;gap:8px;color:#5d6e86;font-size:12px;font-weight:700}.form-grid label em{color:#d44b55;font-style:normal}.form-grid input,.form-grid select,.memo-label textarea{border:1px solid #d8e0ec;border-radius:6px;outline:none;background:#fff;padding:11px 12px;width:100%;color:#1f3352;font-weight:400}.form-grid input,.form-grid select{height:40px}.form-grid input:focus,.form-grid select:focus,.memo-label textarea:focus{border-color:#3374d9;box-shadow:0 0 0 3px #3374d91c}.memo-label{margin-top:15px}.memo-label textarea{line-height:1.7;resize:vertical}.form-bottom{display:flex;justify-content:flex-end;gap:9px;padding:20px 0 24px}.delete-form{text-align:right;margin:15px 0}.danger-text{border:none;color:#c64b56;text-decoration:underline;background:transparent}.user-form .btn{margin-top:20px}.employees-panel{margin-top:19px}.read-notice{padding:26px}.notice-meta{color:#94a0af;border-bottom:1px solid #edf0f4;padding-bottom:15px}.notice-body{min-height:200px;padding-top:23px;line-height:1.9;white-space:pre-wrap}.error-panel{padding:60px;text-align:center}.error-panel p{margin:20px 0 30px;color:#748198}
.login-shell{display:flex;min-height:100vh;background:#f8fafd}.login-side{width:53%;background:linear-gradient(152deg,#133c83 0%,#092556 65%,#061a39 100%);color:#fff;display:flex;flex-direction:column;justify-content:space-between;padding:45px clamp(34px,6vw,100px);position:relative;overflow:hidden}.login-side:after{content:"";position:absolute;width:500px;height:500px;border-radius:100%;border:1px solid #ffffff18;left:55%;top:45%;box-shadow:0 0 0 100px #ffffff08,0 0 0 200px #ffffff04}.login-brand{font-size:21px;font-weight:800;display:flex;align-items:center;gap:12px}.login-brand .brand-mark{background:#fff;color:#0c2b60}.login-hero{position:relative;z-index:1}.eyebrow{display:block;font-weight:700;letter-spacing:2px;font-size:10px;color:#a4c8ff}.login-hero h1{font-size:clamp(29px,3.3vw,50px);line-height:1.45;letter-spacing:-2px;font-weight:400;margin:24px 0}.login-hero h1 strong{color:#90baff;font-weight:800}.login-hero p{font-size:14px;line-height:2;color:#c0d2ee}.hero-lines{display:flex;gap:10px;margin-top:49px;align-items:end;height:75px}.hero-lines div{border:1px solid #91b5e478;border-radius:6px;width:47px;height:34px;transform:skewY(-13deg);background:#6192e520}.hero-lines div:nth-child(2){height:55px}.hero-lines div:nth-child(3){height:40px}.hero-lines div:nth-child(4){height:70px}.login-copyright{position:relative;z-index:1;font-size:11px;color:#9eb4d8}.login-main{flex:1;display:flex;align-items:center;justify-content:center;padding:35px}.login-card{max-width:390px;width:100%;}.login-emblem{width:52px;height:52px;display:grid;place-items:center;border-radius:12px;background:#113c87;color:#fff;font-size:32px;font-weight:800;margin-bottom:28px}.eyebrow.dark{color:#5881c1}.login-card h2{font-size:30px;letter-spacing:-1px;margin:12px 0 9px;color:#132d58}.login-help{color:#9ba6b9;margin:0 0 39px}.login-card label{display:block;font-weight:700;color:#54647e;margin:17px 0 9px}.field{height:49px;width:100%;background:#fff;border:1px solid #dce4ef;border-radius:7px;padding:0 14px;outline:none}.field:focus{border-color:#2865c8;box-shadow:0 0 0 3px #2865c81a}.login-card .btn{margin-top:27px}.login-footnote{font-size:11px;color:#a7b1c1;text-align:center;margin-top:22px}
@media(max-width:1100px){.board-grid{grid-template-columns:1fr 1fr}.main-nav{padding:0 10px}.main-nav a{padding:0 18px}.form-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:850px){.stat-grid{grid-template-columns:repeat(2,1fr)}.board-grid,.lower-grid{grid-template-columns:1fr}.stacked-panels{grid-template-rows:auto}.login-side{width:44%;padding:35px}.login-hero h1{font-size:31px}.login-main{padding:20px}.container-fluid{width:calc(100% - 28px)}.top-actions{gap:7px}.top-user{display:none}.page-title-row{align-items:flex-start}}
@media(max-width:590px){.stat-grid{gap:9px}.stat-card{padding:16px;min-height:109px}.stat-number{font-size:25px}.stat-glyph{font-size:25px}.login-shell{flex-direction:column}.login-side{width:100%;min-height:190px;padding:25px}.login-hero h1{font-size:23px;margin:14px 0}.login-hero p,.hero-lines,.login-copyright{display:none}.login-main{padding:35px 26px}.login-card h2{font-size:25px}.page-title-row{flex-direction:column;align-items:stretch}.page-buttons{flex-wrap:wrap}.form-grid{grid-template-columns:1fr}.filter-field{flex:1 1 140px}.topline{min-height:60px}.brand{font-size:16px}.main-nav{min-height:42px}.main-nav a{padding:0 12px}.footer{flex-direction:column;gap:6px}.pagination-bar{justify-content:center}.pagination-bar>span{display:none}.calendar-grid{padding:0 8px 10px}}

/* 회원가입 및 가입 승인 */
.signup-link{color:#174caa;font-weight:800;text-decoration:underline;text-underline-offset:3px}.signup-link:hover{color:#082c70}.login-approval-tip{text-align:center;color:#8b99ad;font-size:11px;margin-top:8px}.register-help{margin-bottom:24px}.signup-notice{padding:10px 12px;border-radius:6px;background:#edf4ff;color:#315a92;font-size:11px;line-height:1.6;margin:18px 0 0}.signup-pending-banner{padding:15px 19px;margin:0 0 18px;border:1px solid #f3da9d;background:#fff9e9;border-radius:8px;color:#80601b}.signup-pending-banner strong{color:#ac6c08}.staff-table{min-width:730px;table-layout:auto}.staff-table th:last-child,.staff-table td:last-child{width:230px;max-width:none}.staff-table td{overflow:visible;text-overflow:clip}.staff-table .pending-row{background:#fffaf0}.staff-actions{display:flex;gap:6px;align-items:center}.staff-state{font-weight:800;padding:5px 9px;border-radius:4px;white-space:nowrap}.staff-pending{color:#9b6411;background:#fff0cb}.staff-rejected{color:#ae4d5a;background:#ffe9ed}.staff-active{color:#138b63;background:#e2f7ec}.staff-inactive{color:#65738a;background:#e9edf4}
/* 원본 접수 화면 흐름을 참고한 고객 접수서 전용 스타일 */
.intake-workspace{max-width:1280px;margin:0 auto;padding-top:22px}
.intake-heading{margin-bottom:13px}.intake-heading h1{font-size:21px}.intake-required{font-size:11px;color:#c03939;align-self:center}
.intake-form{background:#fff;border:1px solid #d3d9e5;border-radius:6px;box-shadow:0 2px 10px #193b6710;overflow:hidden}
.intake-scroll{overflow-x:auto}.intake-table{width:100%;min-width:1000px;border-collapse:collapse;border-spacing:0;table-layout:fixed;font-size:12px;color:#2f3c4e}
.intake-table col.label-width{width:132px}.intake-table col.value-width{width:calc((100% - 264px)/2)}
.intake-table td,.intake-table th{padding:7px 9px;border:1px solid #e0e5ee;line-height:1.4;vertical-align:middle;text-align:left;height:43px}
.intake-table th{background:#7389b3;color:#fff;font-weight:600;text-align:center}
.intake-table th b{color:#ffef9b}.intake-table td{background:#fff}.intake-table .section-row td{padding:9px 15px;background:#f4f7fb;border-top:2px solid #cdd9eb;font-size:13px;font-weight:800;color:#1b396b;height:38px}
.section-row:first-child td{border-top:0}.section-check{color:#e55260;font-weight:900;padding-right:11px;font-size:15px}.section-row small{font-size:11px;color:#8692a7;font-weight:400;margin-left:10px}
.intake-table input:not([type='radio']):not([type='checkbox']):not([type='file']),.intake-table select{height:28px;min-width:0;max-width:100%;border:1px solid #bdc9dc;border-radius:3px;background:#fff;color:#273c5c;padding:3px 6px;font-weight:400;vertical-align:middle}
.intake-table input:focus,.intake-table select:focus,.intake-table textarea:focus{outline:2px solid #9bc0ff;outline-offset:0}.intake-table input[type='file']{font-size:11px;width:100%;max-width:290px}
.intake-table select{max-width:100%}.intake-table .carrier-choice{width:182px}.intake-table .inline-items{line-height:2.3}.inline-items input,.inline-items select,.inline-items button{margin-right:5px}
.inline-radios{display:inline-flex;gap:12px;align-items:center;flex-wrap:wrap}.inline-radios label{display:inline-flex;gap:4px;align-items:center;cursor:pointer;white-space:nowrap}.inline-radios input{margin:0;accent-color:#256ac3}
.intake-table .unit{font-size:11px;color:#8b96a5}.intake-table .safe-note{color:#71839d;font-size:10px;margin-left:8px}.intake-table .security-row{background:#fff6ed;color:#9a5c33;font-size:11px;text-align:left}
.intake-table .small-action{font-size:10px;border:1px solid #c4d5ed;background:#e9f1ff;color:#24569e;border-radius:3px;padding:4px 8px;white-space:nowrap}.intake-table .small-action:hover{background:#d2e3ff}
.intake-table .section-inline{margin-left:18px;font-size:11px;font-weight:400;cursor:pointer}.section-inline input{vertical-align:middle;accent-color:#256ac3}.intake-table .intake-notes{min-height:130px;width:100%;max-width:100%;border:1px solid #c7d1e0;border-radius:3px;padding:10px;font:12px/1.7 'Malgun Gothic',sans-serif;resize:vertical}
.attached-line{display:flex;justify-content:space-between;gap:8px;margin-bottom:4px;font-size:11px;color:#244c8c}.attached-line label{color:#c44a4a}.intake-footer{padding:17px 18px;display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}.intake-footer .privacy-tip{font-size:11px;color:#74849b}.intake-footer>div{display:flex;gap:7px}.read-only-date{color:#788aa3}
@media(max-width:950px){.intake-workspace{max-width:none}.intake-footer{align-items:stretch}}

.intake-product-group[hidden],.intake-table .payment-block[hidden]{display:none}

/* 상품목록 CSV 및 카카오 주소검색 추가 */
.catalog-notice{background:#f3f7fd!important;font-size:11px;color:#355584;line-height:1.7}.catalog-notice a{color:#1953a1;font-weight:800;text-decoration:underline}.catalog-notice small{color:#8492a6}
.intake-table .catalog-select:disabled{background:#f2f4f7;color:#8a97ac}.catalog-manager{padding:27px;margin-bottom:18px}.catalog-manager h2{font-size:17px;margin:0 0 12px}.catalog-manager p{line-height:1.7;color:#667690}.catalog-stats{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.catalog-stats>div{min-width:135px;display:flex;flex-direction:column;gap:8px;padding:12px 15px;background:#f2f6fc;border:1px solid #e1e8f4;border-radius:6px}.catalog-stats>div span{color:#42629c}.catalog-warning{background:#fff8e9;border:1px solid #eadbab;padding:12px 16px}.catalog-tools{display:flex;gap:9px;flex-wrap:wrap}.catalog-tools .btn{width:auto}.catalog-manager code{display:inline-block;max-width:100%;overflow-wrap:anywhere;font-size:11px;color:#345b93;background:#edf3fc;padding:8px}.catalog-manager .help-line{font-size:12px}.catalog-manager form{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:16px}.catalog-upload-label{display:flex;align-items:center;gap:12px;font-size:12px;color:#4f6482}

/* Popup-free Kakao postcode integration: embedded modal on the first-party page */
body.postcode-open{overflow:hidden}
.postcode-modal[hidden],.postcode-modal [hidden]{display:none!important}
.postcode-modal{position:fixed;inset:0;z-index:9999;background:rgba(17,31,55,.63);display:flex;align-items:center;justify-content:center;padding:15px}
.postcode-dialog{background:#fff;border-radius:10px;max-width:550px;width:100%;max-height:calc(100vh - 30px);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 24px 80px #0005}
.postcode-dialog-head{height:50px;padding:0 15px;display:flex;align-items:center;justify-content:space-between;background:#0d306e;color:#fff}
.postcode-dialog-head button{background:#244c87;color:#fff;border:1px solid #7792b9;border-radius:5px;padding:6px 12px}
.postcode-help{font-size:12px;color:#57739e;padding:10px 16px;margin:0}
.postcode-error{color:#9a343e;background:#fff1f1;padding:12px 16px;margin:0;font-size:12px;line-height:1.7}
.postcode-layer{height:min(630px,calc(100vh - 130px));min-height:340px;width:100%;background:#fff}
/* Admin's photo-grouped catalog editor, one category at a time */
.catalog-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.catalog-photo-card{padding:15px;border:1px solid #dce5f2;border-radius:8px;background:#f9fbff}
.catalog-photo-card h3{font-size:14px;color:#193966;margin:0 0 8px}
.catalog-photo-card .small-note{font-size:11px;margin:3px 0 8px;line-height:1.6;color:#73839d}
.catalog-photo-card form{display:block;margin:0}
.catalog-photo-card select{max-width:100%;border:1px solid #c4d1e3;border-radius:5px;padding:7px 9px;background:#fff;margin-bottom:8px}
.catalog-photo-card textarea{width:100%;border:1px solid #c4d1e3;border-radius:5px;padding:10px;resize:vertical;font-size:12px;line-height:1.65;min-height:105px;color:#243a5c}
.catalog-photo-card .catalog-photo-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.catalog-photo-card .catalog-photo-actions .btn{font-size:12px;padding:7px 12px}
.catalog-photo-card .catalog-photo-actions label{font-size:11px;color:#8490a1}
.catalog-photo-label{font-size:11px;color:#506c97}
@media(max-width:760px){.catalog-photo-grid{grid-template-columns:1fr}}

/* 사진 원본: 첫 콤보는 인터넷/TV, 둘째 콤보는 해당 상품 옵션. 중복 상품선택 드롭다운 숨김. */
.intake-form .catalog-product-hidden {display:none !important;}
.intake-form .catalog-option-photo {min-width:210px; max-width:280px; background:#fff9e9;}

/* CRM v6: pending replies rise to the top and glow yellow until a reply is saved. */
.customer-table tbody tr.highlight-response {background:#fff2a6!important; box-shadow:inset 4px 0 0 #efb300;animation:reply-pulse 2.7s ease-in-out infinite}
.customer-table tbody tr.highlight-response:hover {background:#ffe784!important}
@keyframes reply-pulse {0%,100%{filter:brightness(1)}50%{filter:brightness(1.055)}}
.reply-wait-label{display:inline-flex;white-space:nowrap;border-radius:4px;padding:3px 6px;background:#f39a18;color:#422800;font-weight:900;font-size:10px}
.history-workspace{margin:16px 0 35px;background:#fff;border:1px solid #d0d7e4;border-radius:5px;overflow:hidden;scroll-margin-top:26px}
.history-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(270px,1fr);gap:5px;align-items:start}
.history-box{min-width:0}.history-bar{padding:11px 13px;background:#6f85b0;font-size:12px;font-weight:800;color:#fff}
.history-layout .history-box:first-child .history-bar{background:#ffaf67;color:#432b11}
.history-count{float:right;font-size:11px;font-weight:400;opacity:.85}
.history-table-wrap{overflow:auto;max-height:410px}
.history-table{border-collapse:collapse;width:100%;min-width:620px;font-size:11px}
.history-status-table{min-width:280px}
.history-table th{background:#748ab4;color:#fff;white-space:nowrap;font-weight:600;text-align:center;padding:9px 7px;border:1px solid #e3e7ee}
.history-table td{padding:8px 7px;text-align:center;border:1px solid #e0e5eb;vertical-align:top;line-height:1.55}
.history-table .history-body{text-align:left;max-width:430px;min-width:170px;white-space:pre-wrap;overflow-wrap:anywhere}
.history-table .nowrap{white-space:nowrap}
.history-type{display:inline-block;border-radius:3px;font-size:11px;padding:3px 5px;font-weight:800;white-space:nowrap}
.history-type-request{color:#a92923;background:#ffe2dd}
.history-type-reply{color:#22569c;background:#dfeeff}
.history-type-memo{color:#667085;background:#eef1f6}
.history-table .history-empty{padding:24px;color:#8291a7}
.history-entry{margin-top:15px;border-top:1px solid #e3e7ed}
.history-entry-fields{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:10px 13px;background:#f6f8fc}
.history-entry-fields>label:not(.history-check){font-weight:800;color:#465d84}
.history-entry select,.history-entry input[type=datetime-local]{border:1px solid #bcc9df;border-radius:4px;padding:6px 8px;max-width:100%;background:white}
.history-entry .history-check{margin-left:auto;white-space:nowrap;color:#52698e}
.history-entry-bottom{display:grid;grid-template-columns:76px 1fr auto;align-items:stretch;gap:10px;padding:10px 13px}
.history-entry-bottom>label{display:flex;align-items:center;justify-content:center;background:#7288b2;color:#fff;font-weight:800}
.history-entry-bottom textarea{resize:vertical;min-height:90px;max-width:100%;width:100%;border:1px solid #becbdd;padding:10px;font:12px/1.6 'Malgun Gothic',sans-serif}
.history-entry-bottom .btn{align-self:center}
.history-pending-note{margin:0;padding:10px 14px;background:#fff5d8;color:#7f5d13;font-weight:700}
@media(max-width:900px){.history-layout{grid-template-columns:1fr}.history-entry-bottom{grid-template-columns:1fr}.history-entry-bottom>label{padding:7px}.history-entry .history-check{margin-left:0}}
@media(prefers-reduced-motion:reduce){.customer-table tbody tr.highlight-response{animation:none}}

.filter-field .pending-filter{display:inline-flex;align-items:center;gap:7px;min-height:37px;padding:6px 8px;background:#fff8dc;border:1px solid #e9d28a;border-radius:5px;color:#755815;white-space:nowrap}.filter-field .pending-filter input{width:auto;height:auto;accent-color:#d59a17}
