.coupon-issue-button,
.coupon-submit-button {
  border: 1px solid #12315f;
  background: #12315f;
  color: #fff;
  border-radius: 6px;
  min-height: 32px;
  padding: 0 10px;
  font-weight: 700;
  cursor: pointer;
}

.coupon-issue-button {
  margin-left: 6px;
  background: #fff;
  color: #12315f;
  min-width: 46px;
  min-height: 30px;
  padding: 0 8px;
  white-space: nowrap;
}

.coupon-issue-button:hover,
.coupon-submit-button:hover {
  filter: brightness(.96);
}

.member-point-actions {
  margin-top: -2px;
}

.point-submit-button {
  border-color: #38bdf8;
  background: #e0f2fe;
  color: #075985;
}

.point-submit-button:hover {
  background: #bae6fd;
}

.coupon-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 18, 38, .45);
}

.coupon-modal-backdrop[hidden] {
  display: none;
}

.coupon-modal {
  width: min(520px, 100%);
  border: 1px solid #d8e0ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(10, 31, 68, .24);
  overflow: hidden;
}

.coupon-modal-head,
.coupon-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #edf1f7;
}

.coupon-modal-actions {
  border-top: 1px solid #edf1f7;
  border-bottom: 0;
}

.coupon-modal-head strong {
  font-size: 18px;
  color: #10233f;
}

.coupon-close-button,
.coupon-cancel-button {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 6px;
  min-height: 32px;
  padding: 0 10px;
  cursor: pointer;
}

.coupon-modal-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.coupon-field {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.coupon-field select,
.coupon-field textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}

.coupon-field textarea {
  min-height: 72px;
  resize: vertical;
}

