
:root{--bg:#eef1f5;--panel:#fff;--text:#111827;--muted:#667085;--line:#d9dee7;--primary:#111827;--red:#dc2626;--green:#047857;--shadow:0 8px 24px rgba(17,24,39,.08)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Segoe UI",sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}.layout{min-width:1240px}.top{height:64px;background:#111827;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 22px}.brand h1{font-size:19px;margin:0}.brand p{font-size:12px;margin:2px 0 0;color:#cbd5e1}.main{display:grid;grid-template-columns:230px 1fr;min-height:calc(100vh - 64px)}.side{background:#fff;border-right:1px solid var(--line);padding:16px}.side button{display:block;width:100%;text-align:left;background:#fff;border-radius:12px;padding:13px 14px;margin-bottom:6px;font-weight:850}.side button.active{background:#111827;color:#fff}.work{padding:18px}.card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:var(--shadow);margin-bottom:14px}.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.toolbar input,.toolbar select{border:1px solid var(--line);border-radius:10px;padding:9px;background:#fff}.btn{background:#111827;color:#fff;border-radius:10px;padding:9px 12px;font-weight:850}.btn2{background:#fff;color:#111827;border:1px solid var(--line);border-radius:10px;padding:9px 12px;font-weight:850}.danger{background:#fee2e2;color:#991b1b;border-radius:10px;padding:8px 10px;font-weight:850}.grid{display:grid;grid-template-columns:1fr 360px;gap:14px}.summary{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.summary .box{background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px}.box b{font-size:20px}table{border-collapse:collapse;width:100%;background:#fff;border-radius:12px;overflow:hidden}th,td{border-bottom:1px solid var(--line);padding:8px;text-align:left;vertical-align:middle;white-space:nowrap;font-size:13px}th{background:#f8fafc;color:#475467;font-size:12px}tr:hover td{background:#fafafa}.status{font-size:12px;border-radius:99px;padding:4px 8px;font-weight:900;background:#eef4ff;color:#1849a9}.st-신규주문{background:#eef4ff;color:#1849a9}.st-배송준비{background:#fffaeb;color:#92400e}.st-출고완료,.st-확인완료{background:#ecfdf3;color:#05603a}.st-보류,.st-주문거절,.st-주문취소{background:#fee2e2;color:#991b1b}.st-확인{background:#ecfdf3;color:#05603a}.st-출고준비{background:#fffaeb;color:#92400e}.st-취소,.st-거절,.st-반려{background:#fee2e2;color:#991b1b}.muted{color:var(--muted);font-size:12px;line-height:1.5}.detail{position:sticky;top:18px;align-self:start}.field{display:grid;gap:5px;margin-bottom:9px}.field label{font-size:12px;color:#667085;font-weight:850}.field input,.field textarea,.field select{width:100%;border:1px solid var(--line);border-radius:10px;padding:8px;background:#fff}.compact td input,.compact td select{width:100%;min-width:80px;border:1px solid #e5e7eb;border-radius:8px;padding:6px}.compact td{padding:5px}.modal{position:fixed;inset:0;background:rgba(17,24,39,.45);display:none;align-items:center;justify-content:center;z-index:99}.modal .panel{background:#fff;border-radius:18px;width:min(980px,94vw);max-height:86vh;overflow:auto;padding:18px}.toast{position:fixed;right:20px;bottom:20px;background:#111827;color:#fff;border-radius:12px;padding:12px 16px;font-weight:850;z-index:100}.wide{max-width:260px;overflow:hidden;text-overflow:ellipsis}.log-value{max-width:360px;white-space:normal;line-height:1.45;word-break:break-word}.log-value[title]{cursor:help}
@keyframes fadeUp{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@keyframes pop{0%{transform:scale(.98);opacity:.8}100%{transform:scale(1);opacity:1}}
button,.card,.side button{transition:transform .14s ease,box-shadow .18s ease,background-color .18s ease,border-color .18s ease}
button:active,.side button:active{transform:scale(.98)}
.card{animation:fadeUp .18s ease both}
.modal .box{animation:pop .16s ease both}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* v10.24 admin login/alerts/password reset */
.admin-login-wrap{max-width:420px;margin:90px auto}.admin-login-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:24px;box-shadow:var(--shadow)}.admin-login-card h2{margin:0 0 8px}.admin-login-card input{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px;margin-top:10px}body.login-screen .layout{min-width:0}body.login-screen .main{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 64px)}body.login-screen .work{width:100%;padding:18px}body.login-screen .admin-login-wrap{margin:0 auto}.alertbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px 16px;box-shadow:var(--shadow);margin-bottom:14px}.alertbar b{margin-right:8px}.alert-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900;background:#eef4ff;color:#1849a9}.alert-pill.red{background:#fef2f2;color:#991b1b}.alert-pill.green{background:#ecfdf3;color:#05603a}.modified-badge{display:inline-flex;margin-top:5px;border-radius:999px;padding:3px 7px;background:#fef3c7;color:#92400e;font-size:11px;font-weight:900}.pw-reset-box{display:flex;align-items:center;gap:8px}.pw-mask{font-weight:900;color:#98a2b3;letter-spacing:.08em}.manual-note{background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:10px;color:#667085;line-height:1.5}


