@charset "utf-8";
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&display=swap");


body, html {
    height: 100%;
    font-family: 'Noto Sans KR', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    background: #fafafa;
}
button, input, select, textarea{font-family: 'Noto Sans KR', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;}
a { text-decoration: none; color: inherit; }

/* ===== DESIGN TOKENS ===================================== */
:root {
  --orange: #ff5e22; --orange-dark: #e85a1c;
  --orange-light: #fff4ee; --orange-mid: #ffe4d0;
  --text: #18181e; --text-mid: #505060; --text-light: #9898b0;
  --border: #e8e8f0; --border-light: #f0f0f8;
  --radius: 10px; --radius-sm: 6px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --green: #29a96e; --red: #e94f4f;
}

/* ===== PAGE TITLE ========================================= */
.page-title {
  background: #fff; padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 15px; font-weight: 700; color: var(--text);
  position: sticky; top: 0; z-index: 5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.page-title .crumb { font-size: 11.5px; font-weight: 500; color: var(--text-light); margin-right: 8px; }

/* ===== WRAP ========================================= */
.p-wrap { padding: 16px; display: flex; flex-direction: column; gap: 12px;}

/* ===== CARD ===================================== */
.p-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.p-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; border-bottom: 1px solid var(--border-light);
}
.p-card-head h3 { font-size: 13px; font-weight: 700; color: var(--text); }
.p-card-body { padding: 18px; }