.coupon-member-summary {
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

.coupon-message {
  margin: 0;
  color: #b42318;
  font-weight: 700;
}

.coupon-message.is-success {
  color: #067647;
}

.coupon-list {
  display: grid;
  gap: 8px;
}

.member-coupon-panel {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #f8fbff;
}

.member-coupon-head {
  display: grid;
  gap: 4px;
}

.member-coupon-head strong {
  color: #10233f;
  font-size: 16px;
}

.member-coupon-head span {
  color: #64748b;
  font-size: 13px;
}

.member-coupon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-admin-table td:nth-child(2) {
  min-width: 104px;
  white-space: nowrap;
}

.member-admin-table td:nth-child(2) .member-edit-button,
.member-admin-table td:nth-child(2) .coupon-issue-button {
  vertical-align: middle;
}

.member-search-tool {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.member-search-tool input {
  width: 360px;
  max-width: 40vw;
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 12px;
  color: #0f2747;
  font: inherit;
  font-weight: 500;
}

.member-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.member-toolbar-actions .grid-tool {
  flex: 0 0 auto;
  min-width: 72px;
  justify-content: center;
  white-space: nowrap;
}

[data-member-check]:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.ops-admin-page [data-admin-panel="members"] .member-admin-toolbar {
  position: sticky;
  left: 0;
  z-index: 6;
  width: min(calc(100vw - 32px), calc(var(--admin-workspace-width) - (var(--admin-workspace-gutter) * 2))) !important;
  min-width: 0 !important;
  max-width: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 16px 14px !important;
  background: #fff;
}

.ops-admin-page [data-admin-panel="members"] .member-admin-message {
  flex: 1 1 220px;
  min-width: 180px;
}

body.ops-admin-page,
.ops-admin-page .ops-main {
  min-width: 1440px;
  width: 100%;
  max-width: none;
  background: #f3f6fa;
}

.ops-admin-page .ops-main {
  margin: 0;
}

.ops-admin-page .ops-title-bar,
.ops-admin-page .admin-legacy-menu,
.ops-admin-page .admin-accent-bar,
.ops-admin-page .ops-toolbar,
.ops-admin-page [data-admin-panel],
.ops-admin-page .column-filter-panel {
  width: 100% !important;
  min-width: 1440px !important;
  max-width: none !important;
  box-sizing: border-box;
}

.ops-admin-page .admin-accent-bar {
  margin-inline: 0 !important;
}

.ops-admin-page [data-admin-panel] {
  background: #f3f6fa;
}

.ops-admin-page .ops-table-wrap,
.ops-admin-page .popup-admin-wrap,
.ops-admin-page .legacy-customer-wrap,
.ops-admin-page .referral-admin-wrap {
  width: 100% !important;
  min-width: 1440px !important;
  max-width: none !important;
  box-sizing: border-box;
  background: #fff;
}

.ops-admin-page .member-admin-toolbar,
.ops-admin-page .popup-admin-toolbar,
.ops-admin-page .popup-admin-title,
.ops-admin-page .member-panel-title,
.ops-admin-page .profile-content-editor,
.ops-admin-page .permission-guard {
  width: 100% !important;
  min-width: 1440px !important;
  max-width: none !important;
  box-sizing: border-box;
  background: #fff;
}

.ops-admin-page .member-admin-table,
.ops-admin-page .popup-admin-table,
.ops-admin-page .discount-admin-table,
.ops-admin-page .admin-real-table {
  width: 100% !important;
  min-width: 1440px !important;
  max-width: none !important;
}

.ops-admin-page .coupon-audit-table.admin-real-table {
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 1180px !important;
}

.ops-admin-page .coupon-audit-table th:nth-child(1),
.ops-admin-page .coupon-audit-table td:nth-child(1) {
  width: 7% !important;
}

.ops-admin-page .coupon-audit-table th:nth-child(2),
.ops-admin-page .coupon-audit-table td:nth-child(2),
.ops-admin-page .coupon-audit-table th:nth-child(3),
.ops-admin-page .coupon-audit-table td:nth-child(3) {
  width: 4.5% !important;
}

.ops-admin-page .coupon-audit-table th:nth-child(4),
.ops-admin-page .coupon-audit-table td:nth-child(4) {
  width: 19% !important;
}

.ops-admin-page .coupon-audit-table th:nth-child(5),
.ops-admin-page .coupon-audit-table td:nth-child(5) {
  width: 7% !important;
}

.ops-admin-page .coupon-audit-table th:nth-child(6),
.ops-admin-page .coupon-audit-table td:nth-child(6),
.ops-admin-page .coupon-audit-table th:nth-child(7),
.ops-admin-page .coupon-audit-table td:nth-child(7) {
  width: 12% !important;
}

.ops-admin-page .coupon-audit-table th:nth-child(8),
.ops-admin-page .coupon-audit-table td:nth-child(8) {
  width: 34% !important;
}

.ops-admin-page .coupon-audit-table.admin-real-table {
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 1180px !important;
}

.ops-admin-page .coupon-audit-table th:nth-child(1),
.ops-admin-page .coupon-audit-table td:nth-child(1) {
  width: 7% !important;
}

.ops-admin-page .coupon-audit-table th:nth-child(2),
.ops-admin-page .coupon-audit-table td:nth-child(2),
.ops-admin-page .coupon-audit-table th:nth-child(3),
.ops-admin-page .coupon-audit-table td:nth-child(3) {
  width: 4.5% !important;
}

.ops-admin-page .coupon-audit-table th:nth-child(4),
.ops-admin-page .coupon-audit-table td:nth-child(4) {
  width: 19% !important;
}

.ops-admin-page .coupon-audit-table th:nth-child(5),
.ops-admin-page .coupon-audit-table td:nth-child(5) {
  width: 7% !important;
}

.ops-admin-page .coupon-audit-table th:nth-child(6),
.ops-admin-page .coupon-audit-table td:nth-child(6),
.ops-admin-page .coupon-audit-table th:nth-child(7),
.ops-admin-page .coupon-audit-table td:nth-child(7) {
  width: 12% !important;
}

.ops-admin-page .coupon-audit-table th:nth-child(8),
.ops-admin-page .coupon-audit-table td:nth-child(8) {
  width: 34% !important;
}

.ops-admin-page .member-edit-grid [data-member-business-row][hidden] {
  display: none !important;
}

.member-admin-table tr.is-member-search-hidden {
  display: none;
}

.coupon-list-title {
  margin: 0;
  color: #10233f;
  font-weight: 800;
}

.coupon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.coupon-row-main {
  display: grid;
  gap: 4px;
}

.coupon-cancel-inline {
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff5f5;
  color: #b42318;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.coupon-row strong {
  color: #10233f;
}

.coupon-row span {
  color: #64748b;
  font-size: 12px;
}

.coupon-audit-toolbar {
  gap: 12px;
}

.coupon-audit-wrap {
  overflow-x: auto;
}

.ops-admin-page .coupon-audit-table {
  table-layout: fixed !important;
  min-width: 1180px !important;
}

.coupon-audit-table th:nth-child(1),
.coupon-audit-table td:nth-child(1) {
  width: 132px;
}

.coupon-audit-table th:nth-child(2),
.coupon-audit-table td:nth-child(2) {
  width: 78px;
}

.coupon-audit-table th:nth-child(3),
.coupon-audit-table td:nth-child(3) {
  width: 76px;
}

.coupon-audit-table th:nth-child(4),
.coupon-audit-table td:nth-child(4) {
  width: 220px;
}

.coupon-audit-table th:nth-child(5),
.coupon-audit-table td:nth-child(5) {
  width: 92px;
}

.coupon-audit-table th:nth-child(6),
.coupon-audit-table td:nth-child(6),
.coupon-audit-table th:nth-child(7),
.coupon-audit-table td:nth-child(7) {
  width: 150px;
}

.coupon-audit-table th:nth-child(8),
.coupon-audit-table td:nth-child(8) {
  width: 280px;
}

.coupon-audit-table td {
  vertical-align: top;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.ops-admin-page .alimtalk-log-table {
  min-width: 1040px !important;
}

.alimtalk-log-table th:nth-child(1),
.alimtalk-log-table td:nth-child(1) {
  width: 132px;
}

.alimtalk-log-table th:nth-child(2),
.alimtalk-log-table td:nth-child(2) {
  width: 170px;
}

.alimtalk-log-table th:nth-child(3),
.alimtalk-log-table td:nth-child(3) {
  width: 76px;
}

.alimtalk-log-table th:nth-child(4),
.alimtalk-log-table td:nth-child(4) {
  width: 110px;
}

.alimtalk-log-table th:nth-child(5),
.alimtalk-log-table td:nth-child(5) {
  width: 126px;
}

.alimtalk-log-table th:nth-child(6),
.alimtalk-log-table td:nth-child(6) {
  width: 220px;
}

.alimtalk-log-table th:nth-child(7),
.alimtalk-log-table td:nth-child(7) {
  width: 110px;
}

.alimtalk-log-table th:nth-child(8),
.alimtalk-log-table td:nth-child(8) {
  width: 170px;
}

.coupon-audit-kind,
.coupon-audit-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: #e8f2ff;
  color: #12315f;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.coupon-audit-status {
  background: #ecfdf3;
  color: #067647;
}

.application-log-summary {
  min-width: 280px;
  line-height: 1.55;
  color: #10233f;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.application-log-summary div + div {
  margin-top: 3px;
}

.mypage-coupon-panel {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #f8fbff;
  max-width: 100%;
  overflow: hidden;
}

.mypage-coupon-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}

.mypage-point-balance {
  color: #0c6b3d;
  font-size: 22px;
  white-space: nowrap;
}

.mypage-wallet-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mypage-wallet-toggle {
  min-height: 34px;
  border: 1px solid #cbd8ea;
  border-radius: 8px;
  background: #fff;
  color: #12315f;
  padding: 0 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.mypage-wallet-toggle:focus-visible {
  outline: 3px solid rgba(18, 49, 95, 0.18);
  outline-offset: 2px;
}

.mypage-coupon-head h2 {
  margin: 0;
  color: #10233f;
  font-size: 19px;
  line-height: 1.25;
}

.mypage-coupon-head p {
  margin: 4px 0 0;
  color: #64748b;
  line-height: 1.45;
}

.mypage-coupon-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.mypage-coupon-panel[data-collapsed="true"] .mypage-coupon-list {
  display: none;
}

.mypage-coupon-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}

.mypage-coupon-card strong {
  color: #10233f;
  font-size: 17px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.mypage-coupon-card span,
.mypage-coupon-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mypage-coupon-status {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 9px;
  background: #e8f2ff;
  color: #12315f;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 620px) {
  body:not(.ops-admin-page) {
    min-width: 0 !important;
    overflow-x: hidden;
  }

  body:not(.ops-admin-page) .mypage-main,
  body:not(.ops-admin-page) .mypage-shell {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    box-sizing: border-box;
  }

  body:not(.ops-admin-page) .mypage-main {
    padding-right: 12px;
    padding-left: 12px;
  }

  body:not(.ops-admin-page) .mypage-title h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .mypage-coupon-panel {
    margin: 12px 0;
    padding: 12px;
    border-radius: 8px;
  }

  .mypage-coupon-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    margin-bottom: 10px;
  }

  .mypage-coupon-head h2 {
    font-size: 16px;
  }

  .mypage-coupon-head p {
    max-width: 100%;
    font-size: 12px;
  }

  .mypage-point-balance {
    align-self: center;
    font-size: 17px;
  }

  .mypage-wallet-side {
    gap: 6px;
  }

  .mypage-wallet-toggle {
    min-height: 30px;
    padding: 0 9px;
    font-size: 12px;
  }

  .mypage-coupon-list {
    max-height: 232px;
    overflow-y: auto;
    padding-right: 2px;
    overscroll-behavior: contain;
  }

  .mypage-coupon-card {
    gap: 4px;
    padding: 10px;
  }

  .mypage-coupon-card strong {
    font-size: 15px;
  }

  .mypage-coupon-card span,
  .mypage-coupon-card p {
    font-size: 12px;
  }

  .mypage-coupon-card p {
    display: none;
  }

  .mypage-coupon-status {
    padding: 3px 7px;
    font-size: 11px;
  }
}

/* Admin workspace width reset: keep every admin panel aligned to the same right edge. */
.ops-admin-page {
  --admin-workspace-width: max(1440px, 100vw);
}

body.ops-admin-page,
.ops-admin-page .ops-main {
  min-width: 1440px !important;
  width: 100% !important;
  max-width: none !important;
  background: #f3f6fa !important;
}

.ops-admin-page .ops-main {
  margin: 0 !important;
}

.ops-admin-page .ops-title-bar,
.ops-admin-page .admin-legacy-menu,
.ops-admin-page .admin-accent-bar,
.ops-admin-page .ops-toolbar,
.ops-admin-page [data-admin-panel],
.ops-admin-page .column-filter-panel,
.ops-admin-page [data-admin-panel="members"],
.ops-admin-page [data-admin-panel="popups"],
.ops-admin-page [data-admin-panel="discounts"],
.ops-admin-page [data-admin-panel="applications"] .ops-table-wrap,
.ops-admin-page [data-admin-panel="members"] > .ops-table-wrap,
.ops-admin-page [data-admin-panel="popups"] > .popup-admin-wrap,
.ops-admin-page [data-admin-panel="discounts"] > .popup-admin-wrap,
.ops-admin-page [data-admin-panel="members"] .member-admin-toolbar,
.ops-admin-page .member-panel-title,
.ops-admin-page .popup-admin-title,
.ops-admin-page .popup-admin-toolbar,
.ops-admin-page .profile-content-editor,
.ops-admin-page .permission-guard,
.ops-admin-page .legacy-customer-wrap,
.ops-admin-page .referral-admin-wrap,
.ops-admin-page .admin-detail-dropdown,
.ops-admin-page .admin-detail-frame {
  width: 100% !important;
  min-width: 1440px !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.ops-admin-page .admin-accent-bar {
  margin-inline: 0 !important;
}

.ops-admin-page .ops-table-wrap,
.ops-admin-page .popup-admin-wrap,
.ops-admin-page .legacy-customer-wrap,
.ops-admin-page .referral-admin-wrap,
.ops-admin-page .member-admin-toolbar,
.ops-admin-page .popup-admin-toolbar,
.ops-admin-page .popup-admin-title,
.ops-admin-page .member-panel-title,
.ops-admin-page .profile-content-editor,
.ops-admin-page .permission-guard {
  background: #fff !important;
}

.ops-admin-page .member-admin-table,
.ops-admin-page .popup-admin-table,
.ops-admin-page .discount-admin-table,
.ops-admin-page .admin-real-table {
  width: 100% !important;
  min-width: 1440px !important;
  max-width: none !important;
}

.ops-admin-page .coupon-audit-table.admin-real-table {
  table-layout: fixed !important;
  width: 100% !important;
  min-width: 1180px !important;
}

.ops-admin-page .coupon-audit-table th:nth-child(1),
.ops-admin-page .coupon-audit-table td:nth-child(1) {
  width: 7% !important;
}

.ops-admin-page .coupon-audit-table th:nth-child(2),
.ops-admin-page .coupon-audit-table td:nth-child(2),
.ops-admin-page .coupon-audit-table th:nth-child(3),
.ops-admin-page .coupon-audit-table td:nth-child(3) {
  width: 4.5% !important;
}

.ops-admin-page .coupon-audit-table th:nth-child(4),
.ops-admin-page .coupon-audit-table td:nth-child(4) {
  width: 19% !important;
}

.ops-admin-page .coupon-audit-table th:nth-child(5),
.ops-admin-page .coupon-audit-table td:nth-child(5) {
  width: 7% !important;
}

.ops-admin-page .coupon-audit-table th:nth-child(6),
.ops-admin-page .coupon-audit-table td:nth-child(6),
.ops-admin-page .coupon-audit-table th:nth-child(7),
.ops-admin-page .coupon-audit-table td:nth-child(7) {
  width: 12% !important;
}

.ops-admin-page .coupon-audit-table th:nth-child(8),
.ops-admin-page .coupon-audit-table td:nth-child(8) {
  width: 34% !important;
}