/* v10.33 item-level order processing */
.status.st-배송지연{background:#fff7ed;color:#c2410c}.status.st-주문취소{background:#fee2e2;color:#991b1b}.filebar{display:flex;gap:8px;align-items:center;flex-wrap:nowrap;white-space:nowrap}.filebar select{min-width:120px}.item-actions{display:flex;gap:6px;flex-wrap:wrap}.delay-input{min-width:132px}.reason-input{min-width:180px}.order-item-name{font-weight:850;max-width:260px;white-space:normal;line-height:1.35}.group-list{display:grid;gap:8px}.group-row{display:flex;justify-content:space-between;align-items:center;border:1px solid var(--line);border-radius:12px;padding:10px;background:#fff}.payment-filter{display:grid;grid-template-columns:1.1fr 1.1fr .9fr .9fr auto;gap:8px;align-items:end}.payment-filter button{height:40px;align-self:end;margin-bottom:9px}.customer-searchbar{display:flex;gap:8px;align-items:center;margin-bottom:10px}.customer-searchbar input{min-width:320px}.item-summary{font-size:12px;color:#667085;margin-top:4px;line-height:1.45}


/* v10.33 compact order table + dropdown actions */
.orders-compact table th,.orders-compact table td{padding:7px 8px;vertical-align:middle}
.order-info-cell{min-width:185px;background:#fbfdff}
.order-info-no{font-weight:900;font-size:13px}
.order-info-meta{font-size:12px;color:#667085;line-height:1.35;margin-top:3px}
.order-info-customer{font-weight:800;font-size:13px;margin-top:5px}
.row-action{display:flex;gap:6px;align-items:center;flex-wrap:nowrap}
.row-action select,.bulk-status-select{min-width:118px;padding:7px 9px;border-radius:10px;border:1px solid var(--line)}
.process-note{font-size:12px;color:#667085;margin-left:auto}


/* v10.33 tighter order-management table */
.orders-tight table{font-size:13px}
.orders-tight table th,.orders-tight table td{padding:5px 7px;vertical-align:middle;line-height:1.25}
.orders-tight .order-item-name{font-size:13px;line-height:1.2;max-width:330px}
.orders-tight .muted{font-size:11px}
.orders-tight .order-no-link{font-weight:850;color:#0b5bd3}
.orders-tight .order-date-cell{white-space:nowrap;color:#344054}
.orders-tight .customer-cell{min-width:150px;line-height:1.25}
.orders-tight .delay-box{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-bottom:4px}
.orders-tight .delay-box input[type=date]{width:128px;padding:6px 7px}
.orders-tight .delay-box input[type=text]{width:150px;padding:6px 7px}
.orders-tight .row-action{gap:5px}
.orders-tight .row-action select{min-width:108px;padding:6px 8px}
.orders-tight .row-action button,.orders-tight .delay-box button{padding:6px 9px}
.order-toolbar-slim{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.order-toolbar-slim input{max-width:300px}


/* v10.33 selection column */
.orders-tight .select-col{width:34px;text-align:center}
.orders-tight .select-col input{width:16px;height:16px}
.order-bulk-area{margin-left:auto;display:flex;gap:6px;align-items:center;flex-wrap:nowrap}
.order-bulk-area select{min-width:120px;padding:7px 9px;border-radius:10px;border:1px solid var(--line)}


/* v10.33 selected row highlight */
.orders-tight tbody tr.item-selected td{background:#eef6ff !important}
.orders-tight tbody tr.item-selected td:first-child{box-shadow:inset 3px 0 0 #2563eb}
.orders-tight tbody tr.item-selected:hover td{background:#e5f0ff !important}


/* v10.33 checkbox header behavior + courier select style */
.filebar select#carrierSelect{height:38px;padding:0 34px 0 14px;border-radius:10px;border:1px solid #1d4ed8;background:#fff;color:#1d4ed8;font-weight:800;min-width:120px;line-height:38px}
.filebar select#carrierSelect:focus{outline:none;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.orders-tight thead .select-col input{cursor:pointer}


/* v10.33 clickable alert shortcuts */
.alertbar .alert-pill{cursor:pointer;border:none;font-family:inherit}
.alertbar .alert-pill:hover{text-decoration:underline;filter:brightness(.98)}
.modified-log-table td{vertical-align:top}
.modified-log-memo{max-width:420px;line-height:1.45;white-space:normal}


/* v10.33 usability polish */
.order-action-card{position:sticky;top:0;z-index:10;border:1px solid #dbe7ff;box-shadow:0 8px 18px rgba(16,24,40,.06)}
.selected-count-badge{display:inline-flex;align-items:center;height:34px;padding:0 12px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-weight:900;border:1px solid #bfdbfe;white-space:nowrap}
.selected-count-badge.none{background:#f8fafc;color:#667085;border-color:#e5e7eb;font-weight:700}
.delay-badge{display:inline-flex;align-items:center;height:28px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:900}
.delay-badge.done{background:#dcfce7;color:#166534}
.delay-badge.missing{background:#fff7ed;color:#c2410c}



/* v10.35 dirty-save UX + shipping/product freight fields */
tr.dirty-row td{background:#fffbea!important;box-shadow:inset 3px 0 0 #f59e0b}
.unsaved-banner{display:none;align-items:center;gap:8px;margin-left:auto;border:1px solid #fde68a;background:#fffbeb;color:#92400e;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:900;white-space:nowrap}
.unsaved-banner.show{display:inline-flex}
.btn.dirty-save{background:#b45309!important;box-shadow:0 0 0 3px rgba(245,158,11,.18)}
.shipping-badge{display:inline-flex;margin-top:5px;border-radius:999px;padding:3px 7px;background:#e0f2fe;color:#075985;font-size:11px;font-weight:900}
.shipping-info-cell{min-width:88px;white-space:normal}
.shipping-modal-kv{display:grid;grid-template-columns:120px 1fr;gap:8px;border-bottom:1px solid var(--line);padding:9px 0}
.shipping-modal-kv b{color:#374151}


/* v10.36 courier upload preview (unused after v10.36.3 direct CSV override) */
/* v10.36.3 direct courier CSV + reverse shipped transition */
.preview-status{display:inline-flex;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:900;background:#ecfdf3;color:#05603a}
.preview-status.err{background:#fee2e2;color:#991b1b}
.preview-error-list{margin:8px 0 0 0;padding-left:18px;color:#991b1b;font-size:12px;line-height:1.45;white-space:normal}
.courier-preview-table{min-width:1080px}
.courier-preview-table td,.courier-preview-table th{vertical-align:top}
.courier-msg-input{width:220px!important;min-width:180px!important}
.preview-address{max-width:260px;white-space:normal;line-height:1.35}
.preview-item{max-width:240px;white-space:normal;line-height:1.35;font-weight:800}


/* v10.36.3 file-created badges/highlights */
.export-badge{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:999px;font-size:11px;font-weight:900;margin-top:4px;margin-right:4px;border:1px solid transparent;white-space:nowrap}
.export-badge.courier{background:#dbeafe;color:#1d4ed8;border-color:#bfdbfe}
.export-badge.ecount{background:#dcfce7;color:#166534;border-color:#bbf7d0}
.export-badge.warn{background:#fff7ed;color:#c2410c;border-color:#fed7aa}
.orders-tight tbody tr.courier-file-created td{background:#f0f7ff!important}
.orders-tight tbody tr.ecount-file-created td{background:#f0fdf4!important}
.orders-tight tbody tr.courier-file-created.ecount-file-created td{background:#f5f3ff!important}
.orders-tight tbody tr.item-selected.courier-file-created td{background:#e0f2fe!important}
.orders-tight tbody tr.item-selected.ecount-file-created td{background:#dcfce7!important}
.export-note{font-size:11px;color:#667085;margin-top:4px;line-height:1.35}


/* v10.37 export filters and ecount pending emphasis */
.export-badge.pending{background:#fef3c7;color:#92400e;border-color:#fde68a}
.orders-tight tbody tr.ecount-file-pending td{background:#fffbeb!important}
.orders-tight tbody tr.item-selected.ecount-file-pending td{background:#fef3c7!important}
.export-filter-box{display:inline-flex;gap:6px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:6px 8px;background:#fff}
.export-filter-box label{font-size:12px;color:#667085;font-weight:900}
.export-filter-box select{height:32px;border:1px solid var(--line);border-radius:9px;padding:0 8px;background:#fff}
.export-summary{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.export-summary .pill{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;border:1px solid var(--line);background:#fff;color:#344054}
.export-summary .pill.warn{background:#fffbeb;color:#92400e;border-color:#fde68a}
.export-summary .pill.good{background:#f0fdf4;color:#166534;border-color:#bbf7d0}
.export-summary .pill.info{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}

/* v10.46 export batch history */
.batch-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:900;border:1px solid var(--line);background:#fff}
.batch-status.active{background:#ecfdf3;color:#027a48;border-color:#a6f4c5}
.batch-status.canceled{background:#fef3f2;color:#b42318;border-color:#fecdca}
.batch-type{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:900}
.batch-type.courier{background:#eff6ff;color:#1d4ed8}
.batch-type.ecount{background:#f0fdf4;color:#166534}
.batch-summary{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.batch-summary span{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900;background:#fff;color:#344054}
.batch-row-canceled{background:#fff7f7}
.detail-table td{vertical-align:top}


/* v10.46 error tracking / safe processing */
.error-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:900;border:1px solid var(--line);background:#fff}
.error-status.open{background:#fef3c7;color:#92400e;border-color:#fde68a}
.error-status.checked{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}
.error-status.resolved{background:#ecfdf3;color:#027a48;border-color:#a6f4c5}
.error-row-open{background:#fffbeb}
.error-code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-weight:900;color:#991b1b}
.processing-overlay{position:fixed;inset:0;background:rgba(17,24,39,.26);z-index:9999;display:none;align-items:center;justify-content:center;backdrop-filter:blur(2px)}
.processing-box{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px 22px;box-shadow:var(--shadow);min-width:240px;text-align:center;font-weight:900}
.processing-spinner{width:26px;height:26px;border-radius:50%;border:4px solid #e5e7eb;border-top-color:#111827;animation:spin .8s linear infinite;margin:0 auto 10px}@keyframes spin{to{transform:rotate(360deg)}}
.processing-progress{display:none;min-width:min(420px,calc(100vw - 76px));text-align:left;font-weight:500}
.processing-box.is-progress .processing-generic,.processing-box.is-progress .processing-hint{display:none}
.processing-box.is-progress .processing-progress{display:block}
.processing-progress-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;font-size:14px}
.processing-progress-message{display:inline-flex;align-items:center;gap:6px;min-width:0;line-height:1.45}
.processing-progress-count{white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--muted);font-weight:500}
.processing-inline-spinner{display:inline-block;flex:none;width:14px;height:14px;border:2px solid #e5e7eb;border-top-color:#1c70d9;border-radius:50%;animation:spin .8s linear infinite}
.processing-progress-track{height:10px;overflow:hidden;border-radius:999px;background:#e7edf5}
.processing-progress-fill{height:100%;border-radius:999px;background:#1c70d9;transition:width .18s ease}
.processing-progress-track.is-waiting .processing-progress-fill{animation:processing-wait 1.4s ease-in-out infinite}
@keyframes processing-wait{0%{transform:translateX(-120%)}100%{transform:translateX(480%)}}
@media(prefers-reduced-motion:reduce){.processing-inline-spinner,.processing-progress-track.is-waiting .processing-progress-fill{animation:none}.processing-progress-track.is-waiting .processing-progress-fill{width:0!important}}
.version-chip{display:inline-flex;border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:4px 8px;font-size:11px;color:#e5e7eb;margin-left:8px}

.credit-badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;font-size:11px;font-weight:900;margin-top:5px;margin-right:4px;border:1px solid transparent;white-space:nowrap}
.credit-badge.warn{background:#fef3c7;color:#92400e;border-color:#fde68a}
.credit-badge.block{background:#fee2e2;color:#991b1b;border-color:#fecaca}
.credit-badge.limit{background:#fef2f2;color:#b91c1c;border-color:#fecaca}
.credit-note{background:#fffbeb;border:1px solid #fde68a;color:#92400e;border-radius:12px;padding:10px;line-height:1.45;margin:10px 0}
.credit-note.block{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.credit-input{min-width:88px;width:88px}



/* v10.60.10.5 search polish + customer risk filter colors */
.search-input{height:40px;min-width:260px;border:1px solid #d0d5dd!important;border-radius:12px!important;padding:0 14px!important;background:#fff!important;box-shadow:0 1px 2px rgba(16,24,40,.04);outline:none;line-height:40px;vertical-align:middle;transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}
.search-input:focus{border-color:#2563eb!important;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.search-input::placeholder{color:transparent}
.toolbar .search-input,.order-toolbar-slim .search-input,.payment-filter .search-input,.customer-searchbar .search-input{height:40px;align-self:center}
.customer-searchbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:10px}
.customer-searchbar .search-input{min-width:340px;max-width:520px;flex:1 1 340px}
.customer-risk-filter{display:inline-flex;gap:6px;align-items:center;flex-wrap:wrap}
.risk-filter-btn{height:40px;border-radius:12px;padding:0 12px;font-weight:900;border:1px solid var(--line);background:#fff;color:#344054;display:inline-flex;align-items:center;gap:5px}
.risk-filter-btn.active{background:#1d4ed8;color:#fff;border-color:#1d4ed8}
.risk-filter-btn.warn{background:#fffbeb;color:#92400e;border-color:#fde68a}
.risk-filter-btn.warn.active{background:#f59e0b;color:#fff;border-color:#f59e0b}
.risk-filter-btn.block{background:#fff7ed;color:#c2410c;border-color:#fed7aa}
.risk-filter-btn.block.active{background:#ea580c;color:#fff;border-color:#ea580c}
.risk-filter-btn.limit{background:#fff;color:#b91c1c;border-color:#fecaca}
.risk-filter-btn.limit.active{background:#dc2626;color:#fff;border-color:#dc2626}
.risk-filter-title{font-size:12px;color:#667085;font-weight:900;margin-left:2px}
tr.customer-row-warn td{background:#fffbeb!important}
tr.customer-row-warn:hover td{background:#fef3c7!important}
tr.customer-row-block td{background:#fff7ed!important}
tr.customer-row-block:hover td{background:#ffedd5!important}


/* v10.60.10.5 order filter polish + checkbox alignment */
.order-toolbar-slim{gap:8px;align-items:center}
.order-toolbar-slim select,.order-toolbar-slim input[type=date]{height:40px;border:1px solid #d0d5dd!important;border-radius:12px!important;padding:0 12px!important;background:#fff!important;box-shadow:0 1px 2px rgba(16,24,40,.04);outline:none;line-height:40px;vertical-align:middle;transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease;color:#111827}
.order-toolbar-slim select:focus,.order-toolbar-slim input[type=date]:focus{border-color:#2563eb!important;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.order-toolbar-slim select{min-width:132px;padding-right:32px!important}
.order-toolbar-slim input[type=date]{min-width:142px}
.filter-date-sep{height:40px;display:inline-flex;align-items:center;color:#667085;font-weight:800}
.check-col,.check-col th,.check-col td{width:52px;text-align:center!important}
th.check-th,td.check-td{text-align:center!important;width:52px;min-width:52px;vertical-align:middle!important}
th.check-th{padding-left:0!important;padding-right:0!important}
td.check-td{padding-left:0!important;padding-right:0!important}
th.check-th input,td.check-td input{display:block;margin:0 auto;width:16px;height:16px}
th.check-label-th{width:58px;min-width:58px;text-align:center!important;padding-left:0!important;padding-right:0!important}
td.check-label-td{width:58px;min-width:58px;text-align:center!important;padding-left:0!important;padding-right:0!important}
td.check-label-td input,th.check-label-th input{display:block;margin:0 auto;width:16px;height:16px}



/* v10.60.11 main dashboard */
.dashboard-page{display:grid;gap:14px}.dash-header{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:2px}.dash-title h2{font-size:26px;margin:0 0 4px}.dash-title p{margin:0;color:#667085;font-size:13px}.dash-chip{display:inline-flex;align-items:center;gap:6px;height:36px;border:1px solid #dbe7ff;background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:0 12px;font-weight:900;font-size:12px}.dash-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.dash-kpi{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:15px;box-shadow:0 8px 20px rgba(16,24,40,.06);min-height:116px}.dash-kpi-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.dash-icon{width:38px;height:38px;border-radius:13px;display:inline-flex;align-items:center;justify-content:center;font-size:19px;background:#eff6ff;color:#1d4ed8}.dash-icon.green{background:#ecfdf3;color:#047857}.dash-icon.purple{background:#f5f3ff;color:#6d28d9}.dash-icon.orange{background:#fff7ed;color:#c2410c}.dash-icon.red{background:#fef2f2;color:#b91c1c}.dash-icon.sky{background:#e0f2fe;color:#0369a1}.dash-kpi label{font-size:12px;color:#667085;font-weight:900}.dash-kpi b{display:block;font-size:21px;letter-spacing:-.02em}.dash-kpi small{display:block;margin-top:7px;color:#667085;font-size:11px}.dash-task-card,.dash-panel{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:16px;box-shadow:0 8px 20px rgba(16,24,40,.06)}.dash-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.dash-section-head h3{margin:0;font-size:16px}.dash-task-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.dash-task{border:1px solid #e5e7eb;border-radius:15px;padding:13px;background:#fbfdff;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left}.dash-task:hover{border-color:#bfdbfe;background:#f8fbff}.dash-task span{font-size:12px;color:#667085;font-weight:900}.dash-task b{font-size:20px}.dash-task em{font-style:normal;color:#1d4ed8;font-weight:900;font-size:12px}.dash-main-grid{display:grid;grid-template-columns:2fr 1fr 1.15fr;gap:14px;align-items:start}.dash-bottom-grid{display:grid;grid-template-columns:2fr 1fr;gap:14px;align-items:start}.dash-chart-wrap{height:248px;border:1px solid #edf1f7;border-radius:14px;background:linear-gradient(180deg,#fff,#fbfdff);padding:8px 8px 0}.dash-chart-svg{width:100%;height:205px;display:block}.dash-chart-labels{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;font-size:11px;color:#667085;text-align:center;margin-top:0}.dash-legend{display:flex;gap:12px;align-items:center;font-size:12px;color:#667085}.dash-legend i{display:inline-block;width:10px;height:10px;border-radius:99px;margin-right:4px;vertical-align:-1px}.dash-legend .order{background:#3b82f6}.dash-legend .pay{background:#10b981}.dash-mini-table{width:100%;border-collapse:separate;border-spacing:0}.dash-mini-table th,.dash-mini-table td{padding:9px 6px;font-size:12px}.dash-mini-table th{background:#f8fafc}.dash-rank{width:26px;height:26px;border-radius:9px;background:#eff6ff;color:#1d4ed8;display:inline-flex;align-items:center;justify-content:center;font-weight:900}.dash-risk-row.warn td{background:#fffbeb!important}.dash-risk-row.block td{background:#fff7ed!important}.dash-risk-row.limit td{background:#fff7f7!important}.dash-badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;font-size:11px;font-weight:900;border:1px solid transparent;white-space:nowrap}.dash-badge.warn{background:#fef3c7;color:#92400e;border-color:#fde68a}.dash-badge.block{background:#ffedd5;color:#c2410c;border-color:#fed7aa}.dash-badge.limit{background:#fee2e2;color:#991b1b;border-color:#fecaca}.dash-progress{height:8px;border-radius:999px;background:#e5e7eb;overflow:hidden;min-width:80px}.dash-progress span{display:block;height:100%;border-radius:999px;background:#3b82f6}.dash-memo-list{margin:0;padding-left:18px;color:#344054;line-height:1.8;font-size:13px}.dash-empty{border:1px dashed #d0d5dd;border-radius:14px;padding:18px;text-align:center;color:#667085;background:#fbfdff}.dash-link{border:none;background:transparent;color:#1d4ed8;font-weight:900;padding:0}.dash-link:hover{text-decoration:underline}.dash-table-scroll{overflow:auto}.dash-table-scroll table{min-width:520px}.side button[data-tab="dashboard"]::before{content:'🏠 ';}
@media(max-width:1500px){.dash-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dash-main-grid{grid-template-columns:1fr}.dash-bottom-grid{grid-template-columns:1fr}.dash-task-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}


/* v10.60.11.2 dashboard polish: sidebar icons, left KPI icons, hover tooltip, editable memo */
.side button{display:flex!important;align-items:center;gap:10px;width:100%;text-align:left}
.side button .side-ico{width:24px;height:24px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;background:#f2f4f7;font-size:14px;flex:0 0 24px}
.side button.active .side-ico{background:rgba(255,255,255,.16);color:#fff}
.side button span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dash-kpi{display:flex!important;align-items:center;gap:13px;padding:16px!important}
.dash-kpi-iconbox{width:46px;height:46px;border-radius:15px;display:inline-flex;align-items:center;justify-content:center;background:#eff6ff;color:#1d4ed8;font-size:22px;flex:0 0 46px}
.dash-kpi-iconbox.green{background:#ecfdf3;color:#047857}.dash-kpi-iconbox.purple{background:#f5f3ff;color:#7c3aed}.dash-kpi-iconbox.orange{background:#fff7ed;color:#c2410c}.dash-kpi-iconbox.red{background:#fef2f2;color:#b42318}.dash-kpi-iconbox.sky{background:#ecfeff;color:#0e7490}
.dash-kpi-body{min-width:0;display:grid;gap:4px}.dash-kpi-body label{font-size:12px;color:#667085;font-weight:900}.dash-kpi-body b{font-size:20px;line-height:1.18}.dash-kpi-body small{font-size:11px;color:#667085;line-height:1.35}
.dash-chart-wrap{position:relative}.dash-chart-svg .dash-hover-zone{cursor:crosshair}.dash-chart-svg .dash-hover-zone:hover{fill:rgba(37,99,235,.045)}
.dash-trend-tooltip{position:fixed;z-index:1000;pointer-events:none;background:#111827;color:#fff;border-radius:12px;padding:10px 12px;box-shadow:0 12px 30px rgba(15,23,42,.24);font-size:12px;line-height:1.5;min-width:154px}
.dash-trend-tooltip b{display:block;margin-bottom:4px;font-size:13px}.dash-trend-tooltip .order{color:#bfdbfe}.dash-trend-tooltip .pay{color:#bbf7d0}
.dash-memo-toolbar{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-top:12px}.dash-memo-edit{width:100%;min-height:190px;border:1px solid var(--line);border-radius:14px;padding:12px;background:#fff;line-height:1.55;resize:vertical}.dash-memo-list li{white-space:normal}


/* v10.60.11.2 dashboard layout/product period/modified modal/negative balance cancel guard */
.side button[data-tab="dashboard"]::before{content:''!important;display:none!important}
.dash-content-grid{display:grid;grid-template-columns:minmax(0,1.58fr) minmax(340px,.92fr);gap:14px;align-items:start}
.dash-left-stack,.dash-right-stack{display:grid;gap:14px}
.dash-main-grid,.dash-bottom-grid{display:block!important}
.dash-product-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.dash-period-btn{border:1px solid #d0d5dd;background:#fff;color:#344054;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:900;line-height:1}
.dash-period-btn.active{background:#1d4ed8;color:#fff;border-color:#1d4ed8;box-shadow:0 6px 14px rgba(29,78,216,.16)}
.dash-month-select{border:1px solid #d0d5dd;background:#fff;border-radius:999px;padding:6px 28px 6px 10px;font-size:12px;font-weight:900;color:#344054;height:30px}
.dash-product-table{table-layout:fixed;min-width:0!important}
.dash-product-table th:nth-child(1),.dash-product-table td:nth-child(1){width:48px;text-align:center}
.dash-product-table th:nth-child(2),.dash-product-table td:nth-child(2){width:86px}
.dash-product-table th:nth-child(3),.dash-product-table td:nth-child(3){width:35%}
.dash-product-table th:nth-child(4),.dash-product-table td:nth-child(4){width:80px}
.dash-product-table th:nth-child(5),.dash-product-table td:nth-child(5){width:124px}
.dash-product-table th:nth-child(6),.dash-product-table td:nth-child(6){width:78px}
.dash-product-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:850}
.dash-product-table .dash-progress{width:58px;min-width:58px}
.modified-card-list{display:grid;gap:10px;margin-top:12px}
.modified-card{border:1px solid #e4e7ec;background:#fff;border-radius:14px;padding:12px;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}
.modified-card:hover{border-color:#bcd1ff;box-shadow:0 8px 22px rgba(29,78,216,.08)}
.modified-card h4{margin:0 0 4px;font-size:15px}
.modified-meta{display:flex;gap:8px;flex-wrap:wrap;color:#667085;font-size:12px;line-height:1.4}
.modified-chip{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;background:#f2f4f7;color:#344054;font-weight:850;font-size:12px}
.modified-detail-head{border:1px solid #e4e7ec;border-radius:14px;background:#f8fafc;padding:12px;margin:8px 0 12px}
.modified-detail-head h3{margin:0 0 8px}.modified-diff-list{display:grid;gap:10px}.modified-diff{border:1px solid #e4e7ec;border-radius:14px;background:#fff;padding:12px}.modified-diff-title{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:8px}.modified-diff-title b{font-size:14px}.modified-diff-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.modified-before,.modified-after{border-radius:12px;padding:10px;min-height:44px;white-space:pre-wrap;word-break:break-word;font-size:13px;line-height:1.45}.modified-before{background:#fff7ed;border:1px solid #fed7aa}.modified-after{background:#ecfdf3;border:1px solid #bbf7d0}.modified-before label,.modified-after label{display:block;font-size:11px;font-weight:900;color:#667085;margin-bottom:4px}.modified-memo{margin-top:8px;color:#475467;background:#f9fafb;border-radius:10px;padding:8px;font-size:12px;white-space:pre-wrap}.neg-cancel-warning{white-space:pre-line;line-height:1.55}
@media(max-width:1500px){.dash-content-grid{grid-template-columns:1fr}.dash-right-stack{grid-template-columns:1fr}.dash-product-table{min-width:680px!important}}



/* v10.60.11.4 dashboard 3-column layout + year/month product filter + memo line cards */
.dash-content-grid{grid-template-columns:minmax(360px,1.04fr) minmax(320px,.92fr) minmax(280px,.74fr)!important;gap:14px!important;align-items:start!important}
.dash-left-stack,.dash-center-stack,.dash-memo-stack{display:grid;gap:14px;align-items:start;min-width:0}
.dash-memo-stack .dash-panel{min-height:100%}
.dash-product-table th:nth-child(2),.dash-product-table td:nth-child(2){width:72px!important}
.dash-product-table th:nth-child(3),.dash-product-table td:nth-child(3){width:28%!important}
.dash-product-table th:nth-child(4),.dash-product-table td:nth-child(4){width:64px!important}
.dash-product-table th:nth-child(5),.dash-product-table td:nth-child(5){width:108px!important}
.dash-product-table th:nth-child(6),.dash-product-table td:nth-child(6){width:54px!important}
.dash-product-table .dash-progress{width:42px!important;min-width:42px!important}
.dash-memo-lines{display:grid;gap:8px}
.dash-memo-line{border:1px solid #e5e7eb;background:#f8fafc;border-radius:12px;padding:10px 11px;color:#344054;font-size:13px;line-height:1.45;word-break:break-word}
.dash-memo-line::before{content:'•';font-weight:900;color:#1d4ed8;margin-right:7px}
@media(max-width:1500px){.dash-content-grid{grid-template-columns:1fr!important}.dash-product-table{min-width:620px!important}}


/* v10.60.11.4 modified-order compare modal + customer group filter */
.customer-searchbar .search-input{max-width:360px;flex:0 1 360px}
.customer-group-filter{margin-left:22px;display:inline-flex;align-items:center;gap:8px}
.customer-group-filter b{font-size:12px;color:#475467}
.customer-group-filter select{height:38px;border:1px solid #d0d5dd;border-radius:999px;padding:0 30px 0 12px;background:#fff;font-weight:850;color:#344054}
.customer-pay-status{display:flex;gap:5px;flex-wrap:wrap;align-items:center}
.customer-pay-status .credit-badge.ok{background:#ecfdf3;color:#047857;border-color:#bbf7d0}
.modal .panel.modified-list-panel{width:min(1240px,95vw)}
.modal .panel.modified-compare-panel{width:min(1500px,96vw);padding:0;max-height:88vh;border-radius:7px}
.mod2-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #e5e7eb;background:#fff}
.mod2-header h2{margin:0;font-size:22px}.mod2-close{border:none;background:transparent;font-size:28px;color:#475467;line-height:1}
.mod2-summary{display:grid;grid-template-columns:1fr 1.15fr 1.05fr .9fr .9fr 1.25fr;gap:18px;padding:16px 24px;border-bottom:1px solid #e5e7eb;background:#fbfdff}
.mod2-summary label{display:block;color:#667085;font-size:12px;margin-bottom:7px}.mod2-summary b{font-size:14px}.mod2-type-badges{display:flex;gap:5px;flex-wrap:wrap}.mod2-badge{display:inline-flex;align-items:center;border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:6px;padding:4px 8px;font-weight:900;font-size:12px}.mod2-badge.green{border-color:#bbf7d0;background:#ecfdf3;color:#047857}.mod2-badge.gray{border-color:#d0d5dd;background:#f2f4f7;color:#344054}
.mod2-body{padding:16px 16px 0;background:#fff}.mod2-columns{display:grid;grid-template-columns:1fr 46px 1fr;gap:16px;align-items:start}.mod2-col-title{height:44px;border:1px solid #dbe4f0;border-radius:5px;display:flex;align-items:center;justify-content:center;font-weight:950;font-size:16px}.mod2-before-title{background:#eff6ff;color:#1d4ed8}.mod2-after-title{background:#ecfdf3;color:#047857}.mod2-arrow{font-size:30px;font-weight:900;text-align:center;padding-top:8px;color:#111827}.mod2-section{margin-top:14px}.mod2-section h3{font-size:15px;margin:0 0 9px;color:#1f2937}.mod2-table{width:100%;border-collapse:collapse;border:1px solid #d9dee7;border-radius:6px;overflow:hidden}.mod2-table th,.mod2-table td{padding:10px 11px;border:1px solid #d9dee7;font-size:13px;white-space:normal}.mod2-table th{background:#f8fafc;color:#111827;text-align:center}.mod2-table .kv{width:110px;background:#f8fafc;font-weight:850;color:#344054}.mod2-table tr.changed td,.mod2-table td.changed{background:#fff4cc!important}.mod2-table tr.added td{background:#dcfce7!important;color:#14532d}.mod2-table tr.removed td{background:#fee2e2!important;color:#7f1d1d;text-decoration:line-through}.mod2-table tr.qty-changed td{background:#fff4cc!important}.mod2-note{display:inline-flex;border:1px solid #f59e0b;background:#fff7ed;color:#92400e;border-radius:6px;padding:3px 7px;font-weight:900;font-size:12px}.mod2-total{display:grid;grid-template-columns:1fr 1fr 1fr;border:1px solid #d9dee7;border-radius:6px;overflow:hidden;margin:18px 6px 0}.mod2-total>div{padding:14px;text-align:center;background:#f8fafc;border-right:1px solid #d9dee7}.mod2-total>div:nth-child(2){background:#ecfdf3}.mod2-total>div:last-child{border-right:0;background:#fff}.mod2-total label{display:block;color:#667085;margin-bottom:6px}.mod2-total b{font-size:18px;color:#1d4ed8}.mod2-total .plus{color:#e11d48}.mod2-footer{display:flex;justify-content:flex-end;gap:8px;padding:16px 20px 22px;background:#fff}.modified-card.v4{grid-template-columns:1fr auto;padding:14px 16px}.modified-card-grid{display:grid;grid-template-columns:1.1fr 1.1fr 1.2fr .9fr;gap:10px;align-items:center}.modified-card-grid .full{grid-column:1 / span 2}.modified-card-grid label{display:block;font-size:11px;color:#667085;margin-bottom:3px}.modified-card-grid b{font-size:13px}.modified-tabs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}.modified-tab-btn{border:1px solid #d0d5dd;background:#fff;color:#344054;border-radius:999px;padding:8px 12px;font-weight:900;cursor:pointer}.modified-tab-btn.active{background:#155eef;border-color:#155eef;color:#fff}.modified-tab-btn.done.active{background:#027a48;border-color:#027a48}.modified-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.modified-help{background:#f8fafc;border:1px solid #e4e7ec;border-radius:12px;padding:10px 12px;color:#667085;font-size:13px;line-height:1.45}.modified-ack-info{display:inline-flex;align-items:center;border-radius:999px;background:#ecfdf3;color:#027a48;padding:5px 8px;font-weight:900;font-size:12px}.modified-unack-info{display:inline-flex;align-items:center;border-radius:999px;background:#fff7ed;color:#b54708;padding:5px 8px;font-weight:900;font-size:12px}
.dash-year-select,.dash-only-month-select{border:1px solid #d0d5dd;background:#fff;border-radius:999px;padding:6px 25px 6px 10px;font-size:12px;font-weight:900;color:#344054;height:30px}


/* v10.60.12 customer ID lock + direct customer add modal */
.customer-id-readonly{background:#f8fafc!important;color:#64748b!important;font-weight:850;cursor:not-allowed}
.customer-add-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.customer-add-grid .full{grid-column:1 / -1}
.customer-add-card{box-shadow:none;margin:12px 0;padding:14px;border-radius:14px}
.customer-add-card label{display:block;font-size:12px;color:#475467;font-weight:900;margin:8px 0 5px}
.customer-add-card input,.customer-add-card select{width:100%;height:40px;border:1px solid #d0d5dd;border-radius:12px;padding:8px 10px;background:#fff}
.customer-add-card input:focus,.customer-add-card select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.customer-add-note{background:#f8fafc;border:1px solid #e5e7eb;border-radius:12px;padding:10px 12px;color:#475467;font-size:12px;line-height:1.55}



/* v10.60.13 customer price modal polish + customer group dropdown */
.price-modal-table .price-check-col{width:52px;text-align:center!important;vertical-align:middle!important;padding-left:0!important;padding-right:0!important}
.price-modal-table .price-check-col input{display:block;margin:0 auto;width:16px;height:16px}
.price-modal-table .priceInput{height:40px;min-width:110px;width:120px;border:1px solid #d0d5dd!important;border-radius:12px!important;padding:0 12px!important;background:#fff!important;box-shadow:0 1px 2px rgba(16,24,40,.04);outline:none;line-height:40px;text-align:right;transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}
.price-modal-table .priceInput:focus{border-color:#2563eb!important;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.customer-group-select{width:100%;min-width:112px;border:1px solid #e5e7eb;border-radius:8px;padding:6px;background:#fff;color:#111827}
.customer-add-grid select{width:100%;border:1px solid var(--line);border-radius:12px;padding:11px;background:#fff}


/* v10.60.13 customer exception memo + compact customer DB */
.price-customer-table th,.price-customer-table td{padding:6px 7px!important;vertical-align:middle!important;line-height:1.25}
.price-customer-table .price-check-col{width:42px;text-align:center!important;padding-left:0!important;padding-right:0!important}
.price-customer-table .price-name-col{width:150px;max-width:150px}
.price-customer-table .price-name-cell{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:850}
.price-customer-table .price-code-col{width:86px}.price-customer-table .price-group-col{width:116px}.price-customer-table .price-count-col{width:78px;text-align:center}.price-customer-table .price-action-col{width:124px}.price-customer-table .price-exception-col{width:106px;text-align:center!important}.price-customer-table .price-note-col{min-width:260px;width:34%}
.price-customer-table .price-exception-row td{background:#fffbeb!important}
.price-customer-table .price-exception-row:hover td{background:#fef3c7!important}
.price-exception-check{width:17px;height:17px;display:block;margin:0 auto}
.price-exception-note{width:100%;height:36px;border:1px solid #d0d5dd;border-radius:12px;padding:0 12px;background:#fff;outline:none;box-shadow:0 1px 2px rgba(16,24,40,.04);line-height:36px;transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}
.price-exception-note:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.price-exception-row .price-exception-note{background:#fffdf5}
.price-exception-help{display:inline-flex;align-items:center;gap:6px;border:1px solid #fde68a;background:#fffbeb;color:#92400e;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:900}
.customer-pw-col{width:90px}.customer-pw-cell{text-align:center;white-space:nowrap}.customer-pw-reset-only{padding:6px 8px!important;font-size:12px!important;border-radius:9px!important;white-space:nowrap}
.customer-group-db-col{min-width:150px;width:155px}.customer-group-db-cell{min-width:150px}.customer-group-db-cell .customer-group-select{min-width:145px;height:32px;padding:5px 8px;border-radius:9px}
.compact td.customer-name-db-cell input{min-width:130px}.compact td.customer-address-db-cell input{min-width:220px}

/* v10.60.12 report page + hidden error diagnostics */
.report-page{display:grid;gap:14px}.report-header{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.report-title h2{font-size:26px;margin:0 0 4px}.report-title p{margin:0;color:#667085;font-size:13px}.report-filter{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:14px 16px;box-shadow:0 8px 20px rgba(16,24,40,.06)}.report-filter .toolbar{gap:7px}.report-chip-btn{height:34px;border:1px solid #d0d5dd;background:#fff;color:#344054;border-radius:999px;padding:0 13px;font-weight:900}.report-chip-btn.active{border-color:#2563eb;background:#eff6ff;color:#1d4ed8}.report-date{height:34px;border:1px solid #d0d5dd;border-radius:999px;padding:0 11px;background:#fff}.report-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.report-kpi{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:15px;box-shadow:0 8px 20px rgba(16,24,40,.06);min-height:105px}.report-kpi label{display:block;font-size:12px;color:#667085;font-weight:900;margin-bottom:6px}.report-kpi b{font-size:21px;letter-spacing:-.02em}.report-kpi small{display:block;margin-top:8px;color:#667085;font-size:11px}.report-grid{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:14px;align-items:start}.report-panel{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:16px;box-shadow:0 8px 20px rgba(16,24,40,.06)}.report-panel h3{margin:0;font-size:16px}.report-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.report-muted{font-size:12px;color:#667085}.report-bars{display:grid;gap:8px}.report-bar-row{display:grid;grid-template-columns:76px 1fr 92px;gap:10px;align-items:center;font-size:12px}.report-bar-label{color:#475467;font-weight:850}.report-bar-bg{height:12px;background:#edf1f7;border-radius:999px;overflow:hidden}.report-bar-fill{height:100%;border-radius:999px;background:#3b82f6}.report-bar-fill.pay{background:#10b981}.report-bar-value{text-align:right;font-weight:900;color:#344054}.report-mini-table{width:100%;border-collapse:separate;border-spacing:0}.report-mini-table th,.report-mini-table td{padding:9px 6px;font-size:12px}.report-mini-table th{background:#f8fafc}.report-rank{width:26px;height:26px;border-radius:9px;background:#eff6ff;color:#1d4ed8;display:inline-flex;align-items:center;justify-content:center;font-weight:900}.report-risk td{background:#fff7ed!important}.report-note{border:1px solid #dbe7ff;background:#eff6ff;color:#1d4ed8;border-radius:14px;padding:12px 14px;font-size:12px;font-weight:800;line-height:1.6}.settings-diagnostics-card{margin-top:16px;border-top:1px solid #e5e7eb;padding-top:14px}.settings-diagnostics-card .btn2{font-size:12px;padding:8px 10px}.side button[data-tab="errors"]{display:none!important}
@media(max-width:1500px){.report-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.report-grid{grid-template-columns:1fr}.report-panel{overflow:auto}}


.product-db-table .keyword-input{font-size:12px;line-height:1.25;min-width:0}
/* v10.60.18_RC3: list paging controls */
.pager{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:12px 0 0;padding:10px 12px;border:1px solid #e5e7eb;background:#fbfdff;border-radius:14px}
.pager .pager-left,.pager .pager-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pager button{height:32px;border:1px solid #d0d5dd;background:#fff;color:#344054;border-radius:10px;padding:0 10px;font-weight:900}
.pager button:disabled{opacity:.45;cursor:not-allowed;background:#f2f4f7}
.pager select{height:32px;border:1px solid #d0d5dd;border-radius:10px;background:#fff;padding:0 8px;font-weight:800}
.pager .pager-info{font-size:12px;color:#475467;font-weight:800}
.pager .pager-strong{color:#1d4ed8;font-weight:900}

/* v10.60.22.3 상품그룹 관리 UI */
.product-group-cell{width:116px!important;min-width:116px!important;max-width:116px!important;text-align:center!important;vertical-align:middle!important;white-space:nowrap;padding-left:4px!important;padding-right:4px!important}
.product-group-inline{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;height:30px;white-space:nowrap}
.product-group-assign-btn{height:28px!important;min-width:64px!important;padding:0 8px!important;font-size:12px!important;border-radius:9px!important;white-space:nowrap}
.product-group-count{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:22px;padding:0 6px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:900;line-height:1;white-space:nowrap}
.product-group-filter{min-width:170px}
.product-group-warning{background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;padding:10px 12px;color:#9a3412;margin:10px 0}
.product-group-list{display:grid;gap:8px;margin-top:10px}
.product-group-row{display:grid;grid-template-columns:minmax(180px,1fr) 72px 72px;gap:8px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:8px;background:#fff}
.product-group-assign-list{max-height:420px;overflow:auto;border:1px solid var(--line);border-radius:14px;margin:12px 0;background:#fff}
.product-group-assign-head{display:grid;grid-template-columns:54px minmax(0,1fr);gap:8px;align-items:center;padding:9px 12px;border-bottom:1px solid var(--line);background:#f8fafc;color:#344054;font-size:12px;font-weight:950;text-align:center;position:sticky;top:0;z-index:1}
.product-group-assign-head span:nth-child(2){text-align:left}
.product-group-assign-row{display:grid;grid-template-columns:54px minmax(0,1fr);gap:8px;align-items:center;padding:9px 12px;border-bottom:1px solid var(--line)}
.product-group-assign-row:last-child{border-bottom:0}
.product-group-assign-row input{display:block;margin:0 auto;width:16px;height:16px}
.product-group-assign-row label{font-weight:850;cursor:pointer}
.product-group-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:11px;font-weight:900}
.price-modal-toolbar{align-items:center}
.price-modal-toolbar .search-input{min-width:240px}
@media (max-width:900px){.product-group-row{grid-template-columns:1fr}.price-modal-toolbar .search-input{min-width:0}}


/* v10.60.22.6 거래처 원장 메뉴 */
.ledger-page{display:grid;gap:14px}.ledger-header{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.ledger-title h2{font-size:25px;margin:0 0 4px}.ledger-title p{margin:0;color:#667085;font-size:13px}.ledger-filter{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:14px 16px;box-shadow:0 8px 20px rgba(16,24,40,.06)}.ledger-filter select{min-width:270px}.ledger-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.ledger-kpi{background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:14px;box-shadow:0 8px 20px rgba(16,24,40,.06);min-height:92px}.ledger-kpi label{display:block;font-size:12px;color:#667085;font-weight:900;margin-bottom:6px}.ledger-kpi b{font-size:20px}.ledger-kpi small{display:block;margin-top:5px;color:#667085;font-size:11px}.ledger-main-grid{display:grid;grid-template-columns:1.35fr .9fr;gap:14px;align-items:start}.ledger-table-scroll{overflow:auto;max-height:560px;border:1px solid #e5e7eb;border-radius:14px;background:#fff}.ledger-table-scroll table{min-width:900px}.ledger-delta-plus{color:#b91c1c;font-weight:900}.ledger-delta-minus{color:#047857;font-weight:900}.ledger-event-order{background:#eff6ff;color:#1d4ed8}.ledger-event-payment{background:#ecfdf3;color:#047857}.ledger-event-adjust{background:#fff7ed;color:#c2410c}.ledger-event{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;font-size:11px;font-weight:900;white-space:nowrap}.ledger-empty{border:1px dashed #d0d5dd;border-radius:14px;padding:20px;text-align:center;color:#667085;background:#fbfdff}.ledger-side-list{display:grid;gap:10px}.ledger-mini-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:13px;box-shadow:0 8px 20px rgba(16,24,40,.05)}.ledger-mini-card h3{margin:0 0 10px;font-size:16px}.ledger-note{background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:12px;color:#475467;font-size:12px;line-height:1.6}


/* v10.60.22.7 거래처 원장 = 거래처앱과 같은 내용 보기 */
.customer-ledger-preview{max-width:980px;margin:0 auto;display:grid;gap:14px}
.customer-ledger-preview .customer-like-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.customer-ledger-preview .balance-alert{background:linear-gradient(135deg,#111827,#374151);color:#fff;border:0}
.customer-ledger-preview .balance-alert .muted{color:#d1d5db}
.customer-ledger-preview .balance-alert b{font-size:24px}
.customer-ledger-preview .settle-summary{background:#f9fafb;border:1px solid #e5e7eb;border-radius:14px;padding:10px;margin-top:8px}
.customer-ledger-preview .line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px dashed #e5e7eb}
.customer-ledger-preview .line:last-child{border-bottom:0}
.customer-ledger-preview .settle-scroll{overflow:auto;border:1px solid #e5e7eb;border-radius:14px;background:#fff}
.customer-ledger-preview .settle-table{width:100%;border-collapse:collapse;font-size:13px}
.customer-ledger-preview .settle-table th{background:#f8fafc;color:#475467;font-weight:900;padding:9px 10px;border-bottom:1px solid #e5e7eb;text-align:left;white-space:nowrap}
.customer-ledger-preview .settle-table td{padding:9px 10px;border-bottom:1px solid #f1f5f9;vertical-align:top}
.customer-ledger-preview .settle-table tr:last-child td{border-bottom:0}
.customer-ledger-preview .settle-table .num{text-align:right;white-space:nowrap}
.customer-ledger-preview .settle-table .sum td{background:#f9fafb;font-weight:900}
.customer-ledger-preview .pay-card{border:1px solid #e5e7eb;border-radius:14px;background:#fff;padding:12px;margin-bottom:8px}
.customer-ledger-preview .psub{font-size:12px;color:#667085;margin-top:4px}
.customer-ledger-preview .customer-view-note{font-size:12px;color:#667085}
@media (max-width:900px){.customer-ledger-preview{max-width:none}.customer-ledger-preview .settle-table{font-size:12px}}


/* v10.60.22.8 거래처 원장 선택영역 정리 */
.ledger-select-bar{
  display:flex;
  align-items:flex-end;
  gap:8px;
  flex-wrap:nowrap;
  overflow-x:auto;
  padding-bottom:2px;
}
.ledger-customer-box{width:180px;min-width:180px}
.ledger-customer-display{
  width:100%;
  height:40px;
  border:1px solid #d0d5dd;
  border-radius:12px;
  background:#f9fafb;
  padding:0 11px;
  font-weight:900;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ledger-ym-field{width:118px;min-width:118px}
.ledger-pick-modal .search-row{display:flex;gap:8px;align-items:center;margin:10px 0}
.ledger-pick-modal .search-row input{flex:1}
.ledger-customer-table-wrap{max-height:520px;overflow:auto;border:1px solid #e5e7eb;border-radius:14px;background:#fff}
.ledger-customer-table{width:100%;border-collapse:collapse;font-size:13px}
.ledger-customer-table th{
  background:#f8fafc;
  color:#475467;
  font-weight:950;
  padding:9px 10px;
  border-bottom:1px solid #e5e7eb;
  text-align:left;
  position:sticky;
  top:0;
  z-index:1;
}
.ledger-customer-table td{padding:9px 10px;border-bottom:1px solid #f1f5f9}
.ledger-customer-table tr:last-child td{border-bottom:0}
.ledger-customer-table th:last-child,.ledger-customer-table td:last-child{text-align:center;width:82px}
@media (max-width:900px){
  .ledger-select-bar{flex-wrap:wrap;overflow-x:visible}
  .ledger-customer-box{width:100%;min-width:0}
  .ledger-ym-field{width:calc(50% - 4px);min-width:120px}
}


/* v10.60.22.9 거래처 원장 상단 정렬 + 이미지 다운로드 */
.ledger-select-bar{align-items:flex-end!important;gap:8px!important}
.ledger-select-bar .field{margin:0!important}
.ledger-select-bar label{display:block;height:18px;line-height:18px;margin:0 0 5px!important}
.ledger-select-bar select,
.ledger-customer-display{
  height:42px!important;
  min-height:42px!important;
  line-height:40px!important;
  box-sizing:border-box!important;
}
.ledger-select-bar .btn,
.ledger-select-bar .btn2{
  height:42px!important;
  min-height:42px!important;
  padding:0 14px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  align-self:flex-end!important;
  margin:0!important;
  white-space:nowrap;
}
.ledger-select-bar .btn{border-radius:12px!important}
.ledger-customer-box{width:180px!important;min-width:180px!important}
.ledger-ym-field{width:118px!important;min-width:118px!important}
#ledgerImageArea{
  background:#fff;
  border-radius:18px;
}
.ledger-image-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.ledger-image-title h2{margin:0;font-size:20px}
.ledger-image-title .muted{margin-top:4px}
@media (max-width:900px){
  .ledger-select-bar{align-items:flex-end!important}
  .ledger-select-bar .btn,.ledger-select-bar .btn2{height:40px!important;min-height:40px!important}
  .ledger-customer-box{width:100%!important;min-width:0!important}
  .ledger-ym-field{width:calc(50% - 4px)!important;min-width:120px!important}
}


/* v10.60.22.10 거래처 원장 정산요약 이미지 보정 */
.ledger-summary-card{
  border:1px solid #d0d5dd;
  border-radius:16px;
  background:#fff;
  padding:14px;
  margin:12px 0 18px;
}
.ledger-summary-card h3{margin:0 0 10px;font-size:20px}
.ledger-summary-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}
.ledger-summary-item{
  border:1px solid #e5e7eb;
  background:#f9fafb;
  border-radius:12px;
  padding:10px;
}
.ledger-summary-item .label{
  font-size:12px;
  color:#667085;
  font-weight:800;
  margin-bottom:5px;
}
.ledger-summary-item .value{
  font-size:16px;
  font-weight:950;
  color:#111827;
  white-space:nowrap;
}
.ledger-summary-item.danger .value{color:#dc2626}
.ledger-summary-note{
  margin:9px 0 0;
  font-size:12px;
  color:#667085;
}
#ledgerImageArea .balance-alert{display:none!important}
@media (max-width:900px){
  .ledger-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* v10.60.22.7 출고기록 품목별 개별관리 + 이카운트 건별 이력취소 */
.shipment-item-row .muted{font-size:12px}
.ecount-state{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:900;white-space:nowrap}
.ecount-state.active{background:#dcfce7;color:#166534;border:1px solid #bbf7d0}
.ecount-state.pending{background:#fff7ed;color:#c2410c;border:1px solid #fed7aa}
.ecount-state.canceled{background:#f3f4f6;color:#475467;border:1px solid #d0d5dd}
.shipment-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.shipment-actions .btn2,.shipment-actions .danger{height:30px;padding:0 9px;font-size:12px;border-radius:9px;white-space:nowrap}
.batch-item-canceled td{background:#f9fafb!important;color:#667085}
.batch-item-canceled .muted{color:#98a2b3}
.detail-table .danger,.detail-table .btn2{height:28px;padding:0 8px;font-size:12px;border-radius:8px}
.product-db-table .courier-name-input:disabled{background:#e5e7eb;color:#9ca3af;cursor:not-allowed;border-color:#d1d5db}
.product-db-table select[data-f="box_count"]{min-width:78px}

/* ADMIN_MANUAL_ORDER_DATE_UI_V1 */
.admin-manual-modal{display:grid;gap:14px}.admin-manual-modal h2{margin:0 0 5px;font-size:22px}.admin-manual-modal p{margin:0}.admin-manual-card{border:1px solid #e4e7ec;background:#fbfdff;border-radius:16px;padding:16px}.admin-manual-card h3{margin:0 0 12px;font-size:15px}.admin-manual-fields{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(180px,.55fr);gap:12px}.admin-manual-fields.two{grid-template-columns:1fr 1fr}.admin-manual-field{display:flex;flex-direction:column;gap:6px;min-width:0}.admin-manual-field.full{grid-column:1/-1}.admin-manual-field label{font-size:12px;color:#475467;font-weight:900}.admin-manual-field input,.admin-manual-field select,.admin-manual-field textarea,.admin-manual-productbar input,.admin-manual-productbar select,.admin-manual-items input{width:100%;border:1px solid #d0d5dd;border-radius:12px;background:#fff;color:#111827;padding:0 12px;outline:none;box-shadow:0 1px 2px rgba(16,24,40,.04);transition:border-color .16s ease,box-shadow .16s ease}.admin-manual-field input,.admin-manual-field select,.admin-manual-productbar input,.admin-manual-productbar select,.admin-manual-items input{height:40px}.admin-manual-field textarea{min-height:72px;padding:10px 12px;resize:vertical;line-height:1.45}.admin-manual-field input:focus,.admin-manual-field select:focus,.admin-manual-field textarea:focus,.admin-manual-productbar input:focus,.admin-manual-productbar select:focus,.admin-manual-items input:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}.admin-manual-productbar{display:grid;grid-template-columns:minmax(0,1fr) 84px auto;gap:8px;align-items:end;margin-bottom:12px}.admin-manual-productbar .btn2{height:40px;padding:0 14px;white-space:nowrap}.admin-manual-items{border:1px solid #e4e7ec;border-radius:13px;overflow:hidden;background:#fff}.admin-manual-items table{border-radius:0}.admin-manual-items th,.admin-manual-items td{padding:8px 9px;vertical-align:middle}.admin-manual-items th{background:#f8fafc}.admin-manual-items th:nth-child(2),.admin-manual-items td:nth-child(2){width:92px;text-align:center}.admin-manual-items th:nth-child(3),.admin-manual-items td:nth-child(3),.admin-manual-items th:nth-child(4),.admin-manual-items td:nth-child(4){width:120px;text-align:right}.admin-manual-items th:nth-child(5),.admin-manual-items td:nth-child(5){width:72px;text-align:center}.admin-manual-items .admin-manual-qty{width:72px!important;min-width:72px!important;text-align:center;padding:0 7px!important;margin:0 auto}.admin-manual-totalbar{display:flex;justify-content:flex-end;align-items:center;margin-top:12px;padding-top:10px;border-top:1px solid #e4e7ec}.admin-manual-totalbar b{font-size:16px}.admin-manual-actions{display:flex;justify-content:flex-end;gap:8px}.admin-manual-actions .btn,.admin-manual-actions .btn2{height:40px;padding:0 16px}.admin-manual-date-note{font-size:11px;color:#667085;line-height:1.35}@media(max-width:760px){.admin-manual-fields,.admin-manual-fields.two{grid-template-columns:1fr}.admin-manual-field.full{grid-column:auto}.admin-manual-productbar{grid-template-columns:1fr 78px}.admin-manual-productbar .btn2{grid-column:1/-1}.admin-manual-items{overflow:auto}.admin-manual-items table{min-width:620px}}

/* GROUP_PRICING_V1 */
.gp-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}.gp-head h2{margin:0 0 5px;font-size:23px}.gp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gp-group-card{border:1px solid var(--line);border-radius:16px;background:#fff;padding:16px;display:grid;gap:12px}.gp-group-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.gp-group-title h3{margin:0;font-size:18px}.gp-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.gp-metric{border:1px solid #e5e7eb;background:#f8fafc;border-radius:12px;padding:9px;text-align:center}.gp-metric b{display:block;font-size:17px}.gp-metric span{font-size:11px;color:#667085;font-weight:800}.gp-ref{font-size:12px;color:#667085}.gp-panel{width:min(1180px,96vw)!important}.gp-transfer{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:12px;margin-top:12px}.gp-transfer-col{border:1px solid var(--line);border-radius:14px;background:#fbfdff;overflow:hidden}.gp-transfer-head{padding:12px;border-bottom:1px solid var(--line);background:#f8fafc;display:flex;align-items:center;justify-content:space-between;gap:8px}.gp-transfer-head h3{margin:0;font-size:15px}.gp-search{width:190px!important;height:36px!important}.gp-list{max-height:380px;overflow:auto;padding:8px}.gp-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid #e5e7eb;border-radius:11px;background:#fff;padding:8px 9px;margin-bottom:6px}.gp-row.selected{grid-template-columns:minmax(0,1fr) 126px auto}.gp-row .name{font-weight:850;line-height:1.28;white-space:normal}.gp-row .sub{font-size:11px;color:#667085;margin-top:3px}.gp-price{width:118px!important;height:34px!important;text-align:right;border:1px solid #d0d5dd;border-radius:9px;padding:0 8px}.gp-mini-btn{height:32px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:0 10px;font-weight:900}.gp-mini-btn.add{color:#1d4ed8;border-color:#bfdbfe;background:#eff6ff}.gp-mini-btn.remove{color:#b42318;border-color:#fecaca;background:#fef3f2}.gp-customer-table td,.gp-customer-table th{padding:8px}.gp-extra-badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:900;background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.gp-extra-badge.zero{background:#f8fafc;color:#667085;border-color:#e5e7eb}.gp-note{background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:10px 12px;color:#667085;font-size:12px;line-height:1.5}.gp-warn{background:#fffbeb;border-color:#fde68a;color:#92400e}.gp-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.gp-empty{padding:22px;text-align:center;color:#667085}.gp-other-use{display:inline-flex;border-radius:999px;padding:2px 7px;background:#fef3c7;color:#92400e;font-size:10px;font-weight:900;margin-left:5px}.gp-loading{text-align:center;padding:34px;color:#667085}@media(max-width:900px){.gp-grid,.gp-transfer{grid-template-columns:1fr}.gp-metrics{grid-template-columns:repeat(2,1fr)}}

/* v10.60.22.13 ECOUNT 입금 엑셀 자동반영 */
.ecount-import-card{border:1px solid #dbeafe;background:linear-gradient(180deg,#f8fbff,#fff)}
.ecount-import-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ecount-import-actions input[type=file]{max-width:360px}
.ecount-import-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin-top:12px}
.ecount-import-kpi{border:1px solid #e5e7eb;border-radius:12px;padding:9px 10px;background:#fff}
.ecount-import-kpi label{display:block;font-size:11px;color:#667085;font-weight:800;margin-bottom:3px}
.ecount-import-kpi b{font-size:17px}
.ecount-import-table-wrap{margin-top:12px;max-height:360px;overflow:auto;border:1px solid #e5e7eb;border-radius:12px;background:#fff}
.ecount-import-table-wrap table{min-width:960px}
.ecount-import-badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 7px;font-size:11px;font-weight:900;white-space:nowrap}
.ecount-import-badge.ready,.ecount-import-badge.applied{background:#ecfdf3;color:#047857}
.ecount-import-badge.duplicate{background:#eff6ff;color:#1d4ed8}
.ecount-import-badge.skip{background:#f3f4f6;color:#475467}
.ecount-import-badge.warn{background:#fff7ed;color:#c2410c}
.ecount-import-badge.error{background:#fef2f2;color:#b91c1c}
@media (max-width:900px){.ecount-import-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* RETURN_REGISTRATION_V1 */
.return-order-badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;margin-top:5px;font-size:11px;font-weight:900;background:#fff1f2;color:#be123c;border:1px solid #fecdd3}.return-order-badge.soft{background:#f8fafc;color:#64748b;border-color:#e2e8f0}.return-order-row{background:#fffafa}.return-price-note{margin:10px 0;padding:10px 12px;border-radius:10px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;font-size:12px;line-height:1.5}.return-balance-note{background:#fff1f2!important;border-color:#fecdd3!important;color:#9f1239!important}.admin-manual-return-price{border:1px solid var(--line);border-radius:8px;padding:7px 8px;text-align:right;background:#fff}

/* ADMIN_STRUCTURE_V1: 기능은 그대로 두고 메뉴만 업무영역별 계층화 */
.side{padding:12px 12px 18px;overflow-y:auto}
.side-home{padding-bottom:7px;margin-bottom:8px;border-bottom:1px solid #eef1f5}
.side-group{margin-top:11px}
.side-group-title{padding:0 10px 6px;color:#98a2b3;font-size:11px;font-weight:900;letter-spacing:.04em}
.side-group button{margin-bottom:4px;padding:10px 12px;border-radius:10px}
.side-group button .side-ico,.side-home button .side-ico{flex:0 0 24px}
.side-group button.active,.side-home button.active{box-shadow:0 3px 10px rgba(17,24,39,.12)}

/* v10.60.22.15: admin read-only customer app preview */
.preview-page{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:18px;align-items:start}
.preview-control{position:sticky;top:14px}
.preview-customer-list{max-height:520px;overflow:auto;border:1px solid #e5e7eb;border-radius:14px;background:#fff}
.preview-customer-item{width:100%;border:0;border-bottom:1px solid #f1f5f9;background:#fff;padding:11px 12px;text-align:left;display:grid;gap:3px;cursor:pointer}
.preview-customer-item:last-child{border-bottom:0}.preview-customer-item:hover{background:#f8fafc}.preview-customer-item.active{background:#eff6ff}
.preview-customer-item b{font-size:13px}.preview-customer-item span{font-size:11px;color:#667085}
.customer-phone-wrap{display:flex;justify-content:center;min-width:0}
.customer-phone{width:min(100%,470px);min-height:720px;border:1px solid #d0d5dd;border-radius:26px;background:#f7f8fa;box-shadow:0 18px 46px rgba(15,23,42,.12);overflow:hidden;position:relative}
.customer-phone-head{background:#fff;border-bottom:1px solid #e5e7eb;padding:15px 16px 12px;position:sticky;top:0;z-index:2}
.customer-phone-head h3{margin:0;font-size:18px}.customer-phone-head .sub{font-size:12px;color:#667085;margin-top:3px}
.preview-ro-badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;background:#fff7ed;color:#9a3412;font-size:11px;font-weight:900;border:1px solid #fed7aa}
.customer-phone-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:10px;background:#fff;border-bottom:1px solid #e5e7eb}
.customer-phone-tabs button{border:1px solid #e5e7eb;background:#fff;color:#475467;padding:9px 6px;border-radius:11px;font-size:12px;font-weight:900;cursor:pointer}
.customer-phone-tabs button.active{background:#111827;color:#fff;border-color:#111827}
.customer-phone-body{padding:11px;max-height:690px;overflow:auto}
.preview-balance{background:linear-gradient(135deg,#111827,#374151);color:#fff;border-radius:16px;padding:14px;margin-bottom:10px}
.preview-balance .label{font-size:11px;color:#d1d5db}.preview-balance b{display:block;font-size:24px;margin-top:3px}
.preview-prod{background:#fff;border:1px solid #e5e7eb;border-radius:13px;padding:10px 11px;margin-bottom:7px}
.preview-prod-top{display:flex;gap:8px;align-items:flex-start}.preview-star{color:#f59e0b;font-size:17px;line-height:1}.preview-prod-name{min-width:0;flex:1;font-weight:950;font-size:14px;line-height:1.25}
.preview-prod-sub{font-size:11px;color:#667085;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.preview-prod-price{font-size:16px;font-weight:950;color:#2563eb;margin-top:7px}
.preview-order{background:#fff;border:1px solid #e5e7eb;border-radius:13px;padding:11px;margin-bottom:8px}.preview-order-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.preview-order-no{font-size:11px;color:#667085}.preview-order-name{font-weight:900;margin-top:5px}.preview-order-amt{font-weight:950;margin-top:5px}.preview-return{color:#b42318}.preview-order-items{margin-top:8px;border-top:1px dashed #e5e7eb;padding-top:7px;font-size:12px;color:#475467;display:grid;gap:4px}
.preview-pay{background:#fff;border:1px solid #e5e7eb;border-radius:13px;padding:11px;margin-bottom:7px;display:grid;grid-template-columns:1fr auto;gap:4px 10px}.preview-pay .muted2{font-size:11px;color:#667085}.preview-pay b{grid-row:1/3;grid-column:2;align-self:center;color:#047857}
.preview-empty{background:#fff;border:1px dashed #d0d5dd;border-radius:14px;padding:28px 16px;text-align:center;color:#667085;font-size:13px}
.preview-top-tools{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:10px;flex-wrap:wrap}
@media(max-width:1050px){.preview-page{grid-template-columns:1fr}.preview-control{position:static}.preview-customer-list{max-height:260px}.customer-phone{width:min(100%,520px)}}

/* ===== PATCH2_FINAL_FIXES_V1 : actual customer app preview ===== */
.customer-preview-real-wrap{display:flex;justify-content:center;align-items:flex-start;min-width:0}
.customer-preview-real-frame{
  width:min(100%,430px);height:760px;border:1px solid #d9dee8;border-radius:22px;
  background:#fff;box-shadow:0 12px 32px rgba(15,23,42,.12);overflow:hidden
}
.customer-preview-real-frame iframe{width:100%;height:100%;border:0;background:#fff;display:block}
.preview-real-help{margin-top:10px;font-size:12px;line-height:1.5;color:#667085}
/* ===== /PATCH2_FINAL_FIXES_V1 ===== */

/* ===== HIERARCHICAL_SIDE_MENU_PATCH_V1 ===== */
.side{padding:12px 10px 18px!important;overflow-y:auto}
.side-home{padding:0 2px 9px;margin-bottom:7px;border-bottom:1px solid #eef1f5}
.side-home .side-dashboard-btn{margin:0;padding:11px 12px;border-radius:11px}
.side-menu-group{margin:5px 0;position:relative}
.side-menu-group>.side-parent{margin:0!important;padding:10px 11px!important;border-radius:11px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;background:#fff!important;color:#344054!important}
.side-menu-group>.side-parent:hover,.side-menu-group.has-active>.side-parent{background:#f2f4f7!important;color:#111827!important}
.side-parent-main{display:flex;align-items:center;gap:10px;min-width:0;font-weight:900}
.side-parent-main>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.side-chevron{font-size:16px;line-height:1;color:#98a2b3;transition:transform .18s ease;transform:rotate(0deg);flex:0 0 auto}
.side-menu-group.open>.side-parent .side-chevron,.side-menu-group:hover>.side-parent .side-chevron{transform:rotate(180deg)}
.side-submenu{max-height:0;opacity:0;overflow:hidden;padding:0 2px;transition:max-height .22s ease,opacity .16s ease,padding .18s ease}
.side-menu-group.open>.side-submenu,.side-menu-group:hover>.side-submenu{max-height:330px;opacity:1;padding:5px 2px 2px}
.side-submenu button{position:relative;margin:2px 0!important;padding:9px 9px 9px 27px!important;border-radius:9px!important;font-size:12.5px!important;font-weight:800!important;background:#fff}
.side-submenu button:before{content:'';position:absolute;left:12px;top:50%;width:5px;height:5px;border-radius:50%;background:#d0d5dd;transform:translateY(-50%)}
.side-submenu button:hover{background:#f8fafc!important}
.side-submenu button.active{background:#111827!important;color:#fff!important;box-shadow:0 3px 10px rgba(17,24,39,.12)}
.side-submenu button.active:before{background:#fff}
.side-submenu button .side-ico{width:21px!important;height:21px!important;flex:0 0 21px!important;font-size:12px!important;border-radius:7px!important}
.side-submenu button.active .side-ico{background:rgba(255,255,255,.15)!important}
.side-submenu .side-action small{margin-left:auto;font-size:9px;color:#98a2b3;font-weight:900;background:#f2f4f7;border-radius:999px;padding:2px 5px}
.side-submenu .side-future{color:#667085}
.side-submenu .side-future:hover{color:#344054}
@media(max-width:900px){.side-menu-group:hover>.side-submenu{max-height:0;opacity:0;padding:0 2px}.side-menu-group.open>.side-submenu{max-height:330px;opacity:1;padding:5px 2px 2px}}
/* ===== /HIERARCHICAL_SIDE_MENU_PATCH_V1 ===== */

/* ===== ALLPLUS UI SYSTEM 2026 · Toss × iOS inspired ===== */
:root{
  --bg:#f5f7fb;--panel:#ffffff;--panel-soft:#f8fafc;--panel-tint:#f2f6fb;
  --text:#191f28;--muted:#6b7684;--subtle:#8b95a1;--line:#e7ecf2;--line-strong:#d9e0e8;
  --primary:#3182f6;--primary-strong:#1b64da;--primary-soft:#eaf3ff;
  --red:#f04452;--red-soft:#fff0f1;--green:#0ca678;--green-soft:#eafbf5;
  --orange:#f59f00;--orange-soft:#fff7e6;--purple:#845ef7;--purple-soft:#f3f0ff;
  --shadow-xs:0 1px 2px rgba(33,43,54,.04);--shadow-sm:0 6px 18px rgba(33,43,54,.055);--shadow-md:0 16px 44px rgba(33,43,54,.10);
  --radius-sm:10px;--radius:14px;--radius-lg:20px;--radius-xl:24px;
}
html{scrollbar-gutter:stable}body{background:var(--bg)!important;color:var(--text)!important;letter-spacing:-.012em;line-height:1.45;font-size:14px}
body,button,input,select,textarea{font-family:-apple-system,BlinkMacSystemFont,"Pretendard","Apple SD Gothic Neo","Noto Sans KR","Segoe UI",sans-serif}
::selection{background:#cfe3ff;color:#134b9c}
button,input,select,textarea{outline:none}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{box-shadow:0 0 0 4px rgba(49,130,246,.15)!important;border-color:var(--primary)!important}
.layout{min-width:1180px!important}.top{position:sticky;top:0;z-index:50;height:68px!important;background:rgba(255,255,255,.88)!important;color:var(--text)!important;border-bottom:1px solid rgba(217,224,232,.85);backdrop-filter:saturate(180%) blur(18px);padding:0 24px!important;box-shadow:0 1px 0 rgba(33,43,54,.02)}
.brand{display:flex;align-items:center;gap:12px}.brand:before{content:"A";display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:linear-gradient(145deg,#4898ff,#236fdc);color:#fff;font-weight:900;font-size:17px;box-shadow:0 6px 16px rgba(49,130,246,.22)}
.brand h1{font-size:18px!important;font-weight:800;letter-spacing:-.025em}.brand p{display:none}.top>div:last-child{display:flex;gap:8px;align-items:center}.top .btn2{background:#f4f6f8!important;border-color:transparent!important;color:#4e5968!important;box-shadow:none!important}
.main{grid-template-columns:246px 1fr!important;min-height:calc(100vh - 68px)!important}.side{position:sticky;top:68px;height:calc(100vh - 68px);background:#f8fafc!important;border-right:1px solid var(--line)!important;padding:18px 12px 24px!important;scrollbar-width:thin;scrollbar-color:#d9e1ea transparent}.work{padding:24px 26px 40px!important;min-width:0;max-width:1900px;width:100%;margin:0 auto}
.side button{font-weight:700!important;color:#4e5968!important;letter-spacing:-.01em}.side-home{border-bottom:0!important;margin-bottom:12px!important;padding:0!important}.side-home .side-dashboard-btn,.side-menu-group>.side-parent{min-height:44px;border-radius:12px!important;padding:10px 11px!important}.side-home .side-dashboard-btn:hover,.side-menu-group>.side-parent:hover{background:#eef3f8!important;color:#191f28!important}.side-home .side-dashboard-btn.active{background:var(--primary-soft)!important;color:var(--primary-strong)!important;box-shadow:none!important}.side-menu-group{margin:3px 0 9px!important}.side-parent-main{gap:10px!important;font-weight:750!important}.side-ico{display:inline-grid!important;place-items:center!important;width:28px!important;height:28px!important;border-radius:9px!important;background:#eef2f6!important;font-size:14px!important;filter:saturate(.85)}.side-parent:hover .side-ico,.side-menu-group.has-active>.side-parent .side-ico{background:#e3edf9!important}.side-chevron{color:#a0a9b5!important}.side-submenu{padding-left:13px!important}.side-submenu button{min-height:38px;padding:8px 10px 8px 15px!important;border-radius:10px!important;font-size:13px!important;font-weight:650!important;color:#6b7684!important}.side-submenu button:before{display:none!important}.side-submenu button .side-ico{width:24px!important;height:24px!important;font-size:12px!important;background:transparent!important}.side-submenu button:hover{background:#eef3f8!important;color:#333d4b!important}.side-submenu button.active{background:#eaf3ff!important;color:#1b64da!important;box-shadow:none!important}.side-submenu button.active .side-ico{background:#dcebff!important;color:#1b64da!important}.side-submenu .side-action small{background:#eef2f6!important;color:#8b95a1!important}
.card,.alertbar,.dash-task-card,.dash-panel,.report-filter,.report-kpi,.report-panel,.ledger-filter,.ledger-kpi,.ledger-mini-card,.gp-group-card{background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:var(--radius-lg)!important;box-shadow:var(--shadow-xs)!important}.card{padding:18px!important;margin-bottom:16px!important}.card:hover{box-shadow:var(--shadow-sm)!important}.card h2,.card h3,.dash-section-head h3,.report-panel h3,.ledger-mini-card h3{color:#191f28;font-weight:800;letter-spacing:-.025em}
.work h2{font-weight:850;letter-spacing:-.035em}.work h3{font-weight:800;letter-spacing:-.025em}.muted{color:var(--muted)!important}.manual-note,.gp-note,.ledger-note,.report-note{border-radius:14px!important;background:#f8fafc!important;border-color:var(--line)!important;color:#5c6673!important}
.btn,.btn2,.danger,.report-chip-btn,.gp-mini-btn{min-height:38px;border-radius:11px!important;padding:9px 13px!important;font-weight:750!important;letter-spacing:-.01em;transition:transform .14s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease!important}.btn{background:var(--primary)!important;color:#fff!important;box-shadow:0 5px 12px rgba(49,130,246,.18)!important}.btn:hover{background:var(--primary-strong)!important;box-shadow:0 8px 18px rgba(49,130,246,.22)!important}.btn2{background:#fff!important;color:#333d4b!important;border:1px solid var(--line-strong)!important;box-shadow:var(--shadow-xs)!important}.btn2:hover{background:#f7f9fb!important;border-color:#ccd5df!important}.danger{background:var(--red-soft)!important;color:#d63344!important;border:1px solid #ffd5da!important}.danger:hover{background:#ffe5e8!important}.btn:active,.btn2:active,.danger:active{transform:scale(.975)!important}
.toolbar{gap:9px!important}.toolbar input,.toolbar select,.field input,.field textarea,.field select,.admin-manual-field input,.admin-manual-field select,.admin-manual-field textarea,.admin-manual-productbar input,.admin-manual-productbar select,.admin-manual-items input,.gp-price,.report-date,.ledger-select-bar select,.ledger-customer-display{border:1px solid var(--line-strong)!important;background:#fff!important;color:#191f28!important;border-radius:11px!important;box-shadow:var(--shadow-xs)!important}.toolbar input,.toolbar select{min-height:40px;padding:8px 11px!important}.field input,.field textarea,.field select{padding:10px 11px!important}.field label,.admin-manual-field label{color:#6b7684!important;font-weight:700!important}.search-input{background:#fff!important}
input::placeholder,textarea::placeholder{color:#adb5bd}select{color:#333d4b}
.table-wrap,.ledger-table-scroll,.ecount-import-table-wrap,.admin-manual-items,.settle-scroll,.ledger-customer-table-wrap{border-color:var(--line)!important;border-radius:15px!important;box-shadow:none!important}table{border-radius:15px!important;overflow:hidden;background:#fff!important}th,td{border-bottom:1px solid #edf1f5!important;padding:9px 10px!important}th{background:#f8fafc!important;color:#6b7684!important;font-size:12px!important;font-weight:750!important;letter-spacing:-.005em}td{color:#333d4b}tbody tr:last-child td{border-bottom:0!important}tr:hover td{background:#f8fbff!important}.compact td input,.compact td select,.product-db-table input,.product-db-table select,.product-db-table textarea{border-color:var(--line-strong)!important;background:#fff!important;border-radius:9px!important}.product-db-table input:disabled{background:#f1f3f5!important;color:#adb5bd!important}
.status,.alert-pill,.dash-badge,.ledger-event,.ecount-import-badge,.gp-extra-badge,.return-order-badge,.modified-badge,.shipping-badge,.delay-badge{border-radius:999px!important;font-weight:750!important;box-shadow:none!important}.st-신규주문{background:#eaf3ff!important;color:#1b64da!important}.st-배송준비,.st-출고준비{background:#fff7e6!important;color:#b86a00!important}.st-출고완료,.st-확인완료,.st-확인{background:#eafbf5!important;color:#087f5b!important}.st-보류,.st-주문거절,.st-주문취소,.st-취소,.st-거절,.st-반려{background:#fff0f1!important;color:#d63344!important}
.alertbar{padding:14px 16px!important;box-shadow:none!important}.alert-pill{padding:6px 10px!important}.alert-pill.red{background:var(--red-soft)!important;color:#d63344!important}.alert-pill.green{background:var(--green-soft)!important;color:#087f5b!important}
.modal{background:rgba(15,23,42,.32)!important;backdrop-filter:blur(7px);padding:24px}.modal .panel{border-radius:24px!important;box-shadow:0 28px 80px rgba(15,23,42,.22)!important;border:1px solid rgba(255,255,255,.7);padding:22px!important;max-height:90vh!important}.modal .panel h2{font-weight:850;letter-spacing:-.035em}.toast{right:24px!important;bottom:24px!important;background:#191f28!important;color:#fff!important;border-radius:14px!important;padding:12px 16px!important;font-weight:700!important;box-shadow:0 12px 30px rgba(25,31,40,.25)!important}
.admin-login-wrap{max-width:410px!important}.admin-login-card{border:1px solid var(--line)!important;border-radius:24px!important;padding:28px!important;box-shadow:var(--shadow-md)!important}.admin-login-card:before{content:"ALLPLUS";display:inline-flex;margin-bottom:16px;background:#eaf3ff;color:#1b64da;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800;letter-spacing:.08em}.admin-login-card input{border-color:var(--line-strong)!important;min-height:46px!important}.admin-login-card .btn{min-height:46px!important}
.dash-header,.report-header,.ledger-header{align-items:center!important;margin-bottom:4px!important}.dash-title h2,.report-title h2,.ledger-title h2{font-size:28px!important;font-weight:850!important;letter-spacing:-.04em!important}.dash-title p,.report-title p,.ledger-title p{font-size:13px!important;color:#8b95a1!important}.dash-chip{background:#fff!important;border-color:var(--line)!important;color:#4e5968!important;box-shadow:var(--shadow-xs)!important}.dash-kpi-grid,.report-kpi-grid,.ledger-kpi-grid{gap:12px!important}.dash-kpi,.report-kpi,.ledger-kpi{border-radius:18px!important;border-color:var(--line)!important;box-shadow:var(--shadow-xs)!important}.dash-kpi{padding:17px!important}.dash-kpi:hover,.report-kpi:hover,.ledger-kpi:hover{box-shadow:var(--shadow-sm)!important;transform:translateY(-1px)}.dash-kpi-iconbox,.dash-icon{background:#eaf3ff!important;color:#3182f6!important}.dash-kpi-iconbox.green,.dash-icon.green{background:#eafbf5!important;color:#0ca678!important}.dash-kpi-iconbox.purple,.dash-icon.purple{background:#f3f0ff!important;color:#845ef7!important}.dash-kpi-iconbox.orange,.dash-icon.orange{background:#fff7e6!important;color:#f59f00!important}.dash-kpi-iconbox.red,.dash-icon.red{background:#fff0f1!important;color:#f04452!important}.dash-kpi-iconbox.sky,.dash-icon.sky{background:#ecf9ff!important;color:#15aabf!important}.dash-kpi-body b,.dash-kpi b,.report-kpi b,.ledger-kpi b{color:#191f28!important}.dash-task-card,.dash-panel,.report-panel{padding:18px!important}.dash-task{border-color:var(--line)!important;background:#fff!important;border-radius:14px!important;box-shadow:none!important}.dash-task:hover{background:#f8fbff!important;border-color:#cfe3ff!important;transform:translateY(-1px)}.dash-task em,.dash-link{color:#3182f6!important}.dash-chart-wrap{background:linear-gradient(180deg,#fff,#fbfdff)!important;border-color:var(--line)!important}.dash-rank,.report-rank{background:#eaf3ff!important;color:#1b64da!important}.dash-progress{background:#edf1f5!important}.dash-progress span,.report-bar-fill{background:#3182f6!important}.report-bar-fill.pay{background:#0ca678!important}
.ledger-summary-card{border:1px solid var(--line)!important;background:#fff!important;border-radius:18px!important;box-shadow:var(--shadow-xs)!important}.ledger-summary-item{background:#f8fafc!important;border:1px solid var(--line)!important;border-radius:14px!important}.ledger-delta-plus{color:#d63344!important}.ledger-delta-minus{color:#087f5b!important}.ledger-event-order{background:#eaf3ff!important;color:#1b64da!important}.ledger-event-payment{background:#eafbf5!important;color:#087f5b!important}.ledger-event-adjust{background:#fff7e6!important;color:#b86a00!important}
.gp-grid{gap:14px!important}.gp-group-card{padding:18px!important}.gp-metric{border-color:var(--line)!important;background:#f8fafc!important;border-radius:13px!important}.gp-transfer-col{border-color:var(--line)!important;background:#fbfcfe!important;border-radius:16px!important}.gp-transfer-head{background:#f8fafc!important;border-color:var(--line)!important}.gp-row{border-color:var(--line)!important;border-radius:12px!important;box-shadow:var(--shadow-xs)!important}.gp-mini-btn.add{background:#eaf3ff!important;color:#1b64da!important;border-color:#cfe3ff!important}.gp-mini-btn.remove{background:#fff0f1!important;color:#d63344!important;border-color:#ffd5da!important}.gp-extra-badge{background:#eaf3ff!important;color:#1b64da!important;border-color:#cfe3ff!important}
.admin-manual-card{border-color:var(--line)!important;background:#f8fafc!important;border-radius:18px!important;padding:18px!important}.admin-manual-items{background:#fff!important}.admin-manual-totalbar b{font-size:18px!important;color:#191f28}.return-price-note,.return-balance-note{background:#fff7e6!important;border-color:#ffe0a6!important;color:#a15c00!important;border-radius:13px!important}.return-order-badge{background:#fff0f1!important;color:#d63344!important;border-color:#ffd5da!important}.return-order-row td{background:#fffafb!important}
.ecount-import-card{border:1px solid #dceaff!important;background:linear-gradient(180deg,#f7fbff,#fff)!important}.ecount-import-summary{gap:10px!important}.ecount-import-kpi{border-color:var(--line)!important;border-radius:14px!important;padding:11px 12px!important}.ecount-import-badge.ready,.ecount-import-badge.applied{background:#eafbf5!important;color:#087f5b!important}.ecount-import-badge.duplicate{background:#eaf3ff!important;color:#1b64da!important}.ecount-import-badge.warn{background:#fff7e6!important;color:#b86a00!important}.ecount-import-badge.error{background:#fff0f1!important;color:#d63344!important}
.preview-page{gap:20px!important}.preview-control{background:#fff!important;border:1px solid var(--line)!important;border-radius:20px!important;box-shadow:var(--shadow-xs)!important}.customer-preview-real-frame{width:min(100%,430px)!important;height:620px!important;border:1px solid var(--line)!important;border-radius:24px!important;box-shadow:0 18px 45px rgba(33,43,54,.12)!important;background:#fff!important}.preview-real-help{color:#8b95a1!important;text-align:center}.preview-ro-badge{background:#fff7e6!important;color:#a15c00!important;border-color:#ffe0a6!important}
.unsaved-banner{background:#fff7e6!important;border-color:#ffe0a6!important;color:#a15c00!important}.btn.dirty-save{background:#f59f00!important}.orders-tight tbody tr.item-selected td{background:#f1f7ff!important}.orders-tight tbody tr.item-selected td:first-child{box-shadow:inset 3px 0 0 #3182f6!important}.order-action-card{border-color:#dceaff!important;box-shadow:var(--shadow-xs)!important}.selected-count-badge{background:#eaf3ff!important;color:#1b64da!important;border-color:#cfe3ff!important}
.empty,.dash-empty,.ledger-empty,.gp-empty,.preview-empty{background:#fbfcfe!important;border:1px dashed #d7dee7!important;color:#8b95a1!important;border-radius:16px!important}
@keyframes allplusFade{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.card,.dash-kpi,.dash-panel,.report-panel,.ledger-mini-card,.gp-group-card{animation:allplusFade .18s cubic-bezier(.22,.8,.3,1) both}
@media(max-width:1360px){.work{padding:20px!important}.main{grid-template-columns:230px 1fr!important}}
@media(max-width:900px){.layout{min-width:0!important}.top{padding:0 16px!important}.brand h1{font-size:16px!important}.main{display:block!important}.side{position:relative!important;top:0!important;height:auto!important;border-right:0!important;border-bottom:1px solid var(--line)!important}.work{padding:16px!important}.customer-preview-real-frame{height:580px!important}.modal{padding:12px!important}.modal .panel{border-radius:20px!important;padding:16px!important}}


/* ALLPLUS_TABLE_ALIGNMENT_RC3_2026_09_30
   Header geometric center = control/cell geometric center across admin tables. */
table thead th{
  text-align:center!important;
  vertical-align:middle;
}
table th,table td{box-sizing:border-box}
/* Editable controls should sit on the exact horizontal center of their table cell. */
table tbody td>input:not([type="checkbox"]):not([type="radio"]),
table tbody td>select,
table tbody td>textarea{
  display:block;
  margin-left:auto;
  margin-right:auto;
  box-sizing:border-box;
}
table tbody td:has(>button:only-child){text-align:center}
table tbody td>button:only-child{margin-left:auto;margin-right:auto}
/* Checkbox columns keep one shared center line. */
table thead th>input[type="checkbox"],
table tbody td>input[type="checkbox"]{
  margin-left:auto;
  margin-right:auto;
}
/* Editable DB tables: same horizontal inset for header and body cells. */
.compact th,.compact td{
  padding-left:7px!important;
  padding-right:7px!important;
}
/* Customer DB status / balance controls are centered under their headers. */
.customer-pay-status{justify-content:center}
.customer-balance-cell{width:100%;justify-content:center}
.customer-balance-cell>input{min-width:0}
/* Customer/product price management tables use the same visual axis. */
.price-customer-table th,.price-modal-table th,.gp-customer-table th{
  text-align:center!important;
}
.price-customer-table td:has(>.price-exception-check),
.price-customer-table td:has(>button:only-child),
.gp-customer-table td:has(>button:only-child){text-align:center}
/* Action/status cells in operational tables: button/badge sits under the header center. */
table tbody td:has(>.status:only-child),
table tbody td:has(>.ecount-state:only-child),
table tbody td:has(>.gp-extra-badge:only-child){text-align:center}


/* FIXPACK_RC4_OPERATIONS_BUNDLE_2026-09-30 */
.customer-shipping-col{width:104px!important;min-width:104px!important;text-align:center!important}
.customer-shipping-cell{text-align:center!important}
.customer-shipping-btn{height:32px!important;min-width:82px!important;padding:0 10px!important;white-space:nowrap}
.customer-shipping-view{display:grid;gap:10px;margin-top:12px}
.customer-shipping-view .shipping-modal-kv{grid-template-columns:92px minmax(0,1fr)}
.customer-shipping-edit{display:grid;gap:12px;margin-top:12px}
.customer-shipping-edit .field{margin:0}
.customer-shipping-edit input{width:100%;box-sizing:border-box}
.gp-list-results{min-height:40px}

/* FIXPACK RC5: 다중 공지 + 팝업공지 */
.settings-notice-list{display:grid;gap:10px;margin-top:8px}
.settings-notice-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start;background:#f8fafc;border:1px solid #e5e7eb;border-radius:14px;padding:10px}
.settings-notice-row textarea{min-height:68px;resize:vertical;margin:0!important}
.settings-notice-row .btn2{height:40px;white-space:nowrap}
.settings-section-card{border:1px solid #e5e7eb;border-radius:16px;background:#fbfdff;padding:14px;margin:14px 0}
.settings-section-card h3{margin:0 0 6px}
.popup-setting-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.popup-setting-grid .field{margin:0}
.popup-image-box{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;margin-top:10px}
.popup-image-preview{min-height:150px;border:1px dashed #cbd5e1;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:8px}
.popup-image-preview img{display:block;max-width:100%;max-height:320px;object-fit:contain;border-radius:10px}
.popup-image-actions{display:grid;gap:8px;min-width:120px}
.popup-enabled-row{display:flex;align-items:center;gap:8px;font-weight:900;margin-top:10px}
.popup-enabled-row input{width:18px;height:18px}
.popup-size-note{font-size:12px;color:#667085;line-height:1.45;margin-top:8px}
@media(max-width:760px){.settings-notice-row{grid-template-columns:1fr}.settings-notice-row .btn2{width:100%}.popup-setting-grid{grid-template-columns:1fr}.popup-image-box{grid-template-columns:1fr}.popup-image-actions{grid-template-columns:1fr 1fr}}



/* FIXPACK RC6: floating AI help */
.ai-help-launch{position:fixed;right:22px;bottom:22px;z-index:118;display:flex;align-items:center;gap:8px;border:0;border-radius:999px;background:#111827;color:#fff;padding:12px 16px;font-weight:950;box-shadow:0 14px 34px rgba(15,23,42,.24);cursor:pointer}
.ai-help-launch:hover{transform:translateY(-1px);box-shadow:0 17px 38px rgba(15,23,42,.28)}
.ai-help-launch .ai-help-dot{width:26px;height:26px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.14);font-size:15px}
.ai-help-panel{position:fixed;right:22px;bottom:82px;z-index:119;width:min(390px,calc(100vw - 28px));height:min(620px,calc(100vh - 112px));display:none;grid-template-rows:auto 1fr auto;background:#fff;border:1px solid #e5e7eb;border-radius:22px;box-shadow:0 24px 70px rgba(15,23,42,.24);overflow:hidden}
.ai-help-panel.open{display:grid;animation:fadeUp .16s ease both}
.ai-help-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 14px 12px;border-bottom:1px solid #eef2f6;background:#fff}
.ai-help-title{display:flex;align-items:center;gap:10px;min-width:0}.ai-help-title-icon{width:36px;height:36px;border-radius:13px;background:#111827;color:#fff;display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px}.ai-help-title b{display:block;font-size:14px}.ai-help-title small{display:block;color:#667085;font-size:11px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ai-help-close{border:0;background:#f2f4f7;width:34px;height:34px;border-radius:11px;font-size:18px;cursor:pointer;color:#344054}
.ai-help-body{overflow:auto;padding:14px;background:#f8fafc;scroll-behavior:smooth}
.ai-help-msg{display:flex;margin:0 0 10px}.ai-help-msg.user{justify-content:flex-end}.ai-help-bubble{max-width:86%;padding:10px 12px;border-radius:15px;font-size:13px;line-height:1.55;word-break:break-word;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.ai-help-msg.assistant .ai-help-bubble{background:#fff;border:1px solid #e5e7eb;color:#1f2937;border-bottom-left-radius:5px}.ai-help-msg.user .ai-help-bubble{background:#111827;color:#fff;border-bottom-right-radius:5px}
.ai-help-msg.system .ai-help-bubble{max-width:100%;margin:auto;background:#eef4ff;border:1px solid #dbeafe;color:#1849a9;font-size:12px;text-align:center}
.ai-help-typing{display:inline-flex;align-items:center;gap:4px}.ai-help-typing i{width:5px;height:5px;background:#98a2b3;border-radius:50%;display:block;animation:aiHelpBlink 1s infinite}.ai-help-typing i:nth-child(2){animation-delay:.15s}.ai-help-typing i:nth-child(3){animation-delay:.3s}@keyframes aiHelpBlink{0%,70%,100%{opacity:.25}35%{opacity:1}}
.ai-help-foot{padding:10px 12px 12px;border-top:1px solid #eef2f6;background:#fff}.ai-help-quick{display:flex;gap:6px;overflow-x:auto;padding:0 0 8px;scrollbar-width:none}.ai-help-quick::-webkit-scrollbar{display:none}.ai-help-chip{border:1px solid #e5e7eb;background:#fff;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:850;color:#475467;white-space:nowrap;cursor:pointer}.ai-help-chip:hover{background:#f8fafc;border-color:#d0d5dd}
.ai-help-compose{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:end}.ai-help-compose textarea{width:100%;min-height:42px;max-height:110px;resize:none;border:1px solid #d0d5dd;border-radius:13px;padding:10px 11px;line-height:1.4;background:#fff}.ai-help-send{height:42px;min-width:62px;border:0;border-radius:13px;background:#111827;color:#fff;font-weight:950;cursor:pointer}.ai-help-send:disabled{opacity:.45;cursor:not-allowed}.ai-help-note{margin-top:7px;color:#98a2b3;font-size:10px;line-height:1.4}
body.login-screen .ai-help-launch,body.login-screen .ai-help-panel{display:none!important}
@media(max-width:700px){.ai-help-launch{right:14px;bottom:14px;padding:11px 13px}.ai-help-launch .ai-help-label{display:none}.ai-help-panel{right:8px;bottom:70px;width:calc(100vw - 16px);height:min(650px,calc(100vh - 86px));border-radius:20px}.ai-help-bubble{max-width:91%}}

/* ===== RC7 ECOUNT OPEN API ===== */
.ecount-api-actions{gap:6px;flex-wrap:wrap}
.ecount-state-line{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:4px}
.ecount-api-badge{display:inline-flex;align-items:center;min-height:22px;padding:2px 7px;border-radius:999px;font-size:11px;font-weight:850;line-height:1.3;border:1px solid transparent;white-space:nowrap}
.ecount-api-badge.pending{background:#f8fafc;color:#475467;border-color:#e2e8f0}
.ecount-api-badge.sending{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}
.ecount-api-badge.success{background:#ecfdf3;color:#067647;border-color:#abefc6}
.ecount-api-badge.fail{background:#fff7ed;color:#c2410c;border-color:#fed7aa}
.ecount-api-badge.review{background:#fff1f2;color:#be123c;border-color:#fecdd3}
.ecount-api-review-btn{border:1px solid #fecdd3;background:#fff;color:#be123c;border-radius:8px;padding:3px 7px;font-size:11px;font-weight:850;cursor:pointer}
.ecount-api-review-btn:hover{background:#fff1f2}
.orders-tight tr.ecount-api-row-success td{background-image:linear-gradient(rgba(236,253,243,.30),rgba(236,253,243,.30))}
.orders-tight tr.ecount-api-row-fail td{background-image:linear-gradient(rgba(255,247,237,.34),rgba(255,247,237,.34))}
.orders-tight tr.ecount-api-row-review td{background-image:linear-gradient(rgba(255,241,242,.38),rgba(255,241,242,.38))}
@media(max-width:900px){.ecount-api-actions{width:100%}.ecount-api-actions .btn,.ecount-api-actions .btn2{flex:1 1 auto}}
/* ===== /RC7 ECOUNT OPEN API ===== */


/* RC9.3: 잔액조정 modal */
.modal .panel.balance-adjust-panel{width:min(620px,94vw);padding:0!important;overflow:hidden}
.balance-adjust-modal{display:grid;gap:0;background:#fff}
.balance-adjust-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 22px 16px;border-bottom:1px solid #edf1f5}
.balance-adjust-head h2{margin:3px 0 5px!important;font-size:24px!important;letter-spacing:-.04em}
.balance-adjust-head p{margin:0;color:#667085;font-size:13px}.balance-adjust-head p span{margin-left:5px;color:#98a2b3;font-size:11px}
.balance-adjust-eyebrow{font-size:11px;font-weight:850;color:#3182f6;letter-spacing:.02em}
.balance-adjust-close{width:34px;height:34px;border-radius:10px;background:#f4f6f8;color:#6b7684;font-size:23px;line-height:1;display:grid;place-items:center}
.balance-adjust-close:hover{background:#e9edf2;color:#333d4b}
.balance-adjust-current{margin:18px 22px 0;padding:16px 17px;border-radius:16px;background:linear-gradient(135deg,#f4f8ff,#edf5ff);border:1px solid #dbeafe}
.balance-adjust-current span{display:block;color:#5d6b7b;font-size:12px;font-weight:800}.balance-adjust-current strong{display:block;margin-top:3px;color:#1d4ed8;font-size:26px;letter-spacing:-.04em}.balance-adjust-current small{display:block;margin-top:4px;color:#7b8495;font-size:11px}
.balance-adjust-section,.balance-adjust-form-grid,.balance-adjust-preview,.balance-adjust-actions{margin-left:22px;margin-right:22px}
.balance-adjust-section{margin-top:18px}.balance-adjust-label,.balance-adjust-field label{display:block;margin-bottom:7px;color:#475467;font-size:12px;font-weight:850}
.balance-adjust-type-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.balance-adjust-type-btn{min-height:74px;text-align:left;border:1px solid #d9e0e8;border-radius:14px;background:#fff;padding:12px 13px;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.balance-adjust-type-btn b{display:block;color:#333d4b;font-size:14px}.balance-adjust-type-btn span{display:block;margin-top:4px;color:#8b95a1;font-size:11px;line-height:1.4}
.balance-adjust-type-btn.active.increase{border-color:#80aef7;background:#f3f8ff;box-shadow:0 0 0 3px rgba(49,130,246,.08)}
.balance-adjust-type-btn.active.decrease{border-color:#f0a6ae;background:#fff6f7;box-shadow:0 0 0 3px rgba(214,51,68,.07)}
.balance-adjust-form-grid{margin-top:16px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.balance-adjust-field{min-width:0}.balance-adjust-field.full{grid-column:1/-1}
.balance-adjust-field input,.balance-adjust-field textarea{width:100%;border:1px solid #d0d5dd;border-radius:12px;background:#fff;color:#191f28;outline:none;box-shadow:0 1px 2px rgba(16,24,40,.04);transition:border-color .15s ease,box-shadow .15s ease}
.balance-adjust-field input{height:42px;padding:0 12px}.balance-adjust-field textarea{min-height:76px;padding:10px 12px;resize:vertical;line-height:1.45}
.balance-adjust-field input:focus,.balance-adjust-field textarea:focus{border-color:#3182f6;box-shadow:0 0 0 3px rgba(49,130,246,.11)}
.balance-adjust-field small{display:block;margin-top:5px;color:#98a2b3;font-size:10px;line-height:1.4}
.balance-adjust-money{position:relative}.balance-adjust-money input{padding-right:34px}.balance-adjust-money span{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:#8b95a1;font-size:12px;font-weight:800}
.balance-adjust-preview{margin-top:16px;padding:13px 14px;border:1px solid #e5e9ef;border-radius:14px;background:#fafbfc;display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:10px;align-items:center;text-align:center}
.balance-adjust-preview>div span{display:block;color:#8b95a1;font-size:10px;font-weight:800}.balance-adjust-preview>div b{display:block;margin-top:4px;font-size:14px;white-space:nowrap}.balance-adjust-preview i{color:#c3cad4;font-style:normal}
.balance-adjust-value.increase{color:#1463df}.balance-adjust-value.decrease,.balance-adjust-value.after.negative{color:#d63344}.balance-adjust-value.after{color:#191f28}
.balance-adjust-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;margin-bottom:22px;padding-top:16px;border-top:1px solid #edf1f5}.balance-adjust-actions .btn,.balance-adjust-actions .btn2{min-width:112px;height:42px}
@media(max-width:640px){.balance-adjust-head{padding:18px 16px 14px}.balance-adjust-current,.balance-adjust-section,.balance-adjust-form-grid,.balance-adjust-preview,.balance-adjust-actions{margin-left:16px;margin-right:16px}.balance-adjust-form-grid{grid-template-columns:1fr}.balance-adjust-field.full{grid-column:auto}.balance-adjust-preview{grid-template-columns:1fr;gap:5px;text-align:left}.balance-adjust-preview i{display:none}.balance-adjust-actions{display:grid;grid-template-columns:1fr 1fr}.balance-adjust-actions .btn,.balance-adjust-actions .btn2{width:100%}}

/* ===== RC10.1 FINAL UI CONSISTENCY PASS ===== */
/* Visual-only polish: no business logic / data behavior changes */
.side-menu-group.has-active>.side-parent{
  background:#eef5ff!important;
  color:#1b64da!important;
}
.side-menu-group.has-active>.side-parent .side-ico{
  background:#dfeeff!important;
  color:#1b64da!important;
}
.side-menu-group.has-active>.side-parent .side-chevron{color:#3182f6!important}
.side-home .side-dashboard-btn,.side-menu-group>.side-parent,.side-submenu button{
  transition:background-color .15s ease,color .15s ease,box-shadow .15s ease,transform .12s ease!important;
}
.side-submenu button:active,.side-menu-group>.side-parent:active,.side-home .side-dashboard-btn:active{transform:scale(.985)!important}

.top .btn2{min-height:38px!important;padding:8px 13px!important;border-radius:11px!important}
.toolbar{row-gap:9px!important}
.toolbar>span,.toolbar>label{color:#667085;font-size:12px;font-weight:700}

button:disabled,.btn:disabled,.btn2:disabled,.danger:disabled{
  opacity:.46!important;cursor:not-allowed!important;box-shadow:none!important;transform:none!important
}
input:disabled,select:disabled,textarea:disabled{
  background:#f3f5f7!important;color:#8b95a1!important;border-color:#e4e9ef!important;cursor:not-allowed!important
}

.table-wrap,.ledger-table-scroll,.ecount-import-table-wrap,.ledger-customer-table-wrap,.admin-manual-items{
  scrollbar-width:thin;scrollbar-color:#cfd7e1 transparent;overscroll-behavior:contain
}
.table-wrap::-webkit-scrollbar,.ledger-table-scroll::-webkit-scrollbar,.ecount-import-table-wrap::-webkit-scrollbar,.ledger-customer-table-wrap::-webkit-scrollbar,.admin-manual-items::-webkit-scrollbar{height:9px;width:9px}
.table-wrap::-webkit-scrollbar-thumb,.ledger-table-scroll::-webkit-scrollbar-thumb,.ecount-import-table-wrap::-webkit-scrollbar-thumb,.ledger-customer-table-wrap::-webkit-scrollbar-thumb,.admin-manual-items::-webkit-scrollbar-thumb{background:#cfd7e1;border-radius:999px;border:2px solid #fff}
.table-wrap::-webkit-scrollbar-track,.ledger-table-scroll::-webkit-scrollbar-track,.ecount-import-table-wrap::-webkit-scrollbar-track,.ledger-customer-table-wrap::-webkit-scrollbar-track,.admin-manual-items::-webkit-scrollbar-track{background:transparent}

.modal .panel{overscroll-behavior:contain}
.modal .panel>h2:first-child,.modal .panel>h3:first-child{margin-top:0!important}
.modal .panel .toolbar:last-child{margin-bottom:0}
.toast{max-width:min(420px,calc(100vw - 32px));line-height:1.45}

.status,.ecount-api-badge,.dash-badge{letter-spacing:-.01em}
.empty,.dash-empty{line-height:1.6}

@media(max-width:1280px){
  .main{grid-template-columns:226px 1fr!important}
  .work{padding-left:20px!important;padding-right:20px!important}
}
/* ===== /RC10.1 FINAL UI CONSISTENCY PASS ===== */


/* ===== RC10.3 ADMIN UI SECOND PASS ===== */
/* Visual/UX-only: no business rules, RPC, order/payment/ECOUNT behavior changes. */
.search-input::placeholder{color:#98a2b3!important;opacity:1!important}
.card.toolbar{padding:13px 14px!important;column-gap:8px!important;row-gap:8px!important}
.card.toolbar>.muted{margin-left:2px}
.card.toolbar .btn,.card.toolbar .btn2,.card.toolbar .danger{white-space:nowrap}

/* Shared scroll shell for wide admin DB tables. Vertical wheel must bubble to the page. */
.admin-table-scroll{
  width:100%;overflow:auto;border:1px solid var(--line);border-radius:15px;background:#fff;
  scrollbar-width:thin;scrollbar-color:#cfd7e1 transparent;
  overscroll-behavior-x:contain;overscroll-behavior-y:auto
}
.admin-table-scroll::-webkit-scrollbar{height:9px;width:9px}
.admin-table-scroll::-webkit-scrollbar-thumb{background:#cfd7e1;border-radius:999px;border:2px solid #fff}
.admin-table-scroll::-webkit-scrollbar-track{background:transparent}
.admin-table-scroll>table{border-radius:0!important;margin:0!important}
.admin-table-scroll thead th{position:sticky;top:0;z-index:3;box-shadow:0 1px 0 #e7ecf2}
.customer-db-scroll>table{min-width:1320px}
.product-db-scroll>table{min-width:1240px}

/* Dense tables: actions stay aligned without making rows unnecessarily tall. */
.compact td .btn,.compact td .btn2,.compact td .danger,
.orders-tight td .btn,.orders-tight td .btn2,.orders-tight td .danger{min-height:34px!important}
.compact td input,.compact td select{min-height:34px}

/* Clearer loading / empty-state presentation without changing rendered text. */
.empty,.dash-empty,.gp-empty,.preview-empty{border-color:#d9e1ea!important;background:#fbfcfe!important;color:#7b8794!important}

/* Sidebar/touch polish. */
.side{overscroll-behavior:contain}
.side-parent:focus-visible,.side-submenu button:focus-visible,.side-dashboard-btn:focus-visible{box-shadow:0 0 0 3px rgba(49,130,246,.14)!important}
@media(hover:none){
  .side-menu-group:hover>.side-submenu{max-height:0;opacity:0;padding:0 2px}
  .side-menu-group.open>.side-submenu{max-height:330px;opacity:1;padding:5px 2px 2px}
}

/* Better fit on common 1280/1366px office displays; desktop workflow remains intact. */
@media(max-width:1366px){
  .layout{min-width:1080px!important}
  .main{grid-template-columns:218px 1fr!important}
  .work{padding:18px 16px 34px!important}
  .top{padding-left:18px!important;padding-right:18px!important}
  .side{padding-left:9px!important;padding-right:9px!important}
  .card{padding:16px!important}
  .toolbar input,.toolbar select{max-width:100%}
}
@media(max-width:1120px){
  .layout{min-width:1024px!important}
  .main{grid-template-columns:204px 1fr!important}
  .work{padding-left:13px!important;padding-right:13px!important}
  .brand h1{font-size:17px!important}
  .side-parent-main{gap:7px!important}
  .side-home .side-dashboard-btn,.side-menu-group>.side-parent{padding-left:8px!important;padding-right:8px!important}
}
/* ===== /RC10.3 ADMIN UI SECOND PASS ===== */

/* RC11.2A CARD PAYMENTS */
.cardpay-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.cardpay-head h2{margin:0}.cardpay-head p{margin:6px 0 0}.cardpay-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,220px));gap:10px;margin:16px 0}.cardpay-kpis>div{border:1px solid var(--line);background:#f8fafc;border-radius:14px;padding:13px 15px}.cardpay-kpis span{display:block;font-size:12px;color:#667085;font-weight:800}.cardpay-kpis b{display:block;margin-top:5px;font-size:19px}.cardpay-filter{align-items:end}.cardpay-table-wrap{overflow:auto;margin-top:14px}.cardpay-table-wrap table{min-width:980px}.cardpay-table-wrap .num{text-align:right}.cardpay-order-no{font-size:11px;max-width:240px;word-break:break-all}.cardpay-status{display:inline-flex;padding:5px 8px;border-radius:999px;background:#eef2f6;color:#475467;font-size:11px;font-weight:900;white-space:nowrap}.cardpay-APPROVED{background:#eafbf5;color:#087f5b}.cardpay-PARTIALLY_CANCELED{background:#fff7e6;color:#b86a00}.cardpay-CANCELED{background:#f2f4f7;color:#475467}.cardpay-FAILED{background:#fff0f1;color:#d63344}.cardpay-REVIEW_REQUIRED{background:#fff3bf;color:#8f5b00}.cardpay-APPROVING,.cardpay-READY{background:#eef5ff;color:#1769e0}.cardpay-error{margin:10px 0;padding:11px 13px;border-radius:12px;background:#fff0f1;color:#b42318;font-weight:800}

/* RC11.2A.3 CARD PAYMENT REVIEW */
.cardpay-review-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 14px}
.cardpay-review-tabs{display:inline-flex;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.cardpay-review-tabs button{border:0;background:#fff;color:#667085;padding:9px 16px;font-weight:850;min-width:92px}
.cardpay-review-tabs button+button{border-left:1px solid var(--line)}
.cardpay-review-tabs button.active{background:#111827;color:#fff}
.cardpay-review-tabs button span{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;margin-left:5px;border-radius:999px;background:#eef2f6;color:#475467;font-size:11px;padding:0 6px}
.cardpay-review-tabs button.active span{background:rgba(255,255,255,.18);color:#fff}
.cardpay-confirm-btn{height:38px}
.cardpay-confirm-btn:disabled{opacity:.45;cursor:not-allowed}

.payment-filter.cardpay-filter{
  display:grid;
  grid-template-columns:240px 150px 145px 145px auto auto;
  gap:8px;
  align-items:end;
  justify-content:start;
}
.cardpay-filter .field{margin-bottom:0}
.cardpay-filter .field input,.cardpay-filter .field select{height:40px}
.cardpay-filter .cardpay-search-btn{height:40px;margin:0}
.cardpay-quick-range{display:flex;gap:4px;align-items:center;height:40px;white-space:nowrap}
.cardpay-quick-range button{height:30px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:0 9px;color:#475467;font-size:11px;font-weight:800}
.cardpay-quick-range button:hover{background:#f8fafc}
.cardpay-check-col{width:82px;min-width:82px;text-align:center!important}
.cardpay-check-col input[type="checkbox"]{width:16px;height:16px;accent-color:#2563eb;cursor:pointer}
.cardpay-checked-at{font-size:12px;white-space:nowrap}
.cardpay-table-wrap table{min-width:1080px}

@media(max-width:1366px){
  .payment-filter.cardpay-filter{grid-template-columns:210px 135px 138px 138px auto auto}
  .cardpay-quick-range button{padding:0 7px}
}


/* RC11.3A - card payment filter sizing refinement */
.payment-filter.cardpay-filter{
  grid-template-columns:310px 195px 188px 188px auto auto;
}
.cardpay-quick-range{height:40px}
.cardpay-quick-range button{
  height:40px;
  padding:0 11px;
  border-radius:10px;
  font-size:12px;
}
@media(max-width:1450px){
  .payment-filter.cardpay-filter{
    grid-template-columns:275px 175px 170px 170px auto auto;
  }
}

/* RC11.3.3 customer card-payment permission */
.customer-credit-col,.customer-credit-cell{width:96px!important;max-width:96px!important}
.customer-balance-col,.customer-balance-td{width:150px!important;max-width:150px!important}
.customer-balance-cell>input{width:72px!important;min-width:0!important}
.customer-cardpay-col{width:92px!important;min-width:92px!important;text-align:center!important}
.customer-cardpay-cell-inner{display:flex;flex-direction:column;align-items:center;gap:3px}
.customer-cardpay-toggle{min-width:62px;height:32px;border:0;border-radius:10px;color:#fff;font-weight:900;cursor:pointer;box-shadow:0 1px 2px rgba(16,24,40,.08)}
.customer-cardpay-toggle.allow{background:#16a34a}
.customer-cardpay-toggle.block{background:#dc2626}
.customer-cardpay-savehint{display:none;font-size:10px;font-weight:850;color:#b54708}
.customer-cardpay-cell-inner.pending .customer-cardpay-savehint{display:block}
/* RC11.6 notice manager */
.notice-admin-tag{display:inline-block;border-radius:6px;background:#fff0de;color:#985b04;font-size:11px;padding:3px 6px}.notice-admin-images{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}.notice-admin-images>div{display:grid;gap:6px;width:140px}.notice-admin-images img{height:100px;width:140px;object-fit:contain;border:1px solid #dce2e8;background:#f8fafc;border-radius:8px}.notice-admin-check,.notice-admin-groups label,.notice-admin-options label{display:flex;gap:8px;align-items:center}.notice-admin-groups{display:flex;gap:10px;flex-wrap:wrap;padding:10px 0}.notice-admin-groups input,.notice-admin-options input,.notice-admin-check input{width:auto!important}.notice-admin-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0}.notice-admin-check{font-weight:750}
@media(max-width:600px){.notice-admin-options{grid-template-columns:1fr}}
.panel.cardpay-detail-panel{max-width:780px;width:min(780px,94vw)}
.cardpay-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.cardpay-detail-head h2{margin:0}.cardpay-detail-head p{margin:7px 0;color:#667085}
.cardpay-detail-status{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:15px 0;color:#667085;font-size:12px}
.cardpay-detail-money,.cardpay-allocation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.cardpay-detail-money>div,.cardpay-allocation-grid>div{padding:14px;border:1px solid var(--line);border-radius:12px;background:#f8fafc;min-width:0}
.cardpay-detail-money span,.cardpay-allocation-grid span{display:block;color:#667085;font-size:12px;font-weight:750}
.cardpay-detail-money b,.cardpay-allocation-grid b{display:block;font-size:19px;margin-top:8px;overflow-wrap:anywhere}
.cardpay-detail-money>div:last-child{background:#eef8f4;border-color:#cbe5da}
.cardpay-allocation{margin-top:22px}.cardpay-allocation h3{font-size:15px;margin:0 0 12px}.cardpay-allocation h3 span{font-size:12px;color:#667085;margin-left:8px}
.cardpay-allocation-balance{display:flex;gap:22px;flex-wrap:wrap;margin-top:14px;font-size:12px;color:#667085}.cardpay-allocation-balance b{margin-left:8px;color:var(--text,#111827)}
.cardpay-allocation-empty{margin-top:20px;padding:16px;background:#fff9e9;border:1px solid #f0dfb8;border-radius:12px}.cardpay-allocation-empty p{margin:8px 0 0;color:#667085;font-size:12px;line-height:1.7}
.cardpay-detail-meta{margin:20px 0 0}.cardpay-detail-meta>div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:12px;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px}.cardpay-detail-meta dt{color:#667085}.cardpay-detail-meta dd{margin:0;overflow-wrap:anywhere}
@media(max-width:640px){.cardpay-detail-money,.cardpay-allocation-grid{grid-template-columns:1fr}.cardpay-detail-money>div,.cardpay-allocation-grid>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.cardpay-detail-money b,.cardpay-allocation-grid b{margin:0;font-size:17px}.cardpay-detail-meta>div{grid-template-columns:100px minmax(0,1fr)}}

/* RC11.8 card cancel form and immutable history */
.cardpay-cancel-form,.cardpay-cancel-pending{border:1px solid #fed7aa;background:#fff7ed;border-radius:14px;padding:16px;margin-top:18px}.cardpay-cancel-form h3,.cardpay-cancel-history h3{margin-top:0}.cardpay-cancel-form .field{max-width:520px}.cardpay-cancel-form button:disabled{opacity:.5;cursor:wait}.cardpay-cancel-history{margin-top:20px}.cardpay-cancel-history article{border:1px solid var(--line);border-radius:12px;padding:14px;margin-bottom:10px}.cardpay-cancel-history p{margin:8px 0 0;white-space:normal;word-break:break-word}

.cardpay-recovery-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.cardpay-recovery-actions button{white-space:normal}

.cardpay-recovery-mode .cardpay-filter{display:none}

/* RC11.10 monthly ledger */
.monthly-ledger-carry{display:flex;gap:16px;flex-wrap:wrap;margin:16px 0}.monthly-ledger-carry>div{flex:1;min-width:180px;display:flex;justify-content:space-between;gap:12px;padding:18px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc}.monthly-ledger-carry strong{font-size:20px}.monthly-ledger-table{min-width:760px!important;width:100%!important}.monthly-ledger-table th,.monthly-ledger-table td{white-space:nowrap}.monthly-ledger-table th:nth-child(2),.monthly-ledger-table td:nth-child(2){min-width:230px;white-space:normal;overflow-wrap:anywhere}.monthly-ledger-table td:nth-child(2) .muted{margin-top:5px}.monthly-ledger-table .num{text-align:right!important}.monthly-ledger-balance_adjustment td{background:#fffbea}.monthly-ledger-return td:nth-child(5){color:#dc2626}.monthly-ledger-summary{background:#fffbea!important}.monthly-ledger-summary .ledger-summary-item{background:transparent!important}.monthly-ledger-summary .ledger-summary-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.monthly-ledger-minus{color:#087f5b}.monthly-ledger-plus{color:#d63344}.monthly-ledger-help{line-height:1.6;margin-top:14px}.monthly-ledger-opening{background:#f8fafc}

/* RC12 consistent table axes and action sizes; widths remain responsive. */
body table.rc12-table th.rc12-align-left,body table.rc12-table td.rc12-align-left{text-align:left!important}
body table.rc12-table th.rc12-align-center,body table.rc12-table td.rc12-align-center{text-align:center!important}
body table.rc12-table th.rc12-align-right,body table.rc12-table td.rc12-align-right{text-align:right!important}
body table.rc12-table th,body table.rc12-table td{vertical-align:middle!important;box-sizing:border-box}
body table.rc12-table td>input:not([type=checkbox]):not([type=radio]),body table.rc12-table td>select,body table.rc12-table td>textarea{max-width:100%;margin-inline:auto;box-sizing:border-box}
body table.rc12-table td input[type=checkbox],body table.rc12-table th input[type=checkbox]{vertical-align:middle;margin-inline:0}
body button.rc12-action-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px;box-sizing:border-box!important;min-height:40px!important;height:auto!important;min-width:72px;padding:8px 12px!important;line-height:1.35!important;vertical-align:middle;white-space:normal}
body button.rc12-row-button{min-height:32px!important;min-width:60px;padding:5px 9px!important;font-size:12px}
body button.rc12-icon-button{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:0!important;box-sizing:border-box!important;line-height:1!important}
body .rc12-button-group{display:flex!important;align-items:stretch!important;gap:8px!important;flex-wrap:wrap}
body .rc12-button-group>button{flex:1 1 140px!important;max-width:none;align-self:stretch!important}
/* Larger read-only customer preview. */
body .preview-page{grid-template-columns:minmax(260px,300px) minmax(0,1fr)!important}
body .customer-preview-real-wrap{width:100%;justify-content:stretch}
body .customer-preview-real-frame{width:100%!important;max-width:1100px!important;height:clamp(760px,calc(100vh - 180px),1100px)!important;border-radius:18px!important}
body .customer-phone-wrap{display:block}
@media(max-width:1050px){body .preview-page{grid-template-columns:1fr!important}.preview-control{position:static!important}body .customer-preview-real-frame{height:820px!important}}
@media(max-width:700px){body .customer-preview-real-frame{height:760px!important}body button.rc12-action-button{min-height:44px!important}body button.rc12-row-button{min-height:36px!important}}

/* RC12 explicit operational reminders */
.rc12-reminder-backdrop{position:fixed;inset:0;z-index:250;background:rgba(15,23,42,.64);display:flex;align-items:center;justify-content:center;padding:20px}
.rc12-reminder-dialog{width:min(680px,100%);max-height:90vh;overflow:auto;background:#fff;border:2px solid #f59e0b;border-radius:20px;padding:24px;box-shadow:0 22px 70px rgba(0,0,0,.25)}
.rc12-reminder-dialog h2{font-size:23px;margin:0 0 16px}.rc12-reminder-dialog p,.rc12-reminder-dialog li{font-size:15px;line-height:1.7;overflow-wrap:anywhere}.rc12-reminder-dialog .rc12-button-group{margin-top:20px}
.rc12-cancel-warning .rc12-reminder-dialog{border:3px solid #dc2626}.rc12-cancel-warning h2{color:#b91c1c}.rc12-warning-critical{padding:16px;border:2px solid #fca5a5;border-radius:12px;background:#fef2f2;margin:14px 0;color:#7f1d1d}.rc12-warning-critical>strong{font-size:19px;line-height:1.5}.rc12-warning-critical h3{margin:0 0 10px;font-size:19px}.rc12-warning-check{display:flex;gap:10px;align-items:flex-start;line-height:1.6;font-size:15px;font-weight:800;margin:14px 0}.rc12-warning-check input{width:20px;height:20px;flex:0 0 20px;margin-top:3px}.rc12-reminder-settings{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.rc12-reminder-settings>.field{min-width:170px;margin:0}.rc12-reminder-settings>label{display:flex;gap:8px;align-items:center}.rc12-reminder-settings input[type=time]{min-height:40px}

/* RC12.1.3: customer DB columns share one colgroup; numeric fields remain readable. */
body #customerDbTable{table-layout:fixed!important;min-width:1320px!important;width:100%!important}
body #customerDbTable th.check-label-th,body #customerDbTable td.check-label-td{width:42px!important;min-width:42px!important;max-width:42px!important;padding:0!important;text-align:center!important;vertical-align:middle!important}
body #customerDbTable .check-label-th input[type=checkbox],body #customerDbTable .check-label-td input[type=checkbox]{display:block!important;width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;max-height:18px!important;margin:0 auto!important;padding:0!important;border-radius:3px!important;box-sizing:border-box!important;appearance:auto;vertical-align:middle!important}
body #customerDbTable th:nth-child(2),body #customerDbTable td:nth-child(2),body #customerDbTable th:nth-child(4),body #customerDbTable td:nth-child(4){width:84px!important;min-width:84px!important;max-width:84px!important}
body #customerDbTable td:nth-child(2)>input,body #customerDbTable td:nth-child(4)>input{width:100%!important;min-width:0!important;max-width:100%!important;padding-left:3px!important;padding-right:3px!important;font-size:12px!important;text-align:center!important}
body #customerDbTable .customer-credit-col,body #customerDbTable .customer-credit-cell{width:132px!important;min-width:132px!important;max-width:132px!important}
body #customerDbTable .customer-credit-cell .credit-input{width:100%!important;min-width:0!important;max-width:100%!important;font-variant-numeric:tabular-nums;padding-left:6px!important;padding-right:6px!important;text-align:right!important}
body #customerDbTable .customer-balance-col,body #customerDbTable .customer-balance-td{width:236px!important;min-width:236px!important;max-width:236px!important}
body #customerDbTable .customer-balance-cell{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;width:100%!important;min-width:0!important}
body #customerDbTable .customer-balance-cell>input{flex:1 1 132px!important;width:132px!important;min-width:120px!important;max-width:100%!important;font-variant-numeric:tabular-nums;text-align:right!important;padding-left:6px!important;padding-right:6px!important}
body #customerDbTable .customer-balance-cell>button{flex:0 0 74px!important;min-width:74px!important;max-width:74px!important;padding-left:6px!important;padding-right:6px!important;white-space:nowrap!important}

/* RC12.1.4: ID doubles; money fields fit seven/eight digits with room for signs. */
body #customerDbTable{min-width:1422px!important}
body #customerDbTable th:nth-child(2),body #customerDbTable td:nth-child(2){width:168px!important;min-width:168px!important;max-width:168px!important}
body #customerDbTable td:nth-child(2)>input{font-size:13px!important;padding-left:6px!important;padding-right:6px!important}
body #customerDbTable .customer-credit-col,body #customerDbTable .customer-credit-cell{width:120px!important;min-width:120px!important;max-width:120px!important}
body #customerDbTable .customer-credit-cell .credit-input{width:106px!important;min-width:106px!important;max-width:106px!important;font-size:13px!important}
body #customerDbTable .customer-balance-col,body #customerDbTable .customer-balance-td{width:196px!important;min-width:196px!important;max-width:196px!important}
body #customerDbTable .customer-balance-cell>input{flex:0 0 102px!important;width:102px!important;min-width:102px!important;max-width:102px!important;font-size:13px!important}

/* RC12.2 product columns: one shared width for headers and rows. */
.grade-product-table{table-layout:fixed;min-width:1466px!important;width:1466px!important}
.grade-product-table th,.grade-product-table td{min-width:0!important;max-width:none!important;box-sizing:border-box}
.grade-product-table input:not([type="checkbox"]),.grade-product-table select{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box}
.grade-product-table input[type="checkbox"]{width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;min-height:18px!important;max-height:18px!important;padding:0!important;margin:0!important;vertical-align:middle}
.grade-product-table th:first-child,.grade-product-table td:first-child{text-align:center!important}
.grade-product-table input[data-f^="box_price"]{text-align:right}
.grade-product-table .required{font-size:10px;color:#dc2626}
.individual-price-row{grid-template-columns:minmax(0,1fr) 108px 110px 52px!important}
.individual-price-row select,.individual-price-row input{width:100%!important;min-width:0!important;max-width:100%!important}
.individual-price-row .gp-mini-btn.remove{padding:0 8px!important;white-space:nowrap!important;font-size:12px!important;min-width:0!important;width:52px!important}
/* RC12.3 two pricing tabs and the dedicated general-customer workspace. */
.pricing-tabs-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pricing-tabs{display:flex;gap:6px;background:#f1f5f9;padding:4px;border-radius:12px}
body button.pricing-tab{border-radius:9px;background:transparent;color:#667085;padding:10px 20px!important;min-width:114px;font-weight:750}
body button.pricing-tab.active{background:#fff;color:#1d64d8;box-shadow:0 1px 4px #dbe3ef}
.general-pricing-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:14px;align-items:start}
.general-customer-panel h3{margin:0 0 12px}.general-customer-panel .search-input{width:100%;min-width:0}
.general-customer-list{display:grid;gap:6px;max-height:640px;overflow:auto;margin-top:12px}
body button.general-customer-item{display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:center!important;text-align:left!important;width:100%;border:1px solid #e2e8f0;border-radius:11px;background:white;color:#334155;padding:12px!important;min-height:64px}
.general-customer-item b{white-space:normal;font-size:14px}.general-customer-item span{font-size:11px;color:#738198;margin-top:4px}
body button.general-customer-item.active{border-color:#a7c7ff;background:#eef5ff;color:#1d64d8}
.general-editor-panel{min-width:0}.general-editor-panel h2{margin:0 0 5px;font-size:22px}
.general-dirty-status{background:#f1f5f9;color:#64748b;border-radius:9px;font-size:12px;padding:8px}
.general-dirty-status.dirty{background:#fff7e6;color:#b56a00}
.general-price-guide{margin:14px 0;background:#f8fafc;border:1px solid #edf1f6;border-radius:10px;padding:10px;line-height:1.6}
.general-transfer{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:12px}
.general-product-column{border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;overflow:hidden;min-width:0}
.general-column-head{display:grid;gap:10px;padding:12px;border-bottom:1px solid #e2e8f0}
.general-column-head h3{margin:0;font-size:15px}.general-column-head input.search-input{width:100%;min-width:0}
.general-bulk{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:space-between;font-size:11px}
.general-bulk label{display:flex;align-items:center;gap:5px;white-space:nowrap}
.general-bulk input[type=checkbox],.general-row-head input[type=checkbox]{width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;margin:0!important;flex:0 0 18px;padding:0!important}
body .general-bulk button.btn2{font-size:11px!important;padding:6px 8px!important;min-width:0!important;white-space:nowrap!important;min-height:32px!important}
.general-product-list{min-height:270px;max-height:620px;overflow:auto;padding:8px}
.general-product-row{background:#fff;border:1px solid #e2e8f0;border-radius:11px;padding:10px;margin-bottom:8px;min-width:0}
.general-row-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.general-row-head label{display:flex;gap:7px;align-items:center;min-width:0;flex:1}
.general-row-head label>span{min-width:0}.general-row-head b{display:block;font-size:13px;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.general-row-head small{display:block;font-size:10px;color:#8591a3;font-weight:400;margin-top:2px}
body .general-row-head button.gp-mini-btn{min-width:0!important;min-height:32px!important;padding:5px 8px!important;font-size:11px!important;white-space:nowrap!important;height:auto!important;flex:0 0 auto}
.general-price-controls{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-top:10px}
.general-price-controls input.general-unit-price{width:110px!important;min-width:0!important;max-width:100%;height:34px!important;text-align:right;border:1px solid #d5dce7;border-radius:8px;padding:0 7px;flex:1 1 100px;font-variant-numeric:tabular-nums}
.general-grade-buttons{display:flex;gap:3px;flex-wrap:wrap}
body .general-grade-buttons button.general-grade-btn{font-size:11px!important;background:#eff6ff;border:1px solid #d4e5ff;color:#1d64d8;border-radius:7px;min-width:0!important;min-height:30px!important;padding:4px 6px!important;white-space:nowrap!important;line-height:1.2!important}
body .general-grade-buttons button.general-grade-btn:disabled{background:#f1f3f5;border-color:#e5e7eb;color:#a6afb9;cursor:not-allowed}
.general-price-effective{font-size:10px;color:#738198;margin-top:5px}
.general-save-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.general-no-customer{padding:80px 16px;text-align:center}
@media(max-width:1500px){.general-pricing-layout{grid-template-columns:210px minmax(0,1fr)}.general-transfer{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}}
@media(max-width:1100px){.general-pricing-layout{grid-template-columns:190px minmax(0,1fr)}.general-transfer{grid-template-columns:1fr}.general-product-list{max-height:380px}}

/* RC12.4 compact product rows; grade selection and link switch have distinct states. */
.general-transfer{grid-template-columns:minmax(200px,.28fr) minmax(0,.72fr)}
.general-product-list{scrollbar-gutter:stable}
.general-product-row .general-product-name b{font-size:13px;line-height:1.45;overflow-wrap:anywhere;white-space:normal}
.general-product-row .general-product-name small{display:block;font-size:11px;color:#738198;margin-top:2px;font-weight:400}
.general-exposed-row{display:grid;grid-template-columns:minmax(140px,1fr) 90px 132px 134px 56px;gap:6px;align-items:center;min-width:600px;padding:10px}
.general-product-check{display:flex;align-items:center;gap:7px;min-width:0}
.general-product-check input[type=checkbox]{width:18px!important;min-width:18px!important;height:18px!important;padding:0!important;margin:0!important;flex:0 0 18px}
.general-product-check .general-product-name{min-width:0}
.general-exposed-row input.general-unit-price{width:100%!important;min-width:0!important;height:34px;border:1px solid #d5dce7;border-radius:8px;padding:0 7px;text-align:right;font-variant-numeric:tabular-nums}
.general-exposed-row input.general-unit-price[aria-invalid=true]{border-color:#dc2626;background:#fff7f7}
.general-exposed-row .general-grade-buttons{display:flex;flex-wrap:nowrap;gap:3px}
body .general-grade-buttons button.general-grade-btn{background:#f1f3f5;border:1px solid #e0e4e9;color:#687385;width:42px;min-height:32px!important;padding:4px 5px!important;border-radius:7px;font-size:11px!important}
body .general-grade-buttons button.general-grade-btn.selected{background:#e8f1ff;border:1px solid #6199f3;color:#155bd4;font-weight:850;box-shadow:inset 0 0 0 1px #6199f3}
body .general-grade-buttons button.general-grade-btn:disabled{background:#f5f6f7;border-color:#e9ecef;color:#b4bbc4;opacity:.7;cursor:not-allowed}
body button.general-link-toggle{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:5px;width:134px;border:1px solid #dce1e7;border-radius:8px;background:#f1f3f5;color:#687385;padding:6px 7px!important;min-width:0!important;min-height:34px!important;white-space:nowrap!important;font-size:11px!important}
.general-link-toggle b{font-size:10px;background:#dce1e7;border-radius:9px;min-width:28px;text-align:center;padding:3px 4px;color:#687385}
body button.general-link-toggle.is-on{background:#e8f1ff;border-color:#6199f3;color:#155bd4;font-weight:800}
.general-link-toggle.is-on b{background:#2563eb;color:#fff}
body .general-exposed-row button.gp-mini-btn.remove{width:56px;min-width:0!important;padding:5px 6px!important;min-height:32px!important;white-space:nowrap!important;font-size:11px!important}
.general-exposed-row button:focus-visible,.general-exposed-row input:focus-visible{outline:2px solid #2563eb;outline-offset:2px}
@media(max-width:1500px){.general-pricing-layout{grid-template-columns:185px minmax(0,1fr)}.general-transfer{grid-template-columns:minmax(180px,.25fr) minmax(0,.75fr)}}
@media(max-width:1100px){.general-transfer{grid-template-columns:1fr}.general-exposed-row{min-width:600px}}

/* RC12.6 help documents and answer sources */
.ai-help-context-bar{display:flex;gap:6px;align-items:center;padding:8px 14px;background:#f8fafc;border-bottom:1px solid #e2e8f0;flex-wrap:wrap}.ai-help-context-bar>span{font-size:11px;color:#64748b;flex:1 1 140px;line-height:1.5}.ai-help-context-bar button{background:#fff;color:#475569;border:1px solid #dce3ec;border-radius:7px;font-size:11px;padding:5px 7px;white-space:nowrap}
.ai-help-answer-type{font-size:10px;color:#64748b;font-weight:800;margin-bottom:5px}.ai-help-sources{display:flex;gap:5px;flex-wrap:wrap;border-top:1px solid #e2e8f0;margin-top:11px;padding-top:9px}.ai-help-sources>span{width:100%;font-size:10px;color:#64748b}.ai-help-sources button{font-size:11px;background:#eef5ff;color:#1d4ed8;border:1px solid #cfe0fc;padding:5px 7px;border-radius:7px;text-align:left;line-height:1.5}
.ai-help-article{margin:8px 12px 0;border:1px solid #cddff9;border-radius:10px;background:#f4f8ff;padding:12px;max-height:46vh;overflow:auto;flex:0 1 auto;min-height:100px}.ai-help-article[hidden]{display:none!important}.ai-help-article-head{display:flex;justify-content:space-between;gap:12px;font-size:13px}.ai-help-article-head button{background:transparent;color:#475569;font-size:20px;padding:0 4px}.ai-help-article-text{font-size:12px;line-height:1.8;margin:10px 0;color:#334155;overflow-wrap:anywhere}.ai-help-article>.btn2{font-size:11px;padding:6px 9px}.ai-help-panel .ai-help-body{min-height:100px}
body .ai-help-panel button{min-width:0!important;min-height:28px!important;height:auto!important;line-height:1.5!important}body .ai-help-panel .ai-help-send{min-width:48px!important;min-height:42px!important}body .ai-help-panel .ai-help-close{min-width:32px!important;height:32px!important}body .ai-help-panel .ai-help-chip{font-size:11px!important}

.ai-help-panel{width:min(460px,calc(100vw - 28px));height:min(740px,calc(100vh - 112px))}.ai-help-panel.open{display:flex;flex-direction:column}.ai-help-head,.ai-help-context-bar,.ai-help-foot{flex:0 0 auto}.ai-help-panel .ai-help-body{flex:1 1 auto;min-height:90px}.ai-help-panel .ai-help-article{flex:0 1 250px;max-height:36%;min-height:70px}.ai-help-context-bar button{font-size:11px!important}.ai-help-quick .ai-help-chip{flex:0 0 auto}
.monthly-ledger-table tr.monthly-ledger-date-start td{border-top:2px solid #b9c6d6!important}
.monthly-ledger-table tr.monthly-ledger-date-start td:first-child{font-weight:850;color:#344054}

/* Group-local customer search: do not redraw product/price drafts. */
.gp-customer-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.gp-customer-heading h3{margin:0;font-size:16px;line-height:1.5}
.gp-customer-heading small{font-size:12px;font-weight:500;color:#667085;white-space:nowrap}
.gp-customer-heading .gp-customer-search{width:300px;max-width:100%;min-width:0;flex:0 1 300px}
.gp-customer-heading .gp-customer-search::placeholder{color:#98a2b3}
@media(max-width:600px){.gp-customer-heading .gp-customer-search{width:100%;flex-basis:100%}}