/* ===== FILTER BOX ===================================================== */
.filter-box {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}
.filter-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.filter-row + .filter-row { margin-top: 9px; }
.f-label { font-size: 11px; color: var(--text-light); white-space: nowrap; flex-shrink: 0; }
.f-sep { width: 1px; height: 20px; background: var(--border); margin: 0 3px; flex-shrink: 0; }
.f-tilde { color: var(--text-light); font-size: 12px; }
.f-select, .f-input, .f-date, .f-textarea,  .input_txt2{
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 5px 10px; font-size: 12px; font-family: inherit;
  color: var(--text); background: #fff; outline: none;
  transition: border-color 0.14s;height:auto; box-sizing:border-box;
}
.iptTmp input{
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 5px 10px; font-size: 12px; font-family: inherit;
  color: var(--text); outline: none;
  transition: border-color 0.14s;height:auto;
}
.f-select:focus, .f-input:focus, .f-date:focus, .f-textarea:focus { border-color: var(--orange); }
.f-date { width: 126px; }
.f-textarea { resize: vertical; min-height: 80px; width: 100%; padding: 8px 10px; }
.period-btns { display: flex; gap: 3px; }
.period-btns button {
  padding: 5px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 11.5px; font-family: inherit; background: #fff; color: var(--text-mid);
  cursor: pointer; transition: all 0.13s;
}
.period-btns button:hover { border-color: var(--orange); color: var(--orange); }
.period-btns button.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-search {
  padding: 6px 20px; background: var(--orange); color: #fff; border: none;
  border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: background 0.14s;
  box-shadow: 0 2px 8px rgba(255,94,34,0.28);
}
.btn-search:hover { background: var(--orange-dark); }
.filter-hint { font-size: 10.5px; color: #c8c8d8; margin-top: 7px; }
.scan-input-row .f-input {
    width: 280px;
    font-size: 13px;
}

/* ===== BUTTONS ============================================= */
.btn { padding: 7px 18px; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 600; font-family: inherit; cursor: pointer; transition: all 0.14s; border: 1px solid var(--border); }
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); box-shadow: 0 2px 8px rgba(255,94,34,0.28); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary { background: #fff; color: var(--text-mid); }
.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }
.btn-md { padding: 5px 12px; font-size: 11.5px; }
.btn-sm { padding: 4px 12px; font-size: 11.5px; }
.btn-xs { padding: 2px 8px; font-size: 10.5px; border-radius: 4px; }
.btn-danger { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.btn-danger:hover { background: #fecaca; }
.btn-blueline{color:#0ea5e9;border-color:#bae6fd;text-decoration:none}
.btn-primaryline{color: var(--orange); border-color:var(--orange);text-decoration:none}

/* ===== 버튼 위치 ========================================= */
.btn-area{margin:0px; overflow:hidden;}
.btn-area .fl{float:left; margin-right:10px}
.btn-area .fr{float:right; margin-left:10px}

/* ===== 체크박스 ===================================== */
.check input[type="checkbox"] {
    width: 15px;  height: 15px; accent-color: var(--orange);position:relative; top:-2px
}


/* ===== TABLE ========================================= */
.table-wrap {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.table-search{padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;}
.table-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px; border-bottom: 1px solid var(--border-light);
}
.table-meta .count { font-size: 12px; color: var(--text-mid); }
.table-meta .count strong { color: var(--orange); font-weight: 700; }

.bulk-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.expand-all-btn { order: -10; }
.bulk-btn {
  padding: 5px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text-mid); font-size: 11.5px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all 0.13s;
}
.bulk-btn:hover { border-color: var(--orange); color: var(--orange); }
.bulk-btn.primary {
  background: var(--orange); color: #fff; border-color: var(--orange);
  box-shadow: 0 2px 8px rgba(255,94,34,0.22);
}
.bulk-btn.primary:hover { background: var(--orange-dark); color: #fff; }
.bulk-note { font-size: 11px; color: var(--text-light); }
.payment-only-meta.hidden { display: none !important; }

.jos-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 11.5px; }
.jos-tbl thead th {
  background: #f8f8fc; color: var(--text-light); font-weight: 600;
  font-size: 10.5px; text-align: center; padding: 8px 5px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
  position: sticky; top: 0; z-index: 2;
}
.jos-tbl tbody td {
  padding: 9px 5px; border-bottom: 1px solid var(--border-light);
  vertical-align: middle; text-align: center; color: var(--text);
  background: #fff;
}
.jos-tbl tbody .main-row { cursor: po inter; transition: background 0.12s; }
.jos-tbl tbody .main-row td {
  border-top: 12px solid #edf0f5;
  border-bottom: 0;
  box-shadow: inset 0 1px 0 #fff;
}
.jos-tbl tbody .main-row:first-child td { border-top: none; }
.jos-tbl tbody .main-row:hover td { background: #fafbff; }
.jos-tbl tbody .main-row:not(.is-collapsed) td {
  background: #fffdfb;
  border-bottom-color: #ead8ce;
}
.jos-tbl tbody .main-row.is-target-order td {
  background: #fff7ed !important;
  /*box-shadow: inset 0 0 0 2px rgba(255,94,34,0.32);*/
}

.p-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.p-table thead th {
  background: #f8f8fc; color: var(--text-light); font-weight: 600;
  font-size: 11px; text-align: center; padding: 8px 8px;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.p-table tbody td {
  padding: 9px 8px; border-bottom: 1px solid var(--border-light);
  vertical-align: middle; text-align: center; color: var(--text); font-size: 11.5px;
}
.p-table tbody td.col-title { text-align: left; padding-left: 16px; }
.p-table tbody td.col-title a { color: var(--text); text-decoration: none; }
.p-table tbody td.col-title a:hover { color: var(--orange); }
.p-table tbody tr:hover { background: #fafbff; cursor: pointer; }
.p-table tbody tr:last-child td { border-bottom: none; }

.sender-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.sender-table thead th {
  background: #f8f8fc; color: var(--text-light); font-size: 11px; font-weight: 600;
  padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: center;
}
.sender-table tbody td {
  padding: 10px 10px; border-bottom: 1px solid var(--border-light);
  color: var(--text); text-align: center; font-size: 12px;
}
.sender-table tbody tr:last-child td { border-bottom: none; }
.sender-empty {
  padding: 22px 10px !important;
  color: var(--text-light) !important;
  background: #fcfcfd;
}
.is-hidden { display: none !important; }

.section-label {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; font-size: 13px; font-weight: 800; color: var(--text);
}
.table-meta .section-label { margin-bottom: 0; }
.section-label::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px;
  background: var(--orange); margin-right: 7px; flex: 0 0 auto;
}
.section-label span:first-child { display: flex; align-items: center; }
.selected-count { font-size: 12px; font-weight: 600; color: var(--text-mid); }
.selected-count strong { color: var(--orange); }

/* Status tags */
.stag { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 10px; font-weight: 600; white-space: nowrap; }
.s-done { background: #d1fae5; color: #065f46; }
.s-wait { background: #e0e7ff; color: #3730a3; }
.s-pay  { background: #fef3c7; color: #92400e; }
.s-ing  { background: #f0f0ff; color: #5050c8; }
.s-end  { background: #eeeeee; color: #666666; }
.s-err  { background: #fee2e2; color: #991b1b; }
.s-none { background: #f3f4f6; color: #9ca3af; }
.status-stack {
  display: grid; gap: 4px; justify-items: center;
}
.product-state-text {
  display: inline-block; font-size: 11px; font-weight: 800; line-height: 1.35;
}
.product-state-wait { color: #64748b; }
.product-state-partial { color: #d97706; }
.product-state-done { color: #047857; }
.product-state-error { color: #b91c1c; }
.product-state-soldout { color: #7c3aed; }
.product-state-muted { color: #9898b0; }
.order-state-badge {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.34);
}
.sub-state-text {
  font-size: 10px; color: #9898b0; line-height: 1.35;
}
.product-status-cell {
  display: grid; justify-items: center; gap: 4px;
}
.panel-route-card {
  --route-soft: #f8fafc;
  --route-border: #e2e8f0;
  --route-text: #475569;
  display: grid; gap: 2px; justify-items: center;
  min-width: 94px; max-width: 128px; margin: 0 auto;
  padding: 7px 8px; border: 1px solid var(--route-border);
  border-radius: 9px; background: var(--route-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.panel-route-card.panel-return {
  --route-soft: #fff7ed;
  --route-border: #fed7aa;
  --route-text: #ea580c;
}
.panel-route-card.panel-io {
  --route-soft: #eff6ff;
  --route-border: #bfdbfe;
  --route-text: #2563eb;
}
.panel-route-card.panel-error {
  --route-soft: #fef2f2;
  --route-border: #fecaca;
  --route-text: #dc2626;
}
.panel-route-card.panel-stock {
  --route-soft: #ecfdf5;
  --route-border: #bbf7d0;
  --route-text: #059669;
}
.panel-route-panel {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 18px; padding: 1px 7px; border-radius: 999px;
  background: rgba(255,255,255,0.78); color: var(--route-text);
  border: 1px solid rgba(255,255,255,0.88);
  font-size: 9.5px; font-weight: 900; line-height: 1.2;
}
.panel-route-type {
  margin-top: 2px; font-size: 11px; font-weight: 800; color: var(--text);
  line-height: 1.25;
}
.panel-route-method {
  font-size: 10.5px; color: #505060; line-height: 1.25;
}
.panel-route-transport {
  font-size: 10px; color: #7a7a94; line-height: 1.25;
}
.no-cell {
  color: #a0a0ba; font-size: 10.5px;
}
.no-cell-stack {
  display: grid; gap: 4px; justify-items: center;
  transform: translateY(13px);
}
.no-value { font-weight: 700; color: #8c8ca6; line-height: 1.25; }
.no-actions {
  display: flex; justify-content: center; margin-top: 1px;
}
.no-actions .tbl-btn {
  padding: 2px 6px; font-size: 9.5px; border-color: #ffe0cf;
  background: #fff8f4; color: var(--orange);
}
.order-no-cell {
  font-size: 11.5px; font-weight: 800; line-height: 1.35;
  word-break: break-all;
}
.order-no-value { display: block; }
.order-center {
  display: block; margin-top: 1px;
  font-size: 10px; color: #c8c8d8; font-weight: 500;
}
.order-center:empty { display: none; }
.member-cell { font-size: 11px; line-height: 1.45; }
.member-name { color: #9898b0; font-size: 10.5px; }
.receiver-name { display: block; font-weight: 700; }
.addr-type-label {
  display: block; margin-top: 2px;
  color: #a4a4b8; font-size: 10px; font-weight: 600; line-height: 1.35;
}
.order-tracking-cell {
  font-size: 11px; line-height: 1.45; word-break: break-all;
}
.order-num {
  display: block; font-weight: 700; color: var(--text);
}
.tracking-num {
  display: block; margin-top: 2px;
  font-size: 10px; color: #8c8ca6;
}
/* Table action buttons */
.tbl-btn {
  display: inline-block; padding: 2px 7px; border: 1px solid var(--border);
  border-radius: 4px; font-size: 10px; color: var(--text-mid);
  cursor: pointer; background: #fff; text-decoration: none;
  transition: all 0.12s; white-space: nowrap; margin: 1px 0;
}
.tbl-btn:hover { border-color: var(--orange); color: var(--orange); }
.tbl-btn.or { background: var(--orange); color: #fff; border-color: var(--orange); }
.tbl-btn.or:hover { background: var(--orange-dark); }
.tbl-btn.pay { background: #ff5e22; color: #fff; border-color: #ff5e22; }
.tbl-btn.warn { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.tbl-btn.danger { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.tbl-btn.done { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.tbl-btn.soft { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }
.tbl-btn.photo { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.tbl-btn.soldout {
  background: #6d5dfc; color: #fff; border-color: transparent;
  border-width: 0; padding: 3px 8px; box-shadow: 0 3px 8px rgba(109,93,252,0.22);
}
.tbl-btn.soldout:hover { background: #5948df; color: #fff; }
.tbl-btn:disabled,
.tbl-btn.is-disabled {
  background: #f8fafc; color: #b8b8c8; border-color: #e7e9f0;
  cursor: not-allowed; pointer-events: none;
}
.order-inline-actions {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 3px; margin-top: 4px;
}
.action-stack {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 3px; align-items: center; max-width: 130px; margin: 0 auto;
}
.stock-row td {
  border-top: 10px solid #edf0f5;
  border-bottom-color: #d7dce6;
}
.stock-row:first-child td { border-top: none; }
.stock-row:hover td { background: #fafbff; }
.stock-name-cell { text-align: center; min-width: 150px; }
.stock-customs { color: var(--text-light); font-size: 10.5px; line-height: 1.35; }
.stock-product-name { color: var(--text); font-size: 11.5px; font-weight: 800; line-height: 1.4; margin-top: 2px; }
.stock-meta {
  color: var(--text-mid); font-size: 10.5px; line-height: 1.45;
  word-break: break-all;
}
.stock-meta strong { color: var(--text); font-size: 11px; }
.stock-meta .muted { color: var(--text-light); }
.stock-meta-empty { color: #b8b8c8; font-weight: 700; }
.stock-draft-editor {
  display: grid; gap: 5px; max-width: 180px; margin: 0 auto;
}
.stock-draft-input {
  width: 100%; box-sizing: border-box;
  height: 25px; padding: 4px 7px;
  border: 1px solid #dbe1ec; border-radius: 5px;
  color: var(--text); font-size: 10.5px; font-family: inherit;
  text-align: center; outline: none; background: #fff;
}
.stock-draft-input:focus { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(255,94,34,0.10); }
.stock-draft-actions { display: flex; justify-content: center; gap: 4px; }
.stock-option {
  color: var(--text-mid); font-size: 10.5px; line-height: 1.45;
  word-break: break-word;
}
.stock-price { color: var(--text); font-size: 11px; line-height: 1.55; }
.stock-price strong { color: var(--orange); font-size: 12px; }
.stock-dates { color: var(--text-light); font-size: 10px; line-height: 1.45; }
.stock-action-stack { margin-top: 6px; }
.stock-status-cell {
  display: grid; justify-items: center; gap: 5px;
}
.stock-reason-btn { padding-inline: 9px; }
.stock-usage-modal { width: min(780px, calc(100vw - 32px)); }
.stock-usage-modal .jos-modal-head { text-align: center; padding: 12px 20px; }
.stock-usage-body { padding: 0 10px 18px; }
.stock-usage-table {
  width: 100%; border-collapse: collapse; table-layout: fixed;
  font-size: 12px; color: var(--text-mid);
}
.stock-usage-table th,
.stock-usage-table td {
  padding: 9px 8px; text-align: center; border-bottom: 1px solid #d8d8e2;
}
.stock-usage-table th {
  color: #505060; font-weight: 700; background: #fbfbfe;
}
.stock-usage-table td { height: 34px; }
.stock-usage-empty { color: #a0a0b8; }
.stock-usage-actions { justify-content: center; padding-top: 16px; }
.stock-reason-modal { width: min(520px, calc(100vw - 32px)); }
.stock-reason-modal .jos-modal-head { text-align: center; }
.stock-reason-box {
  margin-top: 10px; padding: 14px 15px;
  border: 1px solid #fecaca; border-radius: 8px;
  background: #fef2f2; color: #7f1d1d;
  font-size: 12px; font-weight: 700; line-height: 1.65;
  white-space: pre-line;
}

/* Expand toggle */
.expand-icon {
  display: inline-block; font-size: 10px; color: #c8c8d8;
  transition: transform 0.2s; margin-left: 3px;
}
.main-row.is-collapsed .expand-icon { transform: rotate(-90deg); }

/* Expand row */
.expand-row { display: table-row; }
.expand-row.is-collapsed { display: none; }
.expand-cell {
  padding: 12px 18px 16px;
  background: #fffdfa;
  border: 1px solid #e2e6ee;
  border-top: none;
  border-bottom-color: #d5dbe6;
}
.detail-list {
  list-style: none; margin: 0 0 12px; padding: 0;
  display: grid; gap: 5px; font-size: 11.5px;
}
.detail-list li {
  display: grid; grid-template-columns: 118px 1fr auto;
  align-items: center; gap: 8px;
}
.dk { color: var(--text-light); white-space: nowrap; text-align: right; }
.dv, input.dv {
  min-height: 24px; padding: 4px 8px; border: 1px solid #ececf4;
  border-radius: 4px; background: #fff; color: var(--text); text-align: left;font-size: 11.5px; box-sizing:border-box
}
 input.dv:read-only:focus{outline: none;}
.detail-list .tbl-btn { margin: 0; }

.sub-tbl { width: 100%; border-collapse: collapse; font-size: 11px; border-radius: 8px; overflow: hidden; }
.sub-tbl th {
  background: #eeeef8; color: var(--text-mid); font-size: 10px;
  padding: 6px 8px; text-align: center; border: 1px solid #e0e0ec;
}
.sub-tbl td { padding: 7px 8px; border: 1px solid #ebebf4; text-align: center; vertical-align: middle; }
.sub-tbl tbody tr:hover { background: #f5f5ff; }
.sub-tbl .f-input, .sub-tbl .f-select{padding: 2px 3px;}


.prod-name-cell { text-align: left; max-width: 220px; }
.prod-name-ko { font-size: 11px; color: var(--text); line-height: 1.4; }
.prod-name-en { font-size: 10px; color: var(--text-light); margin-top: 1px; }
.prod-thumb {
  width: 50px; height: 50px; border-radius: 4px;
  background: #f2f2f7; border: 1px solid #e4e4ef;
  overflow: hidden; display: flex; align-items: center;
  justify-content: center; margin: 0 auto;
}
.prod-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.prod-thumb-missing {
  color: #b8b8c8; font-size: 10px; line-height: 1.2;
}
.modal-mask {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(0,0,0,0.42);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-mask.show { display: flex; }
.jos-modal {
  width: min(460px, 100%); background: #fff; border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.24); overflow: hidden;
}
.photo-modal { width: min(1120px, calc(100vw - 32px)); }
.bulk-pay-modal { width: min(760px, calc(100vw - 32px)); }
.bulk-pay-modal .method-option.unavailable { background: #f8f8f9; cursor: not-allowed; opacity: .75; }
.bulk-pay-modal .method-option.unavailable .method-sub { color: var(--text-light); }
.bulk-pay-table-scroll { max-height: 260px; overflow-y: auto; border: 1px solid var(--border-light); border-radius: var(--radius-sm); }
.bulk-pay-table-scroll .p-table thead th { position: sticky; top: 0; z-index: 1; }
.bulk-pay-table-scroll .p-table select { font-size: 11.5px; padding: 3px 4px; max-width: 150px; }
.jos-modal-head {
  padding: 16px 20px 12px; border-bottom: 1px solid var(--border-light);
  font-size: 14px; font-weight: 800; color: var(--text);
}
.jos-modal-body { padding: 18px 20px; font-size: 12.5px; color: var(--text-mid); line-height: 1.7; }
.jos-modal-total {
  margin-top: 12px; padding: 12px 14px; background: var(--orange-light);
  border: 1px solid var(--orange-mid); border-radius: 8px;
  color: var(--text); font-weight: 700;
}
.jos-modal-total strong { color: var(--orange); font-size: 18px; }
.payment-amount-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
}
.payment-amount-label { min-width: 0; }
.payment-amount-value {
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px;
  min-width: 156px; text-align: right;
}
.payment-amount-row strong,
.payment-balance-after strong {
  display: inline-block; min-width: 92px; text-align: right;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
.jos-modal-total.deposit-balance { background: #f8fafc; border-color: #dbeafe; }
.jos-modal-total.deposit-balance strong { color: #2563eb; }
.jos-modal-total.deposit-balance.is-warning strong { color: #dc2626; }
.deposit-charge-link {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; padding: 0 10px; border-radius: 999px;
  border: 1px solid #bfdbfe; background: #eff6ff; color: #2563eb;
  font-size: 11px; font-weight: 800; text-decoration: none;
  white-space: nowrap;
}
.deposit-charge-link:hover { background: #dbeafe; border-color: #93c5fd; }
.payment-balance-after {
  margin-top: 8px; color: var(--text-light); font-size: 11.5px;
}
.payment-balance-after.is-warning { color: #dc2626; font-weight: 700; }
.jos-modal-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 20px 18px; border-top: 1px solid var(--border-light);
}
.photo-preview { display: grid; gap: 14px; }
.photo-preview-head {
  display: flex; justify-content: space-between; gap: 14px; align-items: flex-start;
  padding-bottom: 10px; border-bottom: 1px solid var(--border-light);
}
.photo-preview-title { font-size: 15px; font-weight: 800; color: var(--text); line-height: 1.4; }
.photo-preview-sub { margin-top: 3px; color: var(--text-light); font-size: 11px; }
.photo-preview-tracking {
  padding: 6px 10px; border: 1px solid var(--orange-mid); border-radius: 999px;
  background: var(--orange-light); color: var(--orange); font-size: 11px; font-weight: 800;
  white-space: nowrap;
}
.photo-gallery {
  display: block;
  max-height: min(72vh, 780px); overflow-y: auto; overflow-x: hidden; padding-right: 6px;
  scroll-behavior: smooth;
}
.photo-card {
  border: 1px solid #e1e5ee; border-radius: 10px; overflow: hidden;
  background: #fff; box-shadow: 0 8px 22px rgba(30,30,48,0.08);
}
.photo-card + .photo-card { margin-top: 18px; }
.photo-card img {
  width: 100%; height: clamp(560px, 68vh, 760px);
  object-fit: contain; display: block; background: #f8fafc;
}
.photo-card-meta {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 10px 12px; font-size: 11px; color: var(--text-mid);
}
.photo-card-name { color: var(--text); font-weight: 800; text-align: left; }
.photo-card-status { color: var(--orange); font-weight: 800; white-space: nowrap; }
.photo-tracking-tabs {
  display: flex; flex: 1; gap: 6px; flex-wrap: wrap; justify-content: flex-start;
}
.photo-tab {
  padding: 6px 10px; border: 1px solid #dde2ec; border-radius: 999px;
  background: #fff; color: var(--text-mid); font-size: 11px; font-weight: 800;
  cursor: pointer;
}
.photo-tab.active {
  background: var(--orange); border-color: var(--orange);
  color: #fff; box-shadow: 0 4px 12px rgba(255,94,34,0.24);
}
@media (max-width: 560px) {
  .photo-preview-head { display: grid; }
  .photo-preview-tracking { justify-self: start; white-space: normal; }
  .photo-gallery { max-height: 68vh; padding-right: 0; }
  .photo-card img { height: clamp(320px, 58vh, 520px); }
  .jos-modal-actions { align-items: flex-start; flex-direction: column; }
}

/* ===== FORM LAYOUT ============================================= */
.form-grid { display: grid; grid-template-columns: 160px 1fr; gap: 0; }
.form-row { display: contents; }
.form-row .form-label {
  background: #f8f8fc; border: 1px solid var(--border);
  padding: 10px 14px; font-size: 12px; font-weight: 600; color: var(--text-mid);
  display: flex; align-items: center; border-top: none;
}
.form-row:first-child .form-label { border-top: 1px solid var(--border); }
.form-row .form-value {
  border: 1px solid var(--border); border-left: none;
  padding: 8px 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border-top: none;
}
.form-row:first-child .form-value { border-top: 1px solid var(--border); }
.form-row .form-label.req::after { content: ' *'; color: var(--orange); }
.form-row .form-value .radio-col{display:flex;align-items:center;gap:5px;font-size:12.5px;cursor:pointer}
.form-btn{margin-top:16px;display:flex;gap:8px;justify-content:flex-start} 

/* Info display (readonly) */
.info-grid { display: grid; grid-template-columns: 140px 1fr 140px 1fr; gap: 0; }
.info-label {
  background: #f8f8fc; border: 1px solid var(--border); border-top: none;
  padding: 10px 14px; font-size: 11.5px; font-weight: 600; color: var(--text-mid);
  display: flex; align-items: center;
}
.info-label:first-child, .info-label + .info-value + .info-label:nth-child(3) { }
.info-value {
  border: 1px solid var(--border); border-left: none; border-top: none;
  padding: 10px 14px; font-size: 12px; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.info-grid .info-label:nth-child(1), .info-grid .info-label:nth-child(2) { border-top: 1px solid var(--border); }
.info-grid .info-value:nth-child(1), .info-grid .info-value:nth-child(2) { border-top: 1px solid var(--border); }

/* ===== NOTICE / EMPTY STATE ========================================= */
.notice-tabs {
  display: flex; align-items: center; gap: 4px;
  padding: 4px; border: 1px solid var(--border);
  background: #fff; border-radius: 999px; width: fit-content;
}
.notice-tab {
  border: none; border-radius: 999px; background: transparent;
  padding: 7px 14px; font-size: 12px; font-weight: 700;
  font-family: inherit; color: var(--text-mid); cursor: pointer;
}
.notice-tab.active {
  background: var(--orange); color: #fff;
  box-shadow: 0 3px 10px rgba(255,94,34,0.22);
}
.notice-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.notice-help { color: var(--text-light); font-size: 11.5px; line-height: 1.5; }
.notice-page { display: none; }
.notice-page.active { display: block; }
.notice-important { background: #fffbf5; }
.notice-important td { font-weight: 600; }
.notice-badge {
  display: inline-block; min-width: 34px;
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--orange); border-radius: 4px;
  padding: 1px 6px; vertical-align: middle;
  line-height: 18px; text-align: center;
}
.notice-badge.always { background: #2563eb; }
.notice-title-link {
  color: var(--text); cursor: pointer; text-decoration: none;
}
.notice-title-link:hover {
  color: var(--orange); text-decoration: underline;
}
.always-list {
  display: grid; grid-template-columns: 1fr;
  gap: 12px;
}
.always-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; padding: 16px 18px; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.14s, box-shadow 0.14s, transform 0.14s;
}
.always-card:hover {
  border-color: var(--orange-mid);
  box-shadow: 0 8px 22px rgba(255,94,34,0.10), var(--shadow-sm);
  transform: translateY(-1px);
}
.always-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 9px;
}
.always-card-title {
  display: flex; align-items: center; gap: 7px;
  min-width: 0; font-size: 13px; font-weight: 800; color: var(--text);
}
.always-card-title span:last-child, .always-card-title a {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.always-card-date { color: var(--text-light); font-size: 11px; white-space: nowrap; }
.always-card p {
  margin: 0; color: var(--text-mid); font-size: 12px; line-height: 1.65;
}
.always-card-foot {
  margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--border-light);
  color: var(--text-light); font-size: 11px;
}
.always-note {
  border: 1px solid #dbeafe; border-radius: var(--radius-sm);
  background: #eff6ff; color: #1e40af;
  padding: 12px 14px; font-size: 12px; line-height: 1.6;
  margin-bottom: 12px;
}
@media (max-width: 900px) {
  .always-list { grid-template-columns: 1fr; }
}
.notice-view-card { overflow: hidden; }
.notice-view-head {
  padding: 22px 24px 20px; border-bottom: 1px solid var(--border-light);
  background: linear-gradient(180deg, #fff, #fffaf7);
}
.notice-view-kicker {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
  color: var(--text-light); font-size: 12px; font-weight: 700;
}
.notice-view-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 22px; padding: 0 9px;
  border-radius: 999px; background: var(--orange); color: #fff;
  font-size: 11px; font-weight: 800;
}
.notice-view-badge.always { background: #2563eb; }
.notice-view-title {
  margin: 0; color: var(--text); font-size: 22px; line-height: 1.36;
  letter-spacing: 0; word-break: keep-all;
}
.notice-view-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; color: var(--text-light); font-size: 12px;
}
.notice-view-body {
  padding: 28px 24px 32px; color: var(--text); font-size: 14px;
  line-height: 1.9; word-break: keep-all;
}
.notice-view-body p { margin: 0 0 16px; }
.notice-view-summary {
  margin: 0 0 22px; padding: 14px 16px;
  border: 1px solid #fed7aa; border-radius: var(--radius);
  background: #fff7ed; color: #9a3412; font-size: 13px; font-weight: 700;
}
.notice-view-actions {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 16px 24px; border-top: 1px solid var(--border-light); background: #fafafa; 
}
.notice-view-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: #fff; color: var(--text-mid);
  font-size: 12px; font-weight: 800; text-decoration: none;cursor: pointer;
}
.notice-view-btn.primary { border-color: var(--orange); background: var(--orange); color: #fff; }
.notice-view-btn:hover { border-color: var(--orange); color: var(--orange); }
.notice-view-btn.primary:hover { color: #fff; filter: brightness(0.98); }
.notice-missing { padding: 32px 24px; color: var(--text-mid); font-size: 13px; }
.datawrite-wrap{width:100%;}
.datawrite-wrap table{background:#fff; width:100%; border-collapse:collapse;}
/* .datawrite-wrap의 실제 th/td 테두리·배경 스타일은 원래 Library/Css(Rnl)/admin_board.css에만
   있고(njos는 Jos_Head.asp가 그 파일을 같이 로드해서 자동으로 적용됨), FrontRnl 페이지는 그
   파일을 안 불러오는데 admin 전용 스타일시트를 통째로 끌어오긴 부담스러워서 여기(user_njos.css,
   bbs_v.asp/bbs_W.asp가 이미 로드 중)에 필요한 부분만 옮겨옴 */
.datawrite-wrap th{
	text-align:left; padding:8px 0 8px 8px; vertical-align:middle;
	border:1px solid var(--border-light); background:#fbfbfb;
	color:#333; font-size:12px; font-weight:bold; line-height:150%;
}
.datawrite-wrap td{
	text-align:left; vertical-align:middle; padding:7px 5px;
	border:1px solid var(--border-light);
	color:var(--text-mid); font-size:12px; line-height:150%;
}
@media (max-width: 640px) {
  .notice-view-title { font-size: 18px; }
  .notice-view-head, .notice-view-body, .notice-view-actions{ padding-left: 18px; padding-right: 18px; }
}
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-light);
}
.empty-state .empty-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.5; }
.empty-state p { font-size: 13px; }

/* ===== PAGINATION ============================================= */
.pagination { display: flex; justify-content: center; gap: 3px; padding: 14px; margin-bottom:10px}
.pagination .paginate{padding:0px;}
.pagination .paginate a.num{border-radius: var(--radius-sm);transition: all 0.12s;}
.pagination .paginate a.num span,.pagination .paginate strong span{padding:0 8px 0 6px}
.pagination .paginate strong {background: var(--orange);border-color: var(--orange); font-weight: 700;border-radius: var(--radius-sm);}
.pagination .paginate strong a{ color: #fff; }
.pagination .paginate a.num:hover { border-color: var(--orange); color: var(--orange); }
.pg-btn {
  width: 30px; height: 30px; border: 1px solid var(--border);
  background: #fff; border-radius: var(--radius-sm);
  font-size: 12px; color: var(--text-mid); cursor: pointer; font-family: inherit;
  transition: all 0.12s; display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.pg-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); font-weight: 700; cursor: default; }
.pg-btn:hover:not(.active) { border-color: var(--orange); color: var(--orange); }
.pg-btn[disabled], .pg-btn.disabled { opacity: 0.4; cursor: default; pointer-events: none; }


/* ===== FILE UPLOAD ========================================= */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 36px 24px; text-align: center; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.upload-zone:hover { border-color: var(--orange); background: var(--orange-light); }
.upload-zone .upload-icon { font-size: 32px; margin-bottom: 10px; opacity: 0.6; }
.upload-zone p { font-size: 13px; color: var(--text-mid); }
.upload-zone small { font-size: 11px; color: var(--text-light); }

/* ===== ALERT/INFO BOXES ===================================== */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 12px; margin-bottom: 12px;
  border: 1px solid transparent;
}
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #dbeafe; }
.alert-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ===== SUMMARY BOXES (bank info, address info) ========================= */
.summary-box {
  background: var(--orange-light); border: 1px solid var(--orange-mid);
  border-radius: var(--radius); padding: 16px 20px;
}
.summary-box .s-title { font-size: 13px; font-weight: 700; color: var(--orange); margin-bottom: 10px; }
.summary-box .s-row { display: flex; gap: 8px; font-size: 12.5px; margin-bottom: 5px; }
.summary-box .s-key { color: var(--text-mid); min-width: 90px; }
.summary-box .s-val { color: var(--text); font-weight: 600; }

/* ===== TAG CLOUD ============================================= */
.tag { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 10.5px; font-weight: 600; background: #e8e8f5; color: var(--text-mid); }
.tag.or { background: var(--orange-mid); color: var(--orange); }

/* legacy */
.page-image { display: none; }



/* ===== 본문 레이아웃 ================================================= */

  .layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: 60px 1fr;
    height: 100vh;
  }

  /* Top bar */
  .topbar {
    grid-column: 1 / 3;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 18px;
    z-index: 10;
  }
  .topbar .home-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: background 0.15s;
  }
  .topbar .home-link:hover { background: #f5f5f5; }
  .topbar .logo {
    font-weight: 800;
    color: #e92a3c;
    font-size: 22px;
    letter-spacing: -0.5px;
  }
  .topbar .logo small {
    color: #888;
    font-weight: 500;
    font-size: 12px;
    margin-left: 4px;
  }
  .topbar .spacer { flex: 1; }
  /* Sidebar */
  .sidebar {
    background: #fff;
    border-right: 1px solid #eee;
  overflow-y: auto;
    padding: 6px 0 16px;
  }
  .sidebar::-webkit-scrollbar { width: 4px; }
  .sidebar::-webkit-scrollbar-thumb { background: #ebebf0; border-radius: 2px; }

  .menu-section { padding: 4px 0; }
  .menu-section + .menu-section { border-top: 1px solid #f5f5f8; margin-top: 2px; padding-top: 6px; }
  .menu-section:last-child { padding-bottom: 6px; }

  .menu-section > .section-title {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 16px; cursor: pointer; user-select: none;
    border-radius: 8px; margin: 0 6px;
    transition: background 0.14s;
  }
  .menu-section > .section-title:hover { background: #f8f8fc; }
  .menu-section > .section-title > span:first-child {
    font-weight: 700; font-size: 12.5px; color: #1e1e2e;
    display: flex; align-items: center; gap: 6px;
  }
  .menu-section > .section-title .arrow {
    font-size: 10px; color: #c8c8d8;
    transition: transform 0.2s;
  }
  .menu-section.collapsed > .section-title .arrow { transform: rotate(-90deg); }
  .menu-section.collapsed > .menu-items { display: none; }
  .menu-section .icon { font-size: 13px; display: inline-block; width: 16px; text-align: center; }

  .menu-items { padding: 2px 0; }

    /* ===== 사이드바 메뉴 툴팁 ================================= */
.menu-tip{display:none}

  /* All links base */
  .menu-items a {
    display: block; text-decoration: none; color: #58586e;
    font-size: 12.5px; transition: background 0.13s, color 0.13s;
    cursor: pointer; position: relative; border-radius: 7px;
    padding: 7px 14px 7px 28px; margin: 1px 6px;
  }
  .menu-items a:hover { background: #fff5ee; color: #ff6b2b; }
  .menu-items a.active {
    background: linear-gradient(90deg, #fff2e8, #fff8f3);
    color: #ff5e22; font-weight: 600;
    margin-left: 0; border-radius: 0 7px 7px 0;
    padding-left: 22px;
  }
  .menu-items a.active::before {
    content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
    width: 3px; background: #ff5e22; border-radius: 0 2px 2px 0;
  }

  /* Group labels */
  .menu-items .group-label {
    display: block; color: #b8b8d0; font-size: 10px; font-weight: 700;
    padding: 7px 14px 2px 16px; cursor: default;
    letter-spacing: 0.5px; text-transform: uppercase;
  }

  /* Sub items */
  .menu-items .sub a { padding-left: 40px; font-size: 12px; color: #6a6a84; }
  .menu-items .sub a.active { padding-left: 36px; }
  .menu-items .sub-sub a { padding-left: 54px; font-size: 11.5px; color: #7878a0; }

  /* Home item */
  .menu-items a.home-item {
    padding: 9px 14px 9px 14px; font-weight: 700;
    color: #1e1e2e; font-size: 13px; margin: 2px 6px;
    border-radius: 7px;
  }
  .menu-items a.home-item:hover { background: #fff5ee; color: #ff6b2b; }
  .menu-items a.home-item.active {
    background: linear-gradient(90deg, #fff2e8, #fff8f3);
    color: #ff5e22; margin-left: 0; border-radius: 0 7px 7px 0;
    padding-left: 14px;
  }

  /* Content area */
  .content {
    overflow: hidden;
    position: relative;
  }
  .content .frame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #f6f7fa; overflow-x:hidden; overflow-y:auto
  }

  /* ===== 언어 스위치(한국어/中文) ================================ */
  .lang-switch-wrap {
    display: flex; align-items: center; gap: 8px;
    margin-right: 8px;
  }
  .lang-switch-label {
    font-size: 12px; font-weight: 600; color: #b8b8c8;
    transition: color 0.15s; white-space: nowrap;
  }
  .lang-switch-label.active { color: #ff5e22; }

  /* ===== GNB 배송예치금 ======================================= */
  .gnb-dpst {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 20px;
    background: var(--orange-light); border: 1px solid var(--orange-mid);
    font-size: 12.5px; font-weight: 600; color: var(--text-mid);
    text-decoration: none; white-space: nowrap; margin-right: 8px;
    transition: border-color 0.15s;
  }
  .gnb-dpst:hover { border-color: var(--orange); }
  .gnb-dpst-sep { color: var(--orange-mid); }
  .gnb-dpst-amt { color: var(--orange); font-weight: 800; }

  /* ===== 가이드 버튼 ========================================= */
  @keyframes guideBounce {
    0%, 100% { transform: translateY(0); }
    30%       { transform: translateY(-5px); }
    60%       { transform: translateY(-2px); }
  }
  .guide-btn {
    position: relative;
    padding: 7px 16px; border-radius: 20px; border: none; cursor: pointer;
    font-family: inherit; font-size: 12.5px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, rgba(255,107,43,0.92) 0%, rgba(255,160,80,0.88) 100%);
    backdrop-filter: blur(10px) saturate(1.6);
    -webkit-backdrop-filter: blur(10px) saturate(1.6);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.32) inset,
      0 3px 14px rgba(255,107,43,0.38);
    animation: guideBounce 2.2s ease-in-out infinite;
    transition: box-shadow 0.2s, transform 0.2s;
    white-space: nowrap;
  }
  .guide-btn:hover {
    animation: none;
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.38) inset, 0 6px 22px rgba(255,107,43,0.52);
  }

  /* ===== 가이드 모달 ========================================= */
  .guide-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.48); backdrop-filter: blur(6px);
    z-index: 2000; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.24s;
  }
  .guide-overlay.show { display: flex; }
  .guide-overlay.visible { opacity: 1; }
  .guide-modal {
    background: #fff; border-radius: 16px; width: 880px; max-width: 96vw;
    max-height: 88vh; overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0,0,0,0.22);
    transform: translateY(20px); transition: transform 0.28s;
  }
  .guide-overlay.visible .guide-modal { transform: translateY(0); }
  .guide-modal-head {
    position: sticky; top: 0; background: #fff; z-index: 1;
    padding: 20px 28px 16px; border-bottom: 1px solid #f0f0f8;
    display: flex; align-items: center; justify-content: space-between;
  }
  .guide-modal-head h2 { font-size: 17px; font-weight: 800; color: #1e1e2e; letter-spacing: -0.4px; }
  .guide-modal-close {
    width: 34px; height: 34px; border-radius: 9px; background: #f5f5f9;
    border: none; color: #666; font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.13s, color 0.13s;
  }
  .guide-modal-close:hover { background: #ff5e22; color: #fff; }
  .guide-body { padding: 24px 28px 32px; }
  .guide-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  }
  .guide-card {
    border: 1px solid #ebebf5; border-radius: 12px; padding: 18px 16px;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .guide-card:hover { border-color: #ff8c55; box-shadow: 0 4px 16px rgba(255,107,43,0.10); }
  .guide-card-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, #fff4ee, #ffe4d0);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px; color: #ff5e22;
  }
  .guide-card-title { font-size: 13.5px; font-weight: 700; color: #1e1e2e; margin-bottom: 6px; }
  .guide-card-desc { font-size: 12px; color: #6a6a84; line-height: 1.6; }
  .guide-card-steps { margin-top: 8px; padding-left: 0; list-style: none; }
  .guide-card-steps li {
    font-size: 11.5px; color: #8888a8; padding: 3px 0 3px 14px;
    position: relative; line-height: 1.5;
  }
  .guide-card-steps li::before {
    content: '→'; position: absolute; left: 0; color: #ff8c55; font-size: 10px; top: 4px;
  }

  /* ===== 가이드 섹션 레이아웃 ================================= */
  .guide-section { margin-bottom: 22px; }
  .guide-section:last-child { margin-bottom: 0; }
  .guide-section-label {
    font-size: 11px; font-weight: 800; color: #a8a8c0;
    letter-spacing: 0.5px; padding-bottom: 8px; margin-bottom: 10px;
    border-bottom: 1.5px solid #f0f0f8;
  }
  .guide-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .guide-card-sm { padding: 12px 13px; }
  .guide-card-sm .guide-card-icon { width: 30px; height: 30px; border-radius: 8px; margin-bottom: 7px; }
  .guide-card-sm .guide-card-title { font-size: 12px; margin-bottom: 3px; }
  .guide-card-sm .guide-card-desc { font-size: 11px; }



  /* ===== 입력 모드 탭 ===================================== */
.input-mode-row { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:18px; }
.input-mode-btn {
  padding:7px 16px; border:1px solid var(--border); border-radius:20px;
  font-size:12px; font-weight:600; color:var(--text-mid); background:#fff;
  cursor:pointer; font-family:inherit; transition:all 0.14s;
}
.input-mode-btn.active { background:var(--orange); color:#fff; border-color:var(--orange); }
.input-mode-btn:not(.active):hover { border-color:var(--orange); color:var(--orange); }

/* ===== 자동등록 버튼 ===================================== */
.tb-order-reg {
  background: linear-gradient(145deg, rgba(255,107,43,0.90) 0%, rgba(255,140,66,0.84) 50%, rgba(255,90,22,0.96) 100%);
  border: 1px solid rgba(255,155,90,0.55);
  color: #fff; padding: 5px 14px; border-radius: 20px;
  font-size: 11.5px; font-weight: 700; cursor: pointer; font-family: inherit;
  box-shadow: 0 1px 0 rgba(255,255,255,0.28) inset, 0 3px 12px rgba(255,107,43,0.35);
  transition: all 0.2s; white-space: nowrap;
}
.tb-order-reg:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.36) inset, 0 6px 20px rgba(255,107,43,0.50); }

/* ===== 상품 카드 ========================================= */
.product-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px;
  position: relative; /* .lock-overlay(position:absolute; inset:0)의 기준점 - 없으면 엉뚱한 위치(문서 전체 기준)에 떠버림.
                          .pro-row(구 모달)는 이미 있었는데 .product-card(701/ProM_W.asp)엔 빠져있던 것, 2026-10-08 발견 */
}
.product-title {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--border-light);
}
.prod-num { font-size: 13px; font-weight: 700; color: var(--text); }
.prod-title-btns { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qty-wrap { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text-mid); }
.qty-input { width: 56px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 8px; font-size: 12.5px; text-align: center; font-family: inherit; }
.tb { padding: 4px 10px; border: 1px solid var(--border); border-radius: 14px; font-size: 11.5px; background: #fff; color: var(--text-mid); cursor: pointer; font-family: inherit; transition: all 0.13s; }
.tb:hover { border-color: var(--orange); color: var(--orange); }
.tb-del:hover { border-color: #ef4444; color: #ef4444; }

/* ===== 구매대행셀러 세무용 정보(njos-ref order.html #seller-tax-info 디자인 포팅) =====
   레퍼런스는 별도 product-card로 분리하지만, 상품별 DB컬럼이라 상품카드 안에 중첩 */
.seller-tax-title {
  font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px;
  background: var(--orange-light); border-radius: var(--radius-sm); padding: 9px 14px; margin: 18px 0 10px;
}
.seller-tax-title::before { content: ''; width: 7px; height: 7px; background: var(--orange); border-radius: 50%; flex-shrink: 0; }
.seller-tax-desc { font-size: 12.5px; color: var(--text-mid); margin: 0 2px 12px; }
.seller-tax-box { background: #fafafa; border-radius: var(--radius-sm); padding: 18px; }
.seller-tax-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 18px; }
.seller-tax-grid .field-line { grid-template-columns: auto 1fr; margin-bottom: 0; }
.seller-tax-grid .field-line input { width: 100%; box-sizing: border-box; }
@media (max-width: 640px) { .seller-tax-grid { grid-template-columns: 1fr; } }

/* ===== 필드 라인 ========================================= */
.field-line { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: flex-start; margin-bottom: 11px; }
.field-line > label:first-child { font-size: 12px; color: var(--text-mid); padding-top: 7px; font-weight: 500; }
.value-area { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pf-input {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 10px; font-size: 12.5px; font-family: inherit; color: var(--text);
  outline: none; background: #fff; transition: border-color 0.14s;
}
.pf-input:focus { border-color: var(--orange); }
.pf-select {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 10px; font-size: 12.5px; font-family: inherit; color: var(--text);
  background: #fff; outline: none; transition: border-color 0.14s; height:auto
}
.pf-select:focus { border-color: var(--orange); }
.field-note { font-size: 11px; color: #bbb; margin-top: 2px; line-height: 1.5; }
.field-note.red { color: #e94f4f; font-size: 11px; }

/* ===== 이미지 탭 ========================================= */
.tab-mini { display: flex; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.tab-mini button { padding: 4px 12px; font-size: 11.5px; background: #f8f8fc; border: none; cursor: pointer; font-family: inherit; color: var(--text-mid); }
.tab-mini button.active { background: var(--orange); color: #fff; }

/* ===== 이미지 프리뷰 박스 ===================================== */
.img-preview-box {
  width: 76px; height: 76px; border: 1.5px dashed #d0d0e0; border-radius: 6px;
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #f8f8fc; position: relative;
}
.img-preview-box .img-url-preview {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: none;
}
.img-ph-icon { color: #d0d0e0; }

/* ===== 통관품목 검색 버튼 ===================================== */
.btn-ctm {
  padding: 6px 12px; background: var(--orange); color: #fff;
  border: none; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}
.btn-ctm:hover { background: var(--orange-dark); }

/* ===== 소계 스트립 ========================================= */
.summary-strip {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: #f8f8fc; border: 1px solid var(--border-light); border-radius: 8px;
  padding: 10px 16px; margin-top: 10px; margin-bottom: 4px;
}
.summary-strip .item { display: flex; flex-direction: column; gap: 2px; }
.summary-strip .item .label { font-size: 11.5px; color: #888; }
.summary-strip .item .val { font-size: 13.5px; font-weight: 700; color: var(--text); }
.summary-strip .right-action { margin-left: auto; display: flex; gap: 6px; }
.pill-btn { padding: 5px 12px; border-radius: 14px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; font-family: inherit; }
.pill-btn.active { background: var(--orange); color: #fff; }
.pill-btn.inactive { background: #fff; color: #333; border: 1px solid #d8d8d8; }

/* ===== 구분선 ============================================= */
.divider-or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--text-light); font-size: 11.5px; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ===== 주문 추가등록 팝업 모달 ===================================== */
.tb-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.tb-modal-overlay.open { opacity: 1; pointer-events: auto; }

.tb-modal {
  background: #fff; border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.22), 0 4px 16px rgba(0,0,0,0.08);
  width: 600px; max-width: calc(100vw - 40px);
  max-height: calc(100vh - 80px);
  display: flex; flex-direction: column;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.22s cubic-bezier(.22,.68,0,1.2);
  overflow: hidden;
}
.tb-modal-overlay.open .tb-modal { transform: translateY(0) scale(1); }

.tb-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.tb-modal-head h4 {
  font-size: 14px; font-weight: 700; color: var(--text); margin: 0;
  display: flex; align-items: center; gap: 8px;
}
.tb-modal-head h4 .tb-badge {
  background: linear-gradient(135deg, rgba(255,107,43,0.9), rgba(255,90,22,0.95));
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px; letter-spacing: 0.2px;
}
.tb-modal-close {
  width: 28px; height: 28px; border-radius: 50%; border: none; background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #888; font-size: 16px; transition: all 0.14s; flex-shrink: 0;
}
.tb-modal-close:hover { background: #e5e7eb; color: var(--text); }

.tb-modal-body { padding: 18px 22px; overflow-y: auto; flex: 1; }

.tb-modal-tabs {
  display: flex; border: 1px solid var(--border); border-radius: 6px;
  overflow: hidden; margin-bottom: 12px; width: fit-content;
}
.tb-modal-tabs button {
  padding: 5px 14px; font-size: 12px; font-weight: 600;
  background: #f8f8fc; border: none; cursor: pointer;
  font-family: inherit; color: var(--text-mid); transition: all 0.13s;
  border-right: 1px solid var(--border);
}
.tb-modal-tabs button:last-child { border-right: none; }
.tb-modal-tabs button.active { background: var(--orange); color: #fff; }
.tb-modal-tabs button:not(.active):hover { background: #f0f0f8; }

.tb-modal-source-label {
  font-size: 11.5px; font-weight: 600; color: var(--text-mid);
  margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.tb-modal-source-label span {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff5f0; color: var(--orange);
  border: 1px solid rgba(255,107,43,0.25); border-radius: 4px;
  padding: 1px 7px; font-size: 11px;
}

.tb-modal-editor {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.tb-modal-editor-toolbar {
  display: flex; gap: 6px; padding: 8px 10px;
  border-bottom: 1px solid #eee; background: #fafafa;
  align-items: center;
}
.tb-modal-editor-toolbar .tool-btn {
  padding: 3px 10px; background: #fff; border: 1px solid #ddd;
  border-radius: 4px; font-size: 11.5px; cursor: pointer; font-family: inherit;
  color: var(--text-mid); transition: all 0.13s;
}
.tb-modal-editor-toolbar .tool-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.tb-modal-editor-toolbar .tool-btn:not(.active):hover { border-color: var(--orange); color: var(--orange); }
.tb-modal-editor-toolbar .tool-sep { width: 1px; height: 18px; background: #e0e0e0; margin: 0 2px; }

.tb-modal-textarea {
  width: 100%; min-height: 200px; border: none; padding: 14px;
  font-family: inherit; font-size: 13px; resize: vertical;
  outline: none; color: var(--text); background: #fff;
  box-sizing: border-box;
}
.tb-modal-textarea::placeholder { color: #bbb; line-height: 1.7; }

.tb-modal-info {
  margin-top: 12px; padding: 10px 14px;
  background: #f8f8fc; border: 1px solid var(--border-light);
  border-radius: 6px; font-size: 11.5px; color: var(--text-mid); line-height: 1.7;
}
.tb-modal-info b { color: var(--text); }

.tb-modal-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}

/* ===== 통관품목 검색 모달 ===================================== */
.ctm-modal-overlay {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.42); opacity: 0; pointer-events: none;
  transition: opacity 0.18s;
}
.ctm-modal-overlay.open { opacity: 1; pointer-events: auto; }
.ctm-modal {
  width: 680px; max-width: calc(100vw - 40px); max-height: calc(100vh - 80px);
  background: #fff; border-radius: 12px; box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  display: flex; flex-direction: column; overflow: hidden;
}
.ctm-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px; border-bottom: 1px solid var(--border-light);
}
.ctm-modal-head h4 { margin: 0; font-size: 14px; font-weight: 700; color: var(--text); }
.ctm-modal-body { padding: 16px 22px 20px; overflow-y: auto; }
.ctm-search-input {
  width: 100%; border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 12px; font-size: 13px; font-family: inherit; outline: none;
}
.ctm-search-input:focus { border-color: var(--orange); }
.ctm-result-list {
  margin-top: 12px; border: 1px solid var(--border-light); border-radius: 8px;
  max-height: 360px; overflow-y: auto; background: #fff;
}
.ctm-result-item {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; background: #fff; border: none; border-bottom: 1px solid var(--border-light);
  text-align: left; cursor: pointer; font-family: inherit; color: var(--text);
}
.ctm-result-item:last-child { border-bottom: none; }
.ctm-result-item:hover { background: #fff7f2; color: var(--orange); }
.ctm-result-main { font-size: 12.5px; font-weight: 600; }
.ctm-result-sub { font-size: 11px; color: var(--text-light); }
.ctm-empty { padding: 28px 12px; text-align: center; color: var(--text-light); font-size: 12.5px; }

/* ===== 재고 신청 내역 정리 ===================================== */
.stock-history-table th,
.stock-history-table td { vertical-align: middle; }
.stock-history-main { font-weight: 700; color: var(--text); }
.stock-history-sub { margin-top: 4px; font-size: 11.5px; line-height: 1.5; color: var(--text-light); }
.stock-history-code { font-size: 12px; color: var(--text-mid); white-space: nowrap; }
.stock-history-status {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 64px; padding: 4px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; white-space: nowrap;
}
.stock-history-status.request { background:#fff7ed; color:#c2410c; }
.stock-history-status.available { background:#ecfdf5; color:#047857; }
.stock-history-status.soldout { background:#f3f4f6; color:#4b5563; }
.stock-history-status.error { background:#fef2f2; color:#dc2626; }


/* ===================================================================
   중·한 주문서 작성 (nJos/acting/Acting_W.asp, DL_MENU 701)
   njos-ref/site/order/index.html + order.css 이식(변수는 njos 공용 토큰으로 매핑:
   --primary→--orange, --primary-dark→--orange-dark, --primary-light→--orange-light,
   --primary-soft→--orange-mid, --text-sub→--text-mid, --text-mute→--text-light,
   --border-soft→--border-light). 상품카드/필드라인/자동등록모달/통관품목검색모달은
   위쪽 "상품 카드"~"통관품목 검색 모달" 섹션에 이미 있어 재사용, 여기서는 그 외
   화면(인트로/STEP 쉘/STEP1 폼/STEP3 옵션·요약/완료화면/중간저장배너)만 추가.
   =================================================================== */

.order-wrap { max-width: 1280px; margin: 0 auto; padding: 24px 0; }
.order-wrap a { color: inherit; text-decoration: none; }
.order-wrap button { font-family: inherit; cursor: pointer; }

/* ----- 중간저장 배너 ----- */
.draft-banner {
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 16px; padding: 12px 16px;
  border: 1px solid var(--orange-mid); border-radius: var(--radius);
  background: var(--orange-light); color: var(--text); font-size: 13px;
}
.draft-banner.show { display: flex; }
.draft-banner strong { color: var(--orange-dark); }
.draft-banner button {
  padding: 5px 12px; border: 1px solid var(--orange); border-radius: var(--radius-sm);
  background: #fff; color: var(--orange-dark); font-size: 12px; font-weight: 700;
}
.draft-choice-copy { font-size: 13.5px; color: var(--text-mid); line-height: 1.7; }
.draft-choice-copy span { display: block; }
.draft-choice-copy span + span { margin-top: 4px; }
.draft-choice-meta {
  margin-top: 14px; padding: 12px 14px;
  border: 1px solid var(--orange-mid); border-radius: var(--radius);
  background: var(--orange-light); color: var(--orange-dark);
  font-size: 12.5px; font-weight: 700;
}

/* ----- 인트로: 유의사항 + 이용유형 선택 ----- */
.intro-title { text-align: center; font-size: 26px; font-weight: 800; margin: 24px 0 26px; letter-spacing: -0.5px; color: var(--text); }
.notice-box { background: #f7f7fa; border-radius: var(--radius); padding: 22px 26px; margin-bottom: 16px; }
.notice-box .label { font-size: 13.5px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.notice-box .scroll-area {
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 16px 20px; max-height: 200px; overflow-y: auto;
  font-size: 12.5px; line-height: 1.85; color: var(--text-mid);
}
.notice-box .scroll-area ol { padding-left: 18px; list-style-type: decimal; }
.notice-box .scroll-area li { margin-bottom: 4px; list-style-type: decimal; }
.consent-row { display: flex; justify-content: center; margin-top: 18px; font-size: 13px; }
.consent-row label { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.consent-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--orange); cursor: pointer; }

.usertype-title { text-align: center; font-size: 21px; font-weight: 800; margin: 46px 0 22px; color: var(--text); letter-spacing: -0.5px; }
.usertype-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 680px; margin: 0 auto 36px; }
.usertype-card {
  background: #fff; border: 2px solid var(--border); border-radius: 14px;
  padding: 50px 24px; text-align: center; cursor: pointer; transition: all 0.18s;
}
.usertype-card:hover { border-color: var(--orange); }
.usertype-card.selected { border-color: var(--orange); background: var(--orange-light); }
.usertype-card .icon { color: var(--orange); margin-bottom: 12px; display: block; }
.usertype-card .name { text-align: center; width: 100%; font-size: 16px; font-weight: 700; color: var(--text); }
.intro-actions { text-align: center; margin: 22px 0 56px; }

.order-wrap .btn-primary, .order-wrap .btn-outline {
  border-radius: var(--radius-sm); padding: 13px 38px; font-size: 14.5px; font-weight: 700;
}
.order-wrap .btn-primary { border: none; }
.order-wrap .btn-outline {
  background: #fff; color: var(--text); border: 1px solid var(--border); transition: all 0.15s;
}
.order-wrap .btn-outline:hover { background: #f7f7fa; }
.order-wrap .btn-primary:disabled { background: #ccc; border-color: #ccc; box-shadow: none; cursor: not-allowed; }
/* gomdil, 2026-11-23: .order-wrap .btn-primary가 .btn-sm보다 선택자 우선순위가 높아 .btn-sm이 무시되던 문제 */
.order-wrap .btn-sm { padding: 4px 12px; font-size: 11.5px; }
.btn-large { padding: 15px 34px; font-size: 14.5px; }

/* ----- STEP 쉘: 탭바 + 스텝바 + 카드 ----- */
.tab-bar { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 0; border-bottom: 1px solid var(--border); }
.tab-bar .tab {
  padding: 16px 0; text-align: center; font-size: 15px; font-weight: 700; color: var(--text-light);
  background: transparent; border: 1px solid var(--border); border-bottom: none;
  border-radius: 8px 8px 0 0; cursor: pointer; margin-right: -1px; transition: all 0.15s;
}
.tab-bar .tab.active { background: var(--orange-light); color: var(--orange-dark); border-color: var(--orange); position: relative; z-index: 2; }
.tab-bar .tab:not(.active):hover { background: #fafafa; color: var(--text); }

.step-card { background: #fff; border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); padding: 30px 34px 34px; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.step-head .step-no { font-size: 19px; font-weight: 800; }
.step-head .step-no .num { color: var(--orange); margin-right: 4px; }
.step-head .step-desc { font-size: 13.5px; color: var(--text-mid); margin-right: auto; }
.step-head .step-bar { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.step-head .step-bar .pip {
  padding: 5px 13px; border: 1px solid var(--border); border-radius: 14px;
  font-size: 11px; color: var(--text-light); font-weight: 700; background: #fff;
}
.step-head .step-bar .pip.active { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }
.step-head .step-bar .line { width: 46px; height: 1px; background: var(--border); }
.step-head .step-bar .line.active { background: var(--orange); }
.step-head .help-btn { border: 1px solid var(--border); border-radius: 14px; padding: 5px 12px; font-size: 11px; color: var(--text-mid); background: #fff; margin-left: 12px; }

/* ----- 폼 섹션 공용(STEP1) ----- */
.order-wrap .section { margin-bottom: 30px; }
.order-wrap .section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; font-size: 15px; font-weight: 700; color: var(--text); flex-wrap: wrap; }
.order-wrap .section-title::before { content: ''; width: 7px; height: 7px; background: var(--orange); border-radius: 50%; flex: 0 0 auto; }
.order-wrap .section-title .title-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; font-weight: 500; font-size: 12.5px; }
.order-wrap .section-title .foreign-inline { display: inline-flex; align-items: center; gap: 8px; color: var(--text-mid); }
.order-wrap .section-title .pill-link {
  border: 1px solid var(--orange); color: var(--orange); padding: 5px 13px; border-radius: 14px;
  cursor: pointer; background: #fff; font-size: 11.5px; font-weight: 600;
}
.order-wrap .section-title .pill-link:hover { background: var(--orange-light); }

/* ProM_W.asp 상품관리 팝업 - 상단 타이틀+버튼 영역 스크롤시 고정(사용자요청) */
.promgmt-sticky-head {
  position: sticky; top: 0; z-index: 30;
  background: #fafafa;
  margin: -18px 0 20px; padding: 18px 0 14px;
  border-bottom: 1px solid var(--border-light);
}

.picker-row { display: flex; gap: 12px; flex-wrap: wrap; }
.picker-card {
  flex: 0 0 auto; min-width: 165px; background: #fff; border: 2px solid var(--border); border-radius: var(--radius);
  padding: 15px 18px; cursor: pointer; transition: all 0.15s;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.picker-card:hover { border-color: var(--orange); }
.picker-card.selected { border-color: var(--orange); background: var(--orange-light); }
.picker-card .info { line-height: 1.4; }
.picker-card .info .name { font-weight: 700; font-size: 13.5px; color: var(--text); }
.picker-card .info .desc { font-size: 11.5px; color: var(--text-light); margin-top: 2px; }
.picker-card .ico { color: var(--orange); flex-shrink: 0; }
.picker-card.wide { min-width: 270px; }
.picker-card .ico-box {
  width: 46px; height: 46px; background: var(--orange-light); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: var(--orange); flex-shrink: 0;
}

.order-wrap .input, .order-wrap select.input {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13.5px; background: #fff; font-family: inherit; height: auto;
  transition: border-color 0.15s; box-sizing: border-box; color: var(--text);
}
.order-wrap .input:focus, .order-wrap select.input:focus { outline: none; border-color: var(--orange); }
.order-wrap .input::placeholder { color: var(--text-light); }
.order-wrap .input:read-only, .order-wrap .input:disabled { background: #f5f5f5; color: var(--text-light); cursor: not-allowed; }
.field-row { display: grid; grid-template-columns: minmax(0,280px) minmax(0,280px); gap: 12px; margin-bottom: 12px; }
.field-row.solo { grid-template-columns: minmax(0,280px); }
.field-row.btn-attach { grid-template-columns: minmax(0,280px) max-content max-content; align-items: center; gap: 8px; }
.field-row.wide-2col { grid-template-columns: minmax(0,360px) minmax(0,360px); }
.field-row.zip { grid-template-columns: minmax(0,180px) max-content max-content; align-items: center; gap: 8px; }
.field-row .btn-attach-action { background: var(--orange); color: #fff; padding: 6px 11px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600; border: none; }
.field-row .btn-attach-action:hover { background: var(--orange-dark); }
.field-row .match-text { color: var(--green); font-size: 12.5px; font-weight: 600; padding: 0 8px; }
.order-wrap .field-note { margin-bottom: 12px; }
.order-wrap .field-note .red { color: var(--red); }

.recip-wrap { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows 0.3s ease, opacity 0.25s ease; }
.recip-wrap.recip-hidden { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
.recip-wrap > div { overflow: hidden; }

.toggle-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 13.5px; }
.toggle { position: relative; width: 36px; height: 21px; background: #ccc; border-radius: 11px; cursor: pointer; transition: background 0.18s; flex-shrink: 0; }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; background: #fff; border-radius: 50%; transition: left 0.18s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.toggle.on { background: var(--orange); }
.toggle.on::after { left: 17px; }

.order-wrap .divider { height: 1px; background: var(--border-light); margin: 26px -34px; }

.order-wrap .actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border-light); }

.care-box { background: var(--orange-light); border-radius: var(--radius); padding: 16px 20px; margin-top: 18px; display: flex; align-items: center; gap: 16px; }
.care-box .shield { width: 44px; height: 44px; background: var(--orange); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.care-box .care-info { flex: 1; }
.care-box .care-name { font-weight: 700; font-size: 13.5px; color: var(--text); }
.care-box .care-sub { font-size: 11.5px; color: var(--text-mid); margin-top: 2px; }
.care-box .perks { margin-top: 6px; display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--orange-dark); font-weight: 600; }
.care-box .care-toggle-area { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.care-box .care-toggle-area .applied { font-size: 11.5px; color: var(--green); font-weight: 600; }
.care-box .care-toggle-area .more-link { font-size: 11.5px; color: var(--orange-dark); font-weight: 600; }

/* ----- STEP3: 옵션그리드 + 요약 사이드바 ----- */
.step3-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.option-area { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; align-items: start; }
.option-area .col { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.option-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 17px; }
.option-box .obox-title { font-size: 13.5px; font-weight: 700; margin-bottom: 11px; color: var(--text); }
.option-box .obox-title .small { font-size: 11px; color: var(--text-light); font-weight: 500; margin-left: 4px; }
.opt-line { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: var(--radius-sm); font-size: 12.5px; cursor: pointer; margin-bottom: 4px; }
.opt-line:hover { background: #fafafa; }
.opt-line.selected { background: var(--orange-light); }
.opt-line input[type=checkbox] { accent-color: var(--orange); }
.opt-line-consult { color: var(--text); }
.opt-line-consult input[type=checkbox] { pointer-events: none; }
.opt-line-consult:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.opt-line.etc-line-disabled { opacity: 0.42; pointer-events: none; filter: grayscale(0.5); }
.opt-line .price { color: var(--text-light); font-size: 11.5px; margin-left: auto; }
.opt-line .free { color: var(--green); font-size: 11.5px; margin-left: auto; font-weight: 600; }
.opt-line .note { font-size: 10.5px; color: var(--red); margin-left: 4px; }

.summary-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: sticky; top: 60px; }
/* top:60px - 공용 .page-title(Jos_TitleLoc.asp, sticky top:0, 약 47px 높이) 바로 아래에서 붙도록 여유 확보.
   기존 top:16px는 스크롤 시 이 카드가 page-title 바 뒤로 가려지는 버그가 있었음(701 STEP3/주문상세 공용). */
.summary-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 15px; color: var(--text); }
.summary-meta { background: var(--orange-light); border-radius: 8px; padding: 15px; display: flex; gap: 13px; margin-bottom: 13px; }
.summary-meta .ico { width: 42px; height: 42px; background: var(--orange); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.summary-meta .qty { font-size: 13.5px; font-weight: 700; color: var(--text); }
.summary-meta .small { font-size: 11.5px; color: var(--text-mid); margin-top: 2px; }
.applied-care { background: #e8f6ee; border-radius: var(--radius-sm); padding: 9px 11px; font-size: 11.5px; color: #2a8755; font-weight: 600; margin-bottom: 13px; display: flex; align-items: center; gap: 6px; }
.option-list-mini { border-top: 1px solid var(--border-light); padding-top: 13px; margin-bottom: 13px; }
.option-list-mini h4 { font-size: 12.5px; font-weight: 700; margin-bottom: 8px; color: var(--text-mid); }
.option-list-mini ul { list-style: none; }
.option-list-mini li { padding: 6px 0; font-size: 11.5px; color: var(--text-mid); display: flex; gap: 6px; align-items: center; animation: opt-fade-in 0.25s ease; overflow: hidden; }
.option-list-mini li::before { content: '✓'; color: var(--orange); font-weight: 700; }
.option-list-mini li.opt-removing { animation: opt-fade-out 0.22s ease forwards; }
.option-list-mini .empty { color: var(--text-light); font-size: 11.5px; font-style: italic; }
@keyframes opt-fade-in { from { opacity:0; transform:translateX(-8px); max-height:0; padding-top:0; padding-bottom:0; } to { opacity:1; transform:translateX(0); max-height:30px; padding-top:6px; padding-bottom:6px; } }
@keyframes opt-fade-out { from { opacity:1; transform:translateX(0); max-height:30px; padding-top:6px; padding-bottom:6px; } to { opacity:0; transform:translateX(8px); max-height:0; padding-top:0; padding-bottom:0; } }
.summary-card .agree-text { font-size: 10.5px; color: var(--text-light); margin-top: 13px; text-align: right; }

.damage-notice { background: var(--orange-light); border: 1px solid #ffd0b3; border-radius: var(--radius-sm); padding: 15px 17px; margin-top: 18px; font-size: 12.5px; color: var(--text-mid); line-height: 1.7; }
.damage-notice .head { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #c44; margin-bottom: 6px; }
.damage-notice .more { float: right; color: var(--orange-dark); font-weight: 600; }

.coupang-popover {
  position: absolute; top: 58px; right: 0; background: #fff; border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15); padding: 17px 19px; display: none; z-index: 50;
}
.coupang-popover.show { display: block; }
.coupang-popover h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 13px; color: var(--text); }
.coupang-flow { display: flex; align-items: flex-start; gap: 4px; font-size: 11px; text-align: center; }
.coupang-flow .step { flex: 1; position: relative; }
.coupang-flow .step .ico { width: 48px; height: 48px; background: var(--orange-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; color: var(--orange); }
.coupang-flow .step .step-num { position: absolute; top: -2px; right: 30%; background: var(--orange); color: #fff; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; line-height: 16px; font-weight: 700; }
.coupang-flow .step .name { font-weight: 700; font-size: 11.5px; margin-bottom: 2px; color: var(--text); }
.coupang-flow .step .desc { font-size: 10px; color: var(--text-mid); line-height: 1.4; }
.coupang-flow .arr { color: var(--border); font-size: 16px; padding-top: 18px; }
.coupang-link-btn { border: 1px solid var(--orange); background: #fff; color: var(--orange); padding: 6px 12px; border-radius: 14px; font-size: 11.5px; font-weight: 600; margin-left: auto; cursor: pointer; }
.coupang-link-btn:hover { background: var(--orange-light); }
.coupang-optbox-disabled { opacity: 0.42; pointer-events: none; filter: grayscale(0.5); transition: opacity 0.2s, filter 0.2s; }
.coupang-optbox-disabled .obox-title { color: var(--text-light); }
.coupang-inactive-hint { display: none; font-size: 11px; font-weight: 600; color: var(--orange); margin-left: 6px; }
.coupang-optbox-disabled .coupang-inactive-hint { display: inline; }

/* ----- STEP2 모드 안내(장바구니 등록/재고 불러오기 — Phase 1 범위에서는 준비중 안내만) ----- */
.mode-placeholder { text-align: center; padding: 56px 20px; background: #fafafa; border-radius: var(--radius); color: var(--text-mid); font-size: 13px; }

/* ----- 완료 화면 ----- */
.complete-wrap { max-width: 620px; margin: 50px auto; text-align: center; }
.complete-icon { width: 100px; height: 100px; background: var(--orange); border-radius: 50%; margin: 0 auto 22px; display: flex; align-items: center; justify-content: center; font-size: 52px; color: #fff; }
.complete-title { font-size: 24px; font-weight: 800; margin-bottom: 11px; letter-spacing: -0.5px; color: var(--text); }
.complete-orderno { font-size: 14px; color: var(--text-mid); margin-bottom: 26px; }
.complete-orderno .num { color: var(--orange); font-weight: 700; margin-left: 12px; }
.complete-summary { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 26px; text-align: left; }
.complete-summary h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 15px; color: var(--text); }
.complete-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 22px; }
.complete-grid .row { display: flex; gap: 14px; align-items: center; font-size: 12.5px; }
.complete-grid .row .key { color: var(--text-light); min-width: 68px; }
.complete-grid .row .val { color: var(--text); font-weight: 500; }
.complete-grid .row .green-tag { background: #e8f6ee; color: #2a8755; padding: 3px 10px; border-radius: var(--radius-sm); font-size: 11.5px; font-weight: 600; }
.progress-flow { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 26px; }
.progress-flow .ph-title { font-size: 12.5px; color: var(--text-light); margin-bottom: 13px; }
.progress-flow .flow { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.progress-flow .flow .stage { text-align: center; }
.progress-flow .flow .stage .ico { width: 48px; height: 48px; background: var(--orange-light); border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; color: var(--orange); }
.progress-flow .flow .stage:first-child .ico { background: var(--orange); color: #fff; }
.progress-flow .flow .stage .name { font-size: 11.5px; color: var(--text); font-weight: 600; }
.progress-flow .flow .line { flex: 1; height: 2px; background: var(--border-light); margin: 0 -8px; align-self: flex-start; margin-top: 24px; }
.progress-flow .flow .line.done { background: var(--orange); }
.complete-actions { display: flex; gap: 12px; justify-content: center; }


/* ===== 대행종합관리 STATS ===================================== */
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr);  /*grid-template-columns: repeat(4, 1fr);*/ gap: 10px; }
.stat-card {
  --panel-soft: #f8fafc;
  --panel-border: #e2e8f0;
  --panel-text: var(--text);
  --panel-strong: var(--text);
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 15px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.14s, box-shadow 0.14s, background 0.14s;
  position: relative; overflow: visible;
}
.stat-card:hover { z-index: 5; }
.stat-card.has-active-filter {
  border-color: var(--panel-border);
  background: linear-gradient(180deg, #fff 0%, var(--panel-soft) 100%);
  box-shadow: 0 8px 22px rgba(24,24,30,0.08), var(--shadow-sm);
}
.stat-card.has-active-filter .stat-head { color: var(--panel-strong); }
.stat-card:nth-child(2) {
  --panel-soft: #fff7ed;
  --panel-border: #fed7aa;
  --panel-text: #ea580c;
  --panel-strong: #c2410c;
}
.stat-card:nth-child(3) {
  --panel-soft: #eff6ff;
  --panel-border: #bfdbfe;
  --panel-text: #2563eb;
  --panel-strong: #1d4ed8;
}
.stat-card:nth-child(4) {
  --panel-soft: #fef2f2;
  --panel-border: #fecaca;
  --panel-text: #dc2626;
  --panel-strong: #b91c1c;
}
.stat-card:nth-child(5) {
  --panel-soft: #ecfdf5;
  --panel-border: #bbf7d0;
  --panel-text: #059669;
  --panel-strong: #047857;
}
.stat-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 800; color: var(--panel-strong);
  padding: 9px 10px; margin-bottom: 9px;
  border: 1px solid var(--panel-border);
  border-radius: 9px;
  background: linear-gradient(135deg, var(--panel-soft), #fff);
}
.stat-icon { width: 24px; height: 24px; flex: 0 0 24px; display: block; border-radius: 8px; }
.stat-card:nth-child(1) .stat-icon{  }
.stat-card:nth-child(2) .stat-icon{background:url('/Image/new_img/njos-panel-return.svg') no-repeat  center;background-size:24px 24px   }
.stat-card:nth-child(3) .stat-icon{background:url('/Image/new_img/njos-panel-io.svg') no-repeat  center;background-size:24px 24px   }
.stat-card:nth-child(4) .stat-icon{background:url('/Image/new_img/njos-panel-error.svg') no-repeat  center;background-size:24px 24px   }
.stat-card:nth-child(5) .stat-icon{background:url('/Image/new_img/njos-panel-stock.svg') no-repeat  center;background-size:24px 24px   }
.stat-row { }
.stat-row a{display: flex; justify-content: space-between; align-items: center;
  padding: 1px 0; font-size: 11.5px;}
.stat-label { color: var(--text-mid); }
.stat-row.stat-filter {
  cursor: pointer; border-radius: 6px; padding: 4px 6px; margin: 0 -6px;
  transition: background 0.14s; position: relative;
}
.stat-row.stat-filter:hover { z-index: 6; }
.stat-row.stat-filter:hover { background: var(--orange-light); }
.stat-row.stat-filter:hover .stat-label { color: var(--orange); }
.stat-row.stat-filter::after {
  content: "→ " attr(data-label);
  position: absolute; left: 70px; top: 50%;
  height: 23px; max-width: 0; padding: 0;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; pointer-events: none;
  transform: translateY(-50%) translateX(-8px) scaleX(0.98);
  transform-origin: left center; opacity: 0;
  border: 1px solid transparent; border-radius: 999px;
  background: rgba(255,255,255,0.96); color: var(--orange);
  font-size: 10.5px; font-weight: 700; line-height: 21px;
  box-shadow: none;
  transition: max-width 0.28s ease, padding 0.2s ease, opacity 0.16s ease, transform 0.28s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.stat-row.stat-filter:hover::after,
.stat-row.stat-filter.desc-preview::after {
  max-width: 380px; padding: 0 10px; opacity: 1;
  transform: translateY(-50%) translateX(0) scaleX(1);
  border-color: rgba(255,94,34,0.24);
  box-shadow: 0 8px 20px rgba(24,24,30,0.12);
}
.stat-row.stat-filter:hover .stat-badge { transform: translateX(2px); }
.stat-row.stat-filter.active {
  background: linear-gradient(135deg, #fff0e8, #ffe0cf);
  border: 1px solid rgba(255,94,34,0.34);
  box-shadow: 0 4px 12px rgba(255,94,34,0.10);
}
.stat-row.stat-filter.active .stat-label { color: var(--orange); font-weight: 800; }
.stat-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 18px; padding: 0 7px;
  background: #ededf5; color: #8888aa; font-size: 10.5px; font-weight: 700;
  border-radius: 9px; cursor: pointer;
  transition: background 0.14s, color 0.14s, transform 0.18s ease; text-decoration: none;
}
.stat-badge:hover { background: var(--orange-mid); color: var(--orange); }
.stat-badge.on { background: #2d2d3e; color: #fff; }
.stat-badge.on:hover { background: var(--orange); color: #fff; }
.stat-row.stat-filter.active .stat-badge.on {
  background: var(--orange); color: #fff;
  box-shadow: 0 2px 7px rgba(255,94,34,0.28);
}
.stat-card .card-btn {
  display: block; margin-top: 11px; width: 100%;
  background: linear-gradient(135deg, #ff6b35, #ff4d0f);
  color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 6px 8px; font-size: 10.5px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  transition: filter 0.14s, transform 0.12s;
  box-shadow: 0 2px 8px rgba(255,94,34,0.28);
  box-sizing: border-box; text-align: center; text-decoration: none; line-height: 1.35;
}
.stat-card .card-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* ===== 텍스트박스 STATS ===================================== */
.warn-notice {
  background: #fff8f0; border: 1px solid #fed7aa;
  padding: 13px 16px; border-radius: 6px;
  font-size: 12.5px; color: #78350f; line-height: 1.9;
}
.customs-notice {
  background: #fff8f0; border: 1px solid #fcd34d;
  border-radius: var(--radius); padding: 16px 20px;
  font-size: 12.5px; color: var(--text); line-height: 2;
}
.customs-notice .c-title { font-size: 13.5px; font-weight: 700; color: #b45309; margin-bottom: 8px; }
.customs-notice .c-warn { color: #dc2626; font-weight: 700; }

.scan-notice { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:20px 24px; box-shadow:var(--shadow-sm); }
.sn-title { font-size:14px; font-weight:700; color:var(--text); margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.scan-schedule { display:flex; flex-direction:column; gap:8px; margin:12px 0; }
.scan-row { display:flex; align-items:center; gap:10px; font-size:12.5px; }
.scan-row .time-b { background:#f0f0ff; color:#3730a3; font-weight:700; padding:3px 10px; border-radius:4px; min-width:100px; text-align:center; }
.scan-row .arr { color:var(--orange); font-weight:700; }
.scan-row .res { color:#dc2626; font-weight:700; }
.scan-note { font-size:11.5px; color:var(--text-mid); margin-top:10px; line-height:2; }
.charge-notice { background:#fff7ed; border:1px solid #fed7aa; border-radius:var(--radius-sm); padding:10px 16px; font-size:12px; color:#9a3412; display:flex; align-items:center; gap:6px; }
.nd-ph { width:52px; height:52px; border-radius:4px; border:1px solid var(--border-light); background:#f0f0f8; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin:0 auto; }
.tracking-cell { text-align:center !important; }
.tracking-code { display:inline-block; font-size:11px; font-family:monospace; text-align:center; word-break:break-all; }

.nd-ph { width:52px; height:52px; border-radius:4px; border:1px solid var(--border-light); background:#f0f0f8; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin:0 auto; }
.tracking-cell { text-align:center !important; }
.tracking-code { display:inline-block; font-size:11px; font-family:monospace; text-align:center; word-break:break-all; }
.fo-notice { background:#eff6ff; border:1px solid #bfdbfe; border-radius:var(--radius-sm); padding:12px 16px; font-size:12px; color:#1e40af; line-height:1.9; }
.no-txt{padding:48px;text-align:center;color:var(--text-light);font-size:13px; display:block}

.bank-info { background:#f0fdf4; border:1px solid #bbf7d0; border-radius:var(--radius-sm); padding:12px 18px; }
.bank-info .bi-label { font-size:11px; color:#166534; font-weight:600; margin-bottom:4px; }
.bank-info .bi-val { font-size:15px; font-weight:800; color:#166534; letter-spacing:0.5px; }
.bi-sub { font-size:11px; color:#166534; margin-top:2px; }
.charge-tabs { display:flex; border-bottom:2px solid var(--border); margin-bottom:0; }
.charge-tab { padding:9px 18px; font-size:12.5px; font-weight:600; color:var(--text-light); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all 0.14s; }
.charge-tab.active { color:var(--orange); border-bottom-color:var(--orange); }
.deposit-amount { font-size:20px; font-weight:800; color:var(--orange); }
.charge-guide { font-size:12px; color:var(--text-mid); line-height:2; }
.charge-guide li { margin-left:16px; }
.warn-text { color:#dc2626; font-weight:700; }

/* ===== 업로드버튼 STATS ===================================== */
.upload-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0;
}
.upload-row .row-label { font-size: 12.5px; color: var(--text-mid); min-width: 120px; font-weight: 600; }
.file-name { font-size: 12px; color: var(--text-light); }
.update-note { font-size: 11.5px; color: var(--text-light); }

/* ===== 폼 STATS ========================================= */
.reg-form-grid {
  display: grid; grid-template-columns: 140px 1fr; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.reg-row { display: contents; }
.reg-label {
  background: #f8f8fc; border-bottom: 1px solid var(--border);
  padding: 10px 14px; font-size: 12px; font-weight: 600; color: var(--text-mid);
  display: flex; align-items: center;
}
.reg-value {
  border-bottom: 1px solid var(--border); border-left: 1px solid var(--border);
  padding: 8px 14px; display: flex; align-items: center; gap: 8px;
}
.reg-row:last-child .reg-label,
.reg-row:last-child .reg-value { border-bottom: none; }

/* ===== 건별 무통장입금 ===================================== */
.coupon-link { display: inline-block; margin-top: 4px; color: #0ea5e9; font-size: 10.5px; text-decoration: underline; cursor: pointer; }
.payment-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.apply-input {
  width: 150px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 10px; text-align: right; font-family: inherit; font-size: 12px;
}
.apply-input:focus { outline: none; border-color: var(--orange); }
.payment-notice {
  padding: 14px 16px; font-size: 11.5px; line-height: 1.85; color: var(--text-mid);
  border-bottom: 1px solid var(--border-light);
}
.payment-method-area {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px;
  padding: 16px; align-items: stretch;
}
.method-title { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.method-options { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 8px; }
.method-option {
  min-height: 54px; display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 12.5px; color: var(--text); cursor: pointer; user-select: none; background: #fff;
  transition: border-color 0.14s, background 0.14s;
}
.method-option:has(input:checked) { border-color: var(--orange); background: var(--orange-light); }
.method-option input { width: 15px; height: 15px; accent-color: var(--orange); }
.method-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.method-name { font-weight: 800; color: var(--text); }
.method-sub { font-size: 10.5px; color: var(--text-mid); line-height: 1.35; }
.method-sub strong { color: var(--orange); }
.method-caption { margin-top: 14px; font-size: 11.5px; color: var(--text-mid); }
.point-panel {
  margin-top: 12px; padding: 12px;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm); background: #fafbff;
}
.point-panel.is-open { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.point-label { font-size: 12px; font-weight: 800; color: var(--text); min-width: 120px; }
.point-label small { color: var(--text-mid); font-weight: 700; }
.bank-line { margin-top: 18px; font-size: 13px; font-weight: 700; color: var(--text); }
.bank-line.is-open { display: block; }
.bank-line strong { color: var(--text); }
.total-panel {
  border-left: 1px solid var(--border-light); padding-left: 18px;
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
}
.total-panel .total-title { font-size: 13px; font-weight: 800; color: var(--text); align-self: stretch; }
.total-panel .total-amount { margin-top: 14px; color: #dc2626; font-size: 31px; font-weight: 900; letter-spacing: 0; }
.pay-actions { padding: 14px 16px 18px; text-align: center; }
@media (max-width: 900px) {
  .method-options { grid-template-columns: 1fr; }
  .payment-method-area { grid-template-columns: 1fr; }
  .total-panel { border-left: 0; border-top: 1px solid var(--border-light); padding: 16px 0 0; align-items: flex-start; }
}
/* ===== 해외송금 중국 인보이스 신청 ================================= */
.inv-notice { background:#fff; border:1px solid #fca5a5; border-radius:var(--radius); padding:24px; box-shadow:var(--shadow-sm); }
.inv-notice .in-title { font-size:16px; font-weight:800; color:#dc2626; margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.in-step { display:flex; align-items:flex-start; gap:10px; margin-bottom:10px; font-size:12.5px; color:var(--text); }
.in-num { background:#dc2626; color:#fff; width:20px; height:20px; border-radius:50%; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.in-link { color:#dc2626; font-weight:700; text-decoration:underline; cursor:pointer; }
.form-section-title { font-size:13px; font-weight:700; color:var(--text); padding:10px 0 8px; border-bottom:1px solid var(--border-light); margin-bottom:12px; }
.inv-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; }
.inv-grid-2 { display:grid; grid-template-columns:repeat(2, 1fr); gap:12px; }
.f-group { display:flex; flex-direction:column; gap:4px; }
.f-group .f-label { font-size:11.5px; font-weight:600; color:var(--text-mid); }
.f-group .f-input { width:100%; }
.radio-row { display:flex; align-items:center; gap:16px; font-size:12.5px; }
.radio-row label { display:flex; align-items:center; gap:5px; cursor:pointer; }

/* ===== 내 정보 수정 ========================================= */
.info-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.info-item { background:#f8f8fc; border:1px solid var(--border-light); border-radius:var(--radius-sm); padding:12px 14px; }
.info-item-label { font-size:11px; color:var(--text-light); font-weight:600; margin-bottom:4px; }
.info-item-value { font-size:13.5px; font-weight:700; color:var(--text); }
.info-item-value.orange { color:var(--orange); }
@media(max-width:640px){ .info-grid{ grid-template-columns:repeat(2,1fr); } }

/* =====  로고 정보 수정 ========================================= */
.logo-thumb { width:120px; height:60px; border:1px solid var(--border); border-radius:var(--radius-sm); background:#f8f8fc; object-fit:contain; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.logo-thumb img { max-width:100%; max-height:100%; object-fit:contain; }
.logo-row { display:flex; align-items:center; gap:14px; padding:10px 0; border-bottom:1px solid var(--border-light); }
.logo-row:last-child { border-bottom:none; }
.logo-name { font-size:12.5px; color:var(--text); flex:1; }

/* =====  나의 해외주소 ========================================= */
.addr-box { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:20px 24px; box-shadow:var(--shadow-sm); }
.addr-section { margin-bottom:24px; }
.addr-section:last-child { margin-bottom:0; }
.addr-section-title { font-size:13.5px; font-weight:700; color:var(--text); padding-bottom:10px; border-bottom:2px solid var(--orange); margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.addr-grid { display:grid; grid-template-columns:140px 1fr; gap:0; border:1px solid var(--border); border-radius:var(--radius-sm); overflow:hidden; }
.addr-label { background:#f8f8fc; border-bottom:1px solid var(--border); padding:10px 14px; font-size:12px; font-weight:600; color:var(--text-mid); display:flex; align-items:center; }
.addr-value { border-bottom:1px solid var(--border); border-left:1px solid var(--border); padding:10px 14px; font-size:12.5px; color:var(--text); display:flex; align-items:center; gap:8px; }
.addr-grid > :nth-last-child(-n+2) { border-bottom:none; }
.copy-btn { font-size:10.5px; color:var(--orange); border:1px solid var(--orange-mid); padding:2px 8px; border-radius:4px; cursor:pointer; background:#fff; }
.copy-btn:hover { background:var(--orange-light); }

/* =====  딜러문의 카테고리  ===================================== */
.category-badge { display:inline-block; padding:2px 8px; border-radius:10px; font-size:10.5px; font-weight:600; }
.cat-배송 { background:#dbeafe; color:#1d4ed8; }
.cat-통관 { background:#fef3c7; color:#92400e; }
.cat-통관보완 { background:#fee2e2; color:#991b1b; }
.cat-결제 { background:#d1fae5; color:#065f46; }
.cat-기타 { background:#f3f4f6; color:#4b5563; }

/* NJOS 게시판 카테고리 뱃지 - 게시판마다 카테고리 값이 달라 텍스트 기반 6색 팔레트로 순환(fnBbsCatBadge) */
.cat-c1 { background:#dbeafe; color:#1d4ed8; }
.cat-c2 { background:#ede9fe; color:#6d28d9; }
.cat-c3 { background:#d1fae5; color:#065f46; }
.cat-c4 { background:#fce7f3; color:#9d174d; }
.cat-c5 { background:#fef3c7; color:#92400e; }
.cat-c6 { background:#e0e7ff; color:#3730a3; }

/* =====  배송요금표  ========================================= */
.fee-tabs { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:12px; }
.fee-tab { padding:7px 16px; border:1px solid var(--border); border-radius:20px; font-size:12px; font-weight:600; color:var(--text-mid); background:#fff; cursor:pointer; transition:all 0.14s; }
.fee-tab.active { background:var(--orange); color:#fff; border-color:var(--orange); }
.fee-tab:hover:not(.active) { border-color:var(--orange); color:var(--orange); }

.rate-wrap { max-height:480px; overflow-y:auto; border:1px solid var(--border); border-radius:var(--radius-sm); }
.rate-wrap::-webkit-scrollbar { width:4px; }
.rate-wrap::-webkit-scrollbar-thumb { background:#ddd; border-radius:2px; }

.rate-table { width:100%; border-collapse:collapse; font-size:12.5px; }
.rate-table th {
  background:#f8f8fc; color:var(--text-mid); font-weight:700;
  padding:10px 16px; border-bottom:2px solid var(--border);
  text-align:center; white-space:nowrap; position:sticky; top:0; z-index:2;
}
.rate-table td { padding:8px 16px; border-bottom:1px solid var(--border-light); text-align:center; color:var(--text); }
.rate-table tbody tr:hover { background:#fafbff; }
.rate-table td:first-child { font-weight:600; color:var(--text-mid); background:#fafafa; }
.rate-friend { color:var(--text); font-weight:600; }
.rate-family { color:var(--orange); font-weight:700; }

.tier-badge { display:inline-block; padding:2px 8px; border-radius:10px; font-size:10.5px; font-weight:700; }
.tier-friend { background:#e0e7ff; color:#3730a3; }
.tier-family { background:#fff4ee; color:var(--orange); }

.rate-context {
  display:grid; gap:8px; margin-bottom:12px;
  border:1px solid var(--border); border-radius:var(--radius-sm);
  background:#fafbff; padding:12px 14px; font-size:12px; color:var(--text-mid);
  line-height:1.65;
}
.rate-context strong { color:var(--text); }
.rate-context .lcl-highlight { color:var(--orange); font-weight:800; }
.lcl-common {
   margin-top:12px; border:1px solid #dbeafe;
  background:#eff6ff; border-radius:var(--radius-sm); padding:12px 14px;
  font-size:11.5px; color:#334155; line-height:1.7;
}
.lcl-common.show {  }
.lcl-common strong { display:block; color:#1d4ed8; margin-bottom:5px; }
.lcl-common ul { margin:0; padding-left:16px; list-style-type: disc!important}
.lcl-common ul li{list-style-type: disc!important}
.rate-table th.is-lcl { color:#1d4ed8; background:#eff6ff; }

.calc-box { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.calc-result { font-size:14px; font-weight:700; color:var(--orange); min-width:160px; }

/* =====  동영상이용방법  ========================================= */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.video-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-thumb {
  background: #f0f0f8;
  border-radius: 8px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.15s;
}

.video-thumb:hover {
  opacity: 0.85;
}

.play-btn {
  width: 60px;
  height: 60px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  padding-left: 4px;
  box-shadow: 0 3px 10px rgba(255,94,34,0.35);
}

.video-title {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.video-title:hover {
  color: var(--orange);
}

.video-desc {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.5;
}

.video-duration {
  display: inline-block;
  font-size: 11px;
  color: var(--text-mid);
  background: #f2f2f5;
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 600;
}

@media (max-width: 680px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* =====  홈 대시보드  ===================================== */
/* ---- Welcome banner ---- */
.dash-welcome {
  background: var(--orange-light); border: 1px solid var(--orange-mid);
  border-radius: var(--radius); padding: 12px 16px;
  font-size: 13px; color: var(--text);
  display: flex; align-items: center; gap: 8px;
  /*width: 100%;*/
  position: relative; overflow: hidden;
}
.dash-welcome svg { flex-shrink: 0; color: var(--orange); }
.dash-welcome-text {
  display: inline-flex; align-items: center; flex-wrap: wrap;
  line-height: 1.45; word-break: keep-all;
}
.dash-welcome-char {
  display: inline-block;
  transform-origin: 50% 100%;
  will-change: transform, color;
}
.dash-welcome.is-wave {
  animation: welcomePanelSettle 720ms ease both;
}
.dash-welcome.is-wave .dash-welcome-char {
  animation: welcomeTextWave 1100ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 38ms);
}
@keyframes welcomePanelSettle {
  0% { transform: translateY(-3px); box-shadow: 0 0 0 rgba(255,107,43,0); }
  55% { transform: translateY(0); box-shadow: 0 8px 24px rgba(255,107,43,0.12); }
  100% { transform: translateY(0); box-shadow: none; }
}
@keyframes welcomeTextWave {
  0% { transform: translateY(0) rotate(0deg); color: var(--text); }
  28% { transform: translateY(-5px) rotate(-1.5deg); color: var(--orange); }
  58% { transform: translateY(2px) rotate(0.8deg); color: #d94f43; }
  100% { transform: translateY(0) rotate(0deg); color: var(--text); }
}
@media (prefers-reduced-motion: reduce) {
  .dash-welcome.is-wave,
  .dash-welcome.is-wave .dash-welcome-char {
    animation: none;
  }
}

.dash-top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "left-top right-top"
    "left-bottom right-bottom";
  gap: 16px;
  align-items: stretch;
}
.dash-left-top,
.dash-left-bottom {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.dash-left-top { grid-area: left-top; }
.dash-left-bottom { grid-area: left-bottom; }

/* ---- Favorite menu panel ---- */
.favorite-panel {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  min-width: 0; overflow: hidden;
  display: flex; flex-direction: column;
  grid-area: right-top;
  height: 100%;
}
.favorite-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
  background: linear-gradient(135deg, rgba(34,197,94,0.13), rgba(240,253,244,0.76));
  border-bottom-color: rgba(34,197,94,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78);
  backdrop-filter: blur(12px) saturate(1.35);
  -webkit-backdrop-filter: blur(12px) saturate(1.35);
}
.favorite-head h3 { font-size: 13px; margin: 0; color: var(--text); }
.favorite-add-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(255,94,34,0.28);
  background: linear-gradient(145deg, rgba(255,94,34,0.12), rgba(255,255,255,0.9));
  color: var(--orange); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; line-height:30px; font-weight: 700;
  transition: transform 0.14s, box-shadow 0.14s, border-color 0.14s;
}
.favorite-add-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255,94,34,0.48);
  box-shadow: 0 5px 14px rgba(255,94,34,0.13);
}
.favorite-body {
  padding: 12px 14px 14px; flex: 1; display: flex;
  min-height: 0;
}
.favorite-list {
  width: 100%; display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.favorite-empty {
  grid-column: 1 / -1;
  min-height: 90px; border: 1px dashed var(--border);
  border-radius: var(--radius); color: var(--text-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; background: #fcfcfd;
  width: 100%; cursor: pointer; font: inherit; padding: 0;
}
.favorite-empty:hover { border-color: var(--orange-mid); color: var(--orange); background: #fffaf7; }
.favorite-link {
  min-width: 0; min-height: 42px; border-radius: var(--radius);
  border: 1px solid var(--border-light); background: #fff;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  padding: 9px 10px; text-align: center;
  font-size: 12px; font-weight: 700; line-height: 1.25;
  transition: border-color 0.14s, background 0.14s, color 0.14s, transform 0.14s;
}
.favorite-link:hover {
  border-color: var(--orange-mid);
  background: var(--orange-light);
  color: var(--orange);
  transform: translateY(-1px);
}

/* ---- State badge strip ---- */
.state-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.state-badge {
  background: transparent; border: 0;
  border-radius: 0; padding: 8px 2px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  box-shadow: none; cursor: pointer;
  transition: all 0.2s;
  position: relative; overflow: visible;
  text-align: center;
  color: inherit; text-decoration: none;
  min-width: 0;
  min-height: 68px;
}
.state-badge::after {
  content: ""; position: absolute; right: 0; top: 18%; bottom: 18%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(120,120,145,0.34), transparent);
}
.state-badge:last-child::after { display: none; }
.state-badge::before {
  content: ""; position: absolute; left: 14%; right: 14%; top: 0;
  height: 1px; display: none;
  background: linear-gradient(90deg, transparent, rgba(120,120,145,0.22), transparent);
}
.state-badge:nth-child(n+3)::before { display: none; }
.state-badge:hover { transform: none; background: rgba(255,94,34,0.035); box-shadow: none; }
.state-badge .sb-count { order: 1; font-size: 16px; font-weight: 800; line-height: 1; }
.state-badge .sb-label {
  order: 2; font-size: 10.5px; line-height: 1.08;
  white-space: normal; word-break: normal; overflow-wrap: anywhere; font-weight: 700;
  max-width: 100%;
}
.state-badge .sb-label span { display: inline; }

/* Liquid glass per state */
.sb-wait {
  background: transparent !important; border: 0 !important;
  box-shadow: none !important; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.sb-wait:hover { background: rgba(99,102,241,0.055) !important; box-shadow: none !important; transform: none; }
.sb-wait .sb-count { color: #4338ca; }
.sb-wait .sb-label { color: #6366f1; }

.sb-part {
  background: transparent !important; border: 0 !important;
  box-shadow: none !important; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.sb-part:hover { background: rgba(59,130,246,0.055) !important; box-shadow: none !important; transform: none; }
.sb-part .sb-count { color: #1d4ed8; }
.sb-part .sb-label { color: #3b82f6; }

.sb-full {
  background: transparent !important; border: 0 !important;
  box-shadow: none !important; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.sb-full:hover { background: rgba(34,197,94,0.055) !important; box-shadow: none !important; transform: none; }
.sb-full .sb-count { color: #15803d; }
.sb-full .sb-label { color: #22c55e; }

.sb-meas {
  background: transparent !important; border: 0 !important;
  box-shadow: none !important; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.sb-meas:hover { background: rgba(139,92,246,0.055) !important; box-shadow: none !important; transform: none; }
.sb-meas .sb-count { color: #6d28d9; }
.sb-meas .sb-label { color: #8b5cf6; }

.sb-payw {
  background: transparent !important; border: 0 !important;
  box-shadow: none !important; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.sb-payw:hover { background: rgba(245,158,11,0.055) !important; box-shadow: none !important; transform: none; }
.sb-payw .sb-count { color: #92400e; }
.sb-payw .sb-label { color: #d97706; }

.sb-payd {
  background: transparent !important; border: 0 !important;
  box-shadow: none !important; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.sb-payd:hover { background: rgba(16,185,129,0.055) !important; box-shadow: none !important; transform: none; }
.sb-payd .sb-count { color: #065f46; }
.sb-payd .sb-label { color: #10b981; }

.sb-ship {
  background: transparent !important; border: 0 !important;
  box-shadow: none !important; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.sb-ship:hover { background: rgba(14,165,233,0.055) !important; box-shadow: none !important; transform: none; }
.sb-ship .sb-count { color: #0369a1; }
.sb-ship .sb-label { color: #0ea5e9; }

.sb-dlvr {
  background: transparent !important; border: 0 !important;
  box-shadow: none !important; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.sb-dlvr:hover { background: rgba(107,114,128,0.055) !important; box-shadow: none !important; transform: none; }
.sb-dlvr .sb-count { color: #374151; }
.sb-dlvr .sb-label { color: #6b7280; }

/* ---- Deposit two-card row ---- */
.dep-grid {
  display: grid; grid-template-columns: 1fr; gap: 12px;
  width: 100%;
}
.dep-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 14px;
  min-height: 78px;
}
.dep-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--orange-light); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--orange);
}
.dep-info { display: flex; flex-direction: column; gap: 3px; }
.dep-label { font-size: 11px; color: var(--text-light); }
.dep-amount { font-size: 19px; font-weight: 700; color: var(--text); line-height: 1; }
.dep-currency { font-size: 11px; font-weight: 500; color: var(--text-mid); margin-top: 1px; }
.dep-charge-btn {
  margin-left: auto; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  /*min-height: 32px;*/ padding: 7px 12px; border-radius: 999px;
  background: var(--orange); border: 1px solid var(--orange);
  color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1;
  text-decoration: none; box-shadow: 0 4px 12px rgba(255,94,34,0.18);
  transition: background 0.14s, transform 0.14s, box-shadow 0.14s;
}
.dep-charge-btn:hover {
  background: var(--orange-dark); transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255,94,34,0.24);
}

.issue-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; min-width: 0; align-content: start;
}
.issue-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 14px; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; aspect-ratio: 1 / 1; text-align: center;
  transition: border-color 0.14s, box-shadow 0.14s, transform 0.14s;
  position: relative; z-index: 0;
}
.issue-card.issue-alert { border-color: rgba(239,68,68,0.42); }
.issue-card.issue-alert::before {
  content: ""; position: absolute; inset: -6px; z-index: -1;
  border-radius: calc(var(--radius) + 6px);
  background: rgba(239,68,68,0.24);
  filter: blur(9px);
  animation: issueAlertBounce 1.55s ease-in-out infinite;
}
@keyframes issueAlertBounce {
  0%, 100% { opacity: 0.45; transform: scale(0.98); }
  50% { opacity: 0.9; transform: scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
  .issue-card.issue-alert::before { animation: none; opacity: 0.65; }
}
.issue-card:hover {
  border-color: var(--orange);
  box-shadow: 0 6px 18px rgba(255,94,34,0.12);
  transform: translateY(-2px);
}
.issue-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange-light); color: var(--orange);
}
.issue-label { font-size: 13px; color: var(--text-mid); margin-bottom: 5px; font-weight: 700; }
.issue-count { font-size: 25px; font-weight: 800; color: var(--text); line-height: 1; }
.issue-desc {
  display: block; max-width: 190px;
  font-size: 11.5px; color: var(--text-mid); line-height: 1.45;
}
.issue-action {
  display: block; font-size: 11.5px; color: var(--orange);
  font-weight: 700; margin-top: 1px;
}
.dashboard-issue-grid {
  grid-area: right-bottom;
  height: 100%;
  align-self: stretch;
  align-content: stretch;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dashboard-issue-grid .issue-card {
  aspect-ratio: auto; min-height: 0; /*height: 100%;*/
  padding: 12px 10px; gap: 5px;
  overflow: hidden;
}
.dashboard-issue-grid .issue-icon { width: 32px; height: 32px; border-radius: 11px; }
.dashboard-issue-grid .issue-label { margin-bottom: 2px; font-size: 11.5px; line-height: 1.1; }
.dashboard-issue-grid .issue-count { font-size: 21px; }
.dashboard-issue-grid .issue-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 150px;
  font-size: 10.3px;
  line-height: 1.28;
}
.dashboard-issue-grid .issue-action { display: block; font-size: 10.5px; margin-top: 0; }

/* ---- Order table card ---- */
.mini-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.mini-table th {
  background: #f8f8fc; color: var(--text-light); font-size: 11px; font-weight: 600;
  padding: 7px 8px; border-bottom: 1px solid var(--border); text-align: center; white-space: nowrap;
}
.mini-table td {
  padding: 8px 8px; border-bottom: 1px solid var(--border-light);
  color: var(--text); font-size: 11.5px; vertical-align: middle; text-align: center;
}
.mini-table tr:last-child td { border-bottom: none; }
.mini-table .name-cell {
  text-align: left; max-width: 160px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.more-link {
  display: block; text-align: center; padding: 9px;
  font-size: 11.5px; color: var(--orange); font-weight: 600;
  border-top: 1px solid var(--border-light); cursor: pointer;
  transition: background 0.12s; text-decoration: none;
}
.more-link:hover { background: var(--orange-light); }
.order-update-card .p-card-body { overflow-x: auto; }

/* ---- Notice list (unchanged) ---- */
.notice-list { list-style: none; padding: 0; margin: 0; }
.notice-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border-light);
  font-size: 12px; cursor: pointer; transition: color 0.12s;
}
.notice-list li:last-child { border-bottom: none; }
.notice-list li:hover .notice-title { color: var(--orange); }
.notice-title { color: var(--text); flex: 1; padding-right: 8px; }
.notice-date { font-size: 11px; color: var(--text-light); white-space: nowrap; }
.notice-imp { color: var(--orange); font-weight: 700; margin-right: 3px; }

/* ---- Mid notices ---- */
.mid-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.order-update-card { min-width: 0; }
.notice-pair {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
  gap: 16px;
  align-content: stretch;
  align-items: stretch;
  height: 100%;
}
.notice-card .p-card-body { padding: 12px 16px; }
.notice-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.notice-card .p-card-body { flex: 1; }
.notice-card .notice-list li { align-items: flex-start; gap: 8px; }
.notice-card .notice-title {
  min-width: 0; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.notice-card .notice-date { padding-top: 1px; }
.always-notice .notice-imp { color: #2563eb; }
.notice-pair { gap: 8px; }
.notice-pair .p-card-head { padding: 11px 8px; }
.notice-pair .p-card-head h3 {
  font-size: 12px;
  white-space: nowrap;
  letter-spacing: 0;
}
.notice-pair .notice-card .p-card-body { padding: 9px 8px; }
.notice-pair .notice-list li {
  display: block;
  padding: 8px 0;
  font-size: 11px;
}
.notice-pair .notice-title {
  padding-right: 0;
  word-break: keep-all;
}
.notice-pair .notice-date { display: none; }

/* ---- Favorite modal ---- */
.fav-modal {
  position: fixed; inset: 0; z-index: 50;
  display: none; align-items: center; justify-content: center;
  padding: 26px; background: rgba(15,23,42,0.36);
}
.fav-modal.is-open { display: flex; }
.fav-dialog {
  width: min(760px, 100%); max-height: min(720px, calc(100vh - 52px));
  background: #fff; border-radius: var(--radius); box-shadow: 0 22px 60px rgba(15,23,42,0.22);
  display: flex; flex-direction: column; overflow: hidden;
}
.fav-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; border-bottom: 1px solid var(--border-light);
}
.fav-head h3 { margin: 0; font-size: 15px; color: var(--text); flex: 1; }
.fav-reset-head {
  border: 1px solid var(--border); border-radius: 999px;
  background: #fff; color: var(--text-mid);
  padding: 6px 10px; font-size: 11.5px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.fav-reset-head:hover { border-color: var(--orange-mid); color: var(--orange); background: #fffaf7; }
.fav-close {
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: #f5f5f7; color: var(--text-mid); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1;
}
.fav-close:hover { background: #ececf2; color: var(--text); }
.fav-body { padding: 16px 18px; overflow: auto; }
.fav-help { margin: 0 0 12px; font-size: 12px; color: var(--text-mid); }
.fav-options {
  display: flex; flex-direction: column; gap: 10px;
}
.fav-option-group {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #fff; box-shadow: var(--shadow-sm);
}
.fav-group-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; background: #f8f9fc;
  border-bottom: 1px solid var(--border-light);
}
.fav-group-title strong { font-size: 12.5px; color: var(--text); }
.fav-group-title span { font-size: 10.5px; color: var(--text-light); white-space: nowrap; }
.fav-group-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px; padding: 10px;
}
.fav-option {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; padding: 9px 10px; cursor: pointer;
  display: flex; align-items: center; gap: 8px; min-width: 0;
  transition: border-color 0.14s, background 0.14s, box-shadow 0.14s;
}
.fav-option:hover { border-color: var(--orange-mid); background: #fffaf7; }
.fav-option input { flex-shrink: 0; accent-color: var(--orange); }
.fav-option strong {
  display: block; font-size: 12px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fav-option-text { display: block; min-width: 0; }
.fav-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-top: 1px solid var(--border-light); background: #fafafa;
}
.fav-limit { font-size: 12px; color: var(--text-mid); }
.fav-actions { display: flex; gap: 8px; }
.fav-btn {
  border: 1px solid var(--border); background: #fff; color: var(--text-mid);
  border-radius: var(--radius); padding: 8px 13px; cursor: pointer;
  font-size: 12px; font-weight: 700;
}
.fav-btn:hover { border-color: var(--text-light); color: var(--text); }
.fav-btn.primary { border-color: var(--orange); background: var(--orange); color: #fff; }
.fav-btn.primary:hover { filter: brightness(0.98); }

@media (max-width: 1100px) {
  .fav-group-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Quick links ---- */
.ql-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
}
.ql-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 12px; display: flex; flex-direction: column; gap: 7px;
  box-shadow: var(--shadow-sm); transition: border-color 0.14s, box-shadow 0.14s;
  text-decoration: none; color: inherit;
}
.ql-card:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 8px rgba(255,94,34,0.12);
}
.ql-header {
  display: flex; align-items: center; justify-content: space-between;
}
.ql-logo { height: 28px; width: auto; max-width: 100%; object-fit: contain; display: block; margin-bottom: 2px; align-self: flex-start; }
.ql-name { font-size: 12.5px; font-weight: 700; color: var(--text); }
.ql-ext { color: var(--text-light); flex-shrink: 0; }
.ql-desc { font-size: 10.5px; color: var(--text-light); line-height: 1.4; }

/* ---- Notification panel ---- */
.notif-panel {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden;
  width: 100%; align-self: stretch;
}
.notif-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-bottom: 1px solid var(--border-light);
  background: #fafafa;
}
.notif-header-title { font-size: 12.5px; font-weight: 700; color: var(--text); flex: 1; }
.notif-badge {
  background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px;
  transition: opacity 0.2s;
}
#notifList {
  overflow-y: auto;
  scrollbar-gutter: stable;
}
#notifList.is-scrollable {
  overscroll-behavior: contain;
}
#notifList::-webkit-scrollbar { width: 8px; }
#notifList::-webkit-scrollbar-track { background: #f7f7fa; }
#notifList::-webkit-scrollbar-thumb {
  background: #d8d8e2; border-radius: 999px; border: 2px solid #f7f7fa;
}
.notif-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 16px; border-bottom: 1px solid var(--border-light);
  transition: background 0.12s, opacity 0.2s, transform 0.2s;
  animation: notifSlideIn 0.28s cubic-bezier(0.22,1,0.36,1);
  cursor: pointer; color: inherit; text-decoration: none;
}
.notif-item:last-of-type { border-bottom: none; }
.notif-item:hover { background: #f9f9fb; }
@keyframes notifSlideIn {
  from { opacity:0; transform:translateX(-10px); }
  to   { opacity:1; transform:none; }
}
.notif-item:nth-child(2) { animation-delay: 0.06s; }
.notif-item:nth-child(3) { animation-delay: 0.12s; }
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 4px;
}
.nd-success { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.15); }
.nd-warning { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,0.15); }
.nd-error   { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }
.nd-info    { background: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.notif-body { flex: 1; min-width: 0; }
.notif-msg { font-size: 12px; color: var(--text); line-height: 1.5; }
.notif-msg strong { font-weight: 700; }
.notif-time { font-size: 10.5px; color: var(--text-light); margin-top: 2px; }
.notif-dismiss {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  border: none; background: none; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); transition: background 0.12s, color 0.12s;
  margin-top: 1px;
}
.notif-dismiss:hover { background: #f0f0f5; color: var(--text); }
.notif-empty {
  padding: 20px; text-align: center;
  font-size: 12px; color: var(--text-light);
}

@media (max-width: 900px) {
  .state-strip { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .state-badge { min-width: 0; }
}
@media (max-width: 640px) {
  .dash-top-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left-top"
      "right-top"
      "left-bottom"
      "right-bottom";
  }
  .state-strip { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .state-badge { min-height: 68px; padding: 7px 1px; gap: 3px; }
  .state-badge .sb-count { font-size: 13.2px; }
  .state-badge .sb-label { font-size: 10.2px; line-height: 1.05; }
  .state-badge .sb-label span { display: block; }
  .dep-card { min-height: 74px; padding: 11px 14px; }
  .dep-icon { width: 32px; height: 32px; }
  .dep-amount { font-size: 18px; }
  .dashboard-issue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dashboard-issue-grid .issue-card { min-height: 163px; height: 100%; padding: 12px 10px; }
  .ql-grid   { grid-template-columns: repeat(3, 1fr); }
  .favorite-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fav-group-list { grid-template-columns: 1fr; }
  .fav-modal { padding: 16px; }
}

/* =====  하단 공통 팝업 모달 (부트스트랩 사용X)  ===================================== */
#PopModalBasic{}

/* ===== 대행종합관리 주문 보기/수정(nJos/acting/order/) ============================== */
.pro-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pro-table th { text-align: left; font-size: 11px; color: var(--text-light); font-weight: 700; padding: 0 10px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.pro-table td { padding: 12px 10px; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.pro-table tr:last-child td { border-bottom: none; }
.pro-name-cell { display: flex; gap: 10px; align-items: flex-start; min-width: 220px; }
.pro-name { font-size: 12.5px; font-weight: 700; color: var(--text); }
.pro-sub { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.pro-link { color: var(--orange); }
.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 10px; font-size: 10.5px; font-weight: 700; }
.pill.ok { background: #eafaf2; color: var(--green); }
.pill.err { background: #fdecec; color: var(--red); }
.link-btn { font-size: 11px; font-weight: 700; color: var(--orange); cursor: pointer; }
.tag-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 14px; font-size: 12px; font-weight: 600; background: var(--orange-light); color: var(--orange-dark); margin: 0 6px 6px 0; }
.tag-chip.free { background: #eafaf2; color: var(--green); }
.mix-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 12.5px; border-bottom: 1px dashed var(--border-light); }
.mix-item:last-child { border-bottom: none; }
.notice-item { padding: 9px 0; border-bottom: 1px dashed var(--border-light); font-size: 12px; color: var(--text-mid); }
.notice-item:last-child { border-bottom: none; }
.notice-date { color: var(--text-light); font-size: 11px; margin-right: 8px; }
.cha-group { background: #f8f8fc; border-radius: var(--radius-sm); padding: 11px 13px; margin-bottom: 8px; }
.cha-group:last-child { margin-bottom: 0; }
.cha-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--text); }
.cha-pmt { font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 10px; }
.cha-pmt.done { background: #eafaf2; color: var(--green); }
.cha-pmt.wait { background: #fff4ee; color: var(--orange-dark); }
.sum-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 12.5px; border-bottom: 1px dashed var(--border-light); }
.sum-row:last-child { border-bottom: none; }
.sum-row .k { color: var(--text-mid); }
.sum-row .v { color: var(--text); font-weight: 600; }
.sum-row.total { border-top: 1px solid var(--border); border-bottom: none; margin-top: 8px; padding-top: 14px; }
.sum-row.total .k { font-size: 13.5px; font-weight: 700; color: var(--text); }
.sum-row.total .v { font-size: 17px; font-weight: 800; color: var(--orange); }
.order-wrap .sub-title { font-size: 12.5px; font-weight: 700; color: var(--text); margin: 4px 0 12px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.order-wrap .sub-title:first-child { padding-top: 0; border-top: none; }
.radio-row { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-opt { display: flex; align-items: center; gap: 5px; font-size: 12.5px; }
.radio-opt input { accent-color: var(--orange); }
.btn-sm { padding: 6px 13px; font-size: 11px; }
.btn-danger-text { color: var(--red); background: none; border: none; font-size: 11.5px; font-weight: 600; cursor: pointer; padding: 4px; }
.pro-row { border: 1px solid var(--border-light); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; position: relative; }
.pro-row:last-child { margin-bottom: 0; }
.pro-row-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fafafc; border-bottom: 1px solid var(--border-light); }
.pro-thumb { width: 40px; height: 40px; border-radius: 7px; flex: none; background-color: #f0f0f8; background-size: cover; background-position: center; }
.pro-title { font-size: 12.5px; font-weight: 700; color: var(--text); }
.status-pill { font-size: 10px; font-weight: 700; color: var(--text-mid); background: #f0f0f8; padding: 3px 9px; border-radius: 10px; }
.pro-fields { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; padding: 14px; }
.pro-field label { display: block; font-size: 10.5px; color: var(--text-light); font-weight: 600; margin-bottom: 4px; }
.lock-dim { filter: grayscale(85%); opacity: 0.4; pointer-events: none; user-select: none; }
.lock-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(255,255,255,0.6); padding: 0 20px; }
.lock-badge { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; flex: none; }
.lock-msg { font-size: 12px; font-weight: 700; color: var(--text); }
.lock-sub { font-size: 10.5px; color: var(--text-mid); }
.pending-del-dim { opacity: 0.4; pointer-events: none; user-select: none; }
.pending-del-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(255,245,245,0.75); padding: 0 20px; }
.pending-del-badge { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid #e3b4b4; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center; flex: none; }
.pending-del-msg { font-size: 12px; font-weight: 700; color: #c0392b; }
.pending-del-sub { font-size: 10.5px; color: var(--text-mid); }
.add-row-btn { width: 100%; padding: 13px; border: 1.5px dashed var(--border); border-radius: var(--radius-sm); background: #fafafc; color: var(--text-mid); font-size: 12.5px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.add-row-btn:hover { border-color: var(--orange); color: var(--orange); }

.btm-modal-overlay {
    opacity: 1;
    pointer-events: auto;
}

.btm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s;
}

/* jQuery UI datepicker(.dtPic) 테마 오버라이드
   원본 admin_common.css의 달력 스타일은 div#calendar-container 안에서만 적용되는데
   njos에서는 그 래퍼 없이 그냥 $(".dtPic").datepicker()로 쓰고 있어서
   jquery-ui-1.10.4.custom.css 기본 테마(Trebuchet MS 폰트 등)가 그대로 노출되어 페이지 디자인과 어긋났음.
   이 CSS(jquery-ui-1.10.4.custom.css)는 bbs_Ord_S.asp에서 user_njos.css보다 "나중에" 로드되고
   선택자 specificity도 동일해서, !important 없이는 아래 규칙이 전부 그 기본테마에 덮여씀
   (예: 화살표 위치처럼 !important를 준 것만 반영되고 나머지는 안 먹던 문제) - 그래서 전부 !important 처리 */
.ui-datepicker {
    font-family: 'Noto Sans KR', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif !important;
    font-size: 12.5px !important;
    width: 240px !important;
    padding: 10px !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm) !important;
    background: #fff !important;
    z-index: 9999 !important;
}
.ui-datepicker .ui-datepicker-header {
    background: none !important;
    border: none !important;
    color: var(--text) !important;
    font-weight: 600 !important;
}
.ui-datepicker .ui-datepicker-title {
    font-size: 13px !important;
    margin: 0 26px !important;
}
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year {
    font-family: inherit !important;
    font-size: 12.5px !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    padding: 2px 4px !important;
    color: var(--text) !important;
    background: #fff !important;
}
.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
    position: absolute !important;
    top: 4px !important;
    width: 22px !important;
    height: 22px !important;
    left: auto !important; right: auto !important;
    cursor: pointer !important;
    text-align: center !important;
}
.ui-datepicker .ui-datepicker-prev { left: 4px !important; }
.ui-datepicker .ui-datepicker-next { right: 4px !important; }
.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    display: none !important;
}
.ui-datepicker .ui-datepicker-prev:before,
.ui-datepicker .ui-datepicker-next:before {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--text-mid) !important;
}
.ui-datepicker .ui-datepicker-prev:before { content: '\2039' !important; }
.ui-datepicker .ui-datepicker-next:before { content: '\203A' !important; }
.ui-datepicker table {
    font-size: 12px !important;
    border-collapse: separate !important;
    border-spacing: 2px !important;
    margin: 0 !important;
    width: 100% !important;
}
.ui-datepicker th {
    color: var(--text-light) !important;
    font-weight: 600 !important;
    padding: 4px 0 !important;
    border: 0 !important;
}
.ui-datepicker td {
    padding: 0 !important;
    border: none !important;
}
.ui-datepicker td a,
.ui-datepicker td span {
    display: block !important;
    text-align: center !important;
    padding: 5px 0 !important;
    border-radius: var(--radius-sm) !important;
    color: var(--text) !important;
    border: none !important;
    background: none !important;
}
.ui-datepicker td a:hover {
    background: var(--border-light) !important;
}
.ui-datepicker td .ui-state-active {
    background: var(--orange) !important;
    color: #fff !important;
    font-weight: 600 !important;
}
.ui-datepicker td.ui-datepicker-today a {
    border: 1px solid var(--orange) !important;
}

/* ===== 이미지 확대(실사사진 등 공용) ===================================== */
.img-zoom-overlay {
  display: none; position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 40px;
}
.img-zoom-overlay.show { display: flex; }
.img-zoom-img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.img-zoom-close {
  position: fixed; top: 20px; right: 24px; width: 40px; height: 40px;
  border-radius: 50%; border: none; background: rgba(255,255,255,0.14);
  color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.14s;
}
.img-zoom-close:hover { background: rgba(255,255,255,0.26); }

/* ===== 게시판 영상 재생 모달 (bbs_video.asp) - index_njos.asp의 유튜브 모달과 같은 방식(youtube-nocookie embed)이지만
   그쪽 CSS(user_main.css)는 njos 내부화면에 안 실려있어 기존 .jos-modal 컨벤션으로 새로 작성 ===== */
.video-play-modal {
    width: min(860px, calc(100vw - 32px));
}
.video-play-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.video-play-head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.video-play-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.video-play-frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}