/* Fullman ERP — 웹스테이션용 밝은 테마 */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700&display=swap");

:root {
  --erp-bg: #f0f6ff;
  --erp-sidebar: #ffffff;
  --erp-accent: #0284c7;
  --erp-accent-hover: #0369a1;
  --erp-border: rgba(15, 23, 42, 0.12);
  --erp-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --erp-radius: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body.erp-body {
  margin: 0;
  font-family: "Noto Sans KR", ui-sans-serif, system-ui, sans-serif;
  background: var(--erp-bg);
  color: #0f172a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.erp-shell {
  display: flex;
  min-height: 100vh;
}

.erp-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 16rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--erp-border);
  background: var(--erp-sidebar);
  box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04);
}

.erp-sidebar-brand {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.erp-sidebar-brand a {
  text-decoration: none;
  color: inherit;
}

.erp-sidebar-brand strong {
  display: block;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
}

.erp-sidebar-brand span {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--erp-accent);
}

.erp-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
}

.erp-nav-group-title {
  margin: 0 0 0.5rem;
  padding: 0 0.75rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.erp-nav ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.erp-nav a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--erp-radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.erp-nav a:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.erp-nav a.is-active {
  background: #e0f2fe;
  color: #0c4a6e;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.35);
}

.erp-sidebar-foot {
  padding: 0.75rem;
  border-top: 1px solid #f1f5f9;
  font-size: 10px;
  line-height: 1.5;
  color: #64748b;
}

.erp-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-left: 16rem;
}

.erp-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--erp-border);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

.erp-topbar h1 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
}

.erp-topbar p {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

.erp-pill {
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  background: #e0f2fe;
  color: #0c4a6e;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.erp-main {
  flex: 1;
  padding: 1.5rem 2rem;
  min-width: 0;
}

@media (max-width: 640px) {
  .erp-main {
    padding: 1rem 1rem;
  }

  .erp-topbar {
    padding: 0.85rem 1rem;
  }

  .erp-industry-bar {
    padding: 0.5rem 1rem;
  }
}

.erp-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.erp-grid-4 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.erp-card {
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #fff;
  padding: 1.25rem;
  box-shadow: var(--erp-shadow);
}

.erp-card-accent {
  border-left: 4px solid var(--erp-accent);
  background: linear-gradient(135deg, #fff 0%, rgba(224, 242, 254, 0.35) 100%);
}

.erp-card-ok {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, #fff 0%, rgba(209, 250, 229, 0.35) 100%);
}

.erp-card-warn {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, #fff 0%, rgba(254, 243, 199, 0.4) 100%);
}

.erp-card-muted {
  border-radius: 1rem;
  border: 1px solid rgba(186, 230, 253, 0.8);
  background: linear-gradient(135deg, rgba(240, 249, 255, 0.95) 0%, #fff 100%);
  padding: 1.25rem;
  box-shadow: var(--erp-shadow);
}

.erp-stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  margin: 0;
}

.erp-stat-value {
  margin: 0.25rem 0 0;
  font-size: 1.875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.erp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--erp-accent-hover);
  text-decoration: none;
}

.erp-link:hover {
  text-decoration: underline;
}

.erp-alert-danger {
  border-radius: var(--erp-radius);
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #7f1d1d;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.erp-callout-info {
  border-radius: var(--erp-radius);
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #0c4a6e;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.erp-callout-warn {
  border-radius: var(--erp-radius);
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #78350f;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.erp-section-title {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
}

.erp-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.erp-input,
.erp-select,
.erp-textarea {
  width: 100%;
  max-width: 100%;
  border-radius: var(--erp-radius);
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.erp-input:focus,
.erp-select:focus,
.erp-textarea:focus {
  outline: none;
  border-color: var(--erp-accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22);
}

.erp-textarea {
  min-height: 5rem;
  resize: vertical;
}

.erp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: var(--erp-radius);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s, background 0.15s;
}

.erp-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.erp-btn:active:not(:disabled) {
  transform: scale(0.99);
}

.erp-btn-primary {
  background: var(--erp-accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.erp-btn-primary:hover:not(:disabled) {
  background: var(--erp-accent-hover);
}

.erp-btn-warm {
  background: #f59e0b;
  color: #fff;
}

.erp-btn-warm:hover:not(:disabled) {
  background: #d97706;
}

.erp-btn-secondary {
  background: #fff;
  color: #334155;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.erp-btn-secondary:hover:not(:disabled) {
  background: #f8fafc;
}

.erp-form-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .erp-form-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .erp-form-grid.cols-2 .erp-form-full,
  .erp-form-grid.cols-2 .erp-form-actions {
    grid-column: 1 / -1;
  }

  .erp-span-2 {
    grid-column: span 2;
  }
}

.erp-form-full {
  grid-column: 1 / -1;
}

.erp-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.erp-input-sm {
  max-width: 12rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.8125rem;
}

.erp-btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
}

.erp-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.erp-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.erp-radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--erp-radius);
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.erp-radio-pill:has(:checked) {
  border-color: var(--erp-accent);
  background: #e0f2fe;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.erp-table-wrap {
  overflow-x: auto;
  border-radius: var(--erp-radius);
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: #fff;
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.05);
}

.erp-table-wrap.scroll {
  max-height: 70vh;
  overflow-y: auto;
}

.erp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}

.erp-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(224, 242, 254, 0.96), rgba(248, 250, 252, 0.92));
  box-shadow: 0 1px 0 rgba(226, 232, 240, 1);
}

.erp-table th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.erp-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.erp-table tbody tr:hover {
  background: rgba(224, 242, 254, 0.45);
}

.erp-muted {
  color: #64748b;
  font-size: 0.875rem;
}

.erp-text-ok {
  color: #047857;
  font-weight: 600;
}

.erp-text-out {
  color: #b45309;
  font-weight: 600;
}

.erp-mono {
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
}

.erp-two-col {
  display: grid;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .erp-two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.erp-msg-ok {
  font-size: 0.875rem;
  font-weight: 600;
  color: #0369a1;
}

.erp-msg-err {
  font-size: 0.875rem;
  font-weight: 600;
  color: #dc2626;
}

.erp-list-divide > * + * {
  border-top: 1px solid #f1f5f9;
}

.erp-recent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.erp-icon-badge {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.erp-icon-badge.in {
  background: #d1fae5;
  color: #047857;
}

.erp-icon-badge.out {
  background: #ffedd5;
  color: #b45309;
}

/* 로그인 · 회원가입 팝업 */
.erp-auth-body {
  min-height: 100vh;
  position: relative;
}

.erp-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 50;
}

.erp-auth-popup {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  pointer-events: none;
}

.erp-auth-popup > * {
  pointer-events: auto;
}

.erp-auth-card {
  width: 100%;
  max-width: 26rem;
  background: #fff;
  border-radius: var(--erp-radius);
  box-shadow: var(--erp-shadow);
  padding: 1.75rem;
  border: 1px solid var(--erp-border);
}

.erp-terms-wide .erp-auth-card {
  max-width: 36rem;
  max-height: 85vh;
  overflow-y: auto;
}

.erp-auth-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.erp-auth-hint {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.45;
}

.erp-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.erp-auth-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 520px) {
  .erp-auth-row2 {
    grid-template-columns: 1fr;
  }

  .erp-auth-popup {
    padding: 1rem;
    align-items: flex-start;
    padding-top: 1.25rem;
  }

  .erp-auth-card {
    padding: 1.25rem;
  }
}

/* 비밀번호 표시/숨김 (로그인·가입·프로필·회원관리 공통) */
.erp-password-wrap {
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
  max-width: 100%;
}

.erp-password-wrap .erp-input {
  flex: 1;
  min-width: 0;
}

.erp-pw-toggle {
  flex-shrink: 0;
  align-self: stretch;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0 0.55rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 0.3rem;
  cursor: pointer;
  color: #1e40af;
  white-space: nowrap;
}

.erp-pw-toggle:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.erp-pw-toggle[aria-pressed="true"] {
  background: #e0f2fe;
  border-color: #38bdf8;
}

.erp-password-wrap--compact .erp-pw-toggle {
  font-size: 0.68rem;
  padding: 0 0.4rem;
}

/* 회원 관리: 넓은 표 + 좁은 화면 */
.erp-admin-member-profile-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.erp-admin-pw-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 16rem;
}

.erp-admin-pw-check {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.35;
}

.erp-admin-reset-form {
  margin-top: 0.4rem;
}

@media (max-width: 72rem) {
  .erp-table-wrap--admin-members {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .erp-admin-members .erp-table {
    min-width: 56rem;
  }
}

@media (max-width: 42rem) {
  .erp-table-rwd thead {
    display: none;
  }

  .erp-table-rwd tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 0.65rem;
    background: #fff;
    box-shadow: var(--erp-shadow);
    overflow: hidden;
  }

  .erp-table-rwd tbody td {
    display: block;
    border: none;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid #f1f5f9;
  }

  .erp-table-rwd tbody td:last-child {
    border-bottom: none;
  }

  .erp-table-rwd tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.4rem;
  }

  .erp-admin-members .erp-table {
    min-width: 0;
  }

  .erp-admin-pw-form {
    max-width: none;
  }

  .erp-admin-member-profile-form .erp-input-sm {
    width: 100%;
    min-width: 0 !important;
  }
}

.erp-auth-submit {
  width: 100%;
  margin-top: 0.25rem;
}

.erp-auth-links {
  margin: 1.25rem 0 0;
  font-size: 0.875rem;
  text-align: center;
}

.erp-auth-links a {
  color: var(--erp-accent);
  font-weight: 600;
}

.erp-auth-note {
  margin: 0.75rem 0 0;
  font-size: 0.7rem;
  line-height: 1.4;
}

.erp-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.85rem;
  cursor: pointer;
}

.erp-check input {
  margin-top: 0.2rem;
}

.erp-terms-body p {
  margin: 0 0 0.75rem;
  line-height: 1.55;
}

.erp-terms-date {
  font-size: 0.8rem;
  margin-top: 1rem;
}

.erp-topbar-user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  font-size: 0.875rem;
}

.erp-topbar-user a.erp-topbar-user-name {
  color: #334155;
  font-weight: 600;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.erp-topbar-user a.erp-topbar-user-name:hover {
  color: var(--erp-accent);
  text-decoration: underline;
}

.erp-topbar-user a.erp-topbar-active {
  color: var(--erp-accent);
  font-weight: 700;
}

.erp-logout-form {
  display: inline;
  margin: 0;
}

.erp-btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--erp-accent);
  font-weight: 600;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.erp-welcome-bar {
  margin-bottom: 0.75rem;
}

.erp-auth-check {
  margin: 0.5rem 0 0;
}

.erp-kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

@media (max-width: 1100px) {
  .erp-kanban {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .erp-kanban {
    grid-template-columns: 1fr;
  }
}

.erp-kanban-col {
  background: #f8fafc;
  border: 1px solid var(--erp-border);
  border-radius: var(--erp-radius);
  padding: 0.75rem;
  min-height: 4rem;
}

.erp-kanban-title {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.erp-kanban-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.erp-kanban-card {
  background: #fff;
  border: 1px solid var(--erp-border);
  border-radius: 0.65rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.875rem;
}

.erp-kanban-actions {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.erp-input-sm {
  font-size: 0.8rem;
  padding: 0.25rem 0.4rem;
  max-width: 100%;
}

.erp-inline-form {
  display: inline-block;
  margin: 0;
}

/* 인사 · 차량 운행: 네이버 경로 거리 보조 */
.erp-vehicle-route-box {
  margin-top: 0.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--erp-radius);
  border: 1px dashed rgba(2, 132, 199, 0.35);
  background: rgba(240, 249, 255, 0.55);
}

.erp-vehicle-route-intro {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #475569;
}

.erp-vehicle-route-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.erp-vehicle-route-result {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.erp-mail-unread {
  font-weight: 600;
  background: rgba(224, 242, 254, 0.35);
}

.erp-mail-html-iframe {
  width: 100%;
  min-height: 22rem;
  border: 1px solid var(--erp-border);
  border-radius: var(--erp-radius);
  background: #fff;
}

.erp-mail-text-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.875rem;
  line-height: 1.55;
  padding: 1rem;
  background: #f8fafc;
  border-radius: var(--erp-radius);
  border: 1px solid var(--erp-border);
}

/* 모바일: 좌측 메뉴는 숨기지 않고 서랍(오버레이)로 열기 */
.erp-nav-backdrop {
  display: none;
}

.erp-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 0.75rem 0 0.6rem;
  margin: 0;
  border: 1px solid var(--erp-border);
  border-radius: var(--erp-radius);
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--erp-shadow);
}

.erp-nav-toggle-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.erp-nav-toggle:hover {
  background: #f1f5f9;
}

.erp-nav-toggle:focus-visible {
  outline: 2px solid var(--erp-accent);
  outline-offset: 2px;
}

.erp-nav-toggle-bars {
  display: block;
  width: 1.125rem;
  height: 0.125rem;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -0.375rem 0 currentColor, 0 0.375rem 0 currentColor;
}

.erp-topbar-heading {
  flex: 1;
  min-width: 0;
}

@media (max-width: 1024px) {
  .erp-nav-toggle {
    display: inline-flex;
  }

  .erp-sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    pointer-events: none;
    visibility: hidden;
  }

  body.erp-nav-drawer-open .erp-sidebar {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
    box-shadow: 8px 0 32px rgba(15, 23, 42, 0.18);
  }

  body.erp-nav-drawer-open {
    overflow: hidden;
  }

  body.erp-nav-drawer-open .erp-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(15, 23, 42, 0.45);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
  }

  body.erp-nav-drawer-open .erp-nav-toggle {
    position: relative;
    z-index: 45;
  }

  .erp-wrap {
    margin-left: 0;
  }
}

/* 업종 전환(표준 / 베이직 유통업) */
.erp-industry-bar {
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid var(--erp-border);
  padding: 0.5rem 2rem;
}

.erp-industry-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  max-width: 100%;
}

.erp-industry-bar-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}

.erp-industry-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.erp-industry-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid transparent;
}

.erp-industry-tab:hover {
  color: var(--erp-accent);
  background: #e0f2fe;
}

.erp-industry-tab.is-active {
  color: #fff;
  background: var(--erp-accent);
  border-color: var(--erp-accent);
}

.erp-shell-distribution .erp-sidebar {
  border-right-color: rgba(2, 132, 199, 0.2);
}

.erp-shell-manufacturing .erp-sidebar {
  border-right-color: rgba(5, 122, 85, 0.22);
}

.erp-shell-manufacturing .erp-sidebar-brand {
  background: linear-gradient(180deg, #f4faf7 0%, #fff 100%);
}

.erp-shell-manufacturing .erp-sidebar-brand span {
  color: #047857;
}

.erp-shell-distribution .erp-sidebar-brand {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

a.erp-nav-dist-cue {
  color: var(--erp-accent);
  font-weight: 600;
}

a.erp-nav-alt {
  font-size: 0.8125rem;
  color: #64748b;
}

/* 유통업 모드: 거래처 화면 카드 순서(목록 우선) */
.erp-partners-stack.erp-partners-dist {
  display: flex;
  flex-direction: column;
}

.erp-partners-stack.erp-partners-dist .erp-card-partners-list {
  order: 1;
}

.erp-partners-stack.erp-partners-dist .erp-card-partners-form {
  order: 2;
}

.erp-partners-stack.erp-partners-dist .erp-card-partners-csv {
  order: 3;
}

.erp-partners-stack:not(.erp-partners-dist) .erp-card-partners-csv {
  order: 1;
}

.erp-partners-stack:not(.erp-partners-dist) .erp-card-partners-form {
  order: 2;
}

.erp-partners-stack:not(.erp-partners-dist) .erp-card-partners-list {
  order: 3;
}

.erp-ecount-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--erp-border);
}

.erp-ecount-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.erp-ecount-search .erp-input {
  min-width: 12rem;
  max-width: 22rem;
}

.erp-ecount-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.erp-table-ghost {
  color: #94a3b8;
  font-size: 0.8rem;
}

/* 창고등록: 유통/제조 프리셋 시 목록 우선 */
.erp-warehouses-stack.erp-warehouses-ecount {
  display: flex;
  flex-direction: column;
}

.erp-warehouses-ecount .erp-card-wh-list {
  order: 1;
}

.erp-warehouses-ecount .erp-card-wh-csv {
  order: 2;
}

.erp-warehouses-ecount .erp-card-wh-form {
  order: 3;
}

.erp-warehouses-stack:not(.erp-warehouses-ecount) .erp-card-wh-form {
  order: 1;
}

.erp-warehouses-stack:not(.erp-warehouses-ecount) .erp-card-wh-csv {
  order: 2;
}

.erp-warehouses-stack:not(.erp-warehouses-ecount) .erp-card-wh-list {
  order: 3;
}

/* 창고 웹 일괄입력 등 모달 */
.erp-dialog {
  padding: 0;
  border: none;
  border-radius: 0.5rem;
  max-width: min(56rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.35);
  box-sizing: border-box;
  background: #fff;
  color: #0f172a;
}

/* <dialog> 만 닫힐 때 숨김 — div.erp-dialog(품목 미리보기 패널 등)에는 적용하지 않음 */
dialog.erp-dialog:not([open]) {
  display: none;
}

.erp-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

/* 품목 미리보기 등: 열린 동안 목록 sticky thead·상단바·사이드바 z-index를 낮춰 모달·닫기 버튼이 가리지 않게 함 */
body.erp-modal-open .erp-table thead {
  position: static;
  z-index: 0;
}
body.erp-modal-open .erp-topbar {
  z-index: 0;
}
body.erp-modal-open .erp-sidebar {
  z-index: 1;
}

.erp-dialog-inner {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem 1.25rem;
  max-height: inherit;
  min-height: 0;
  box-sizing: border-box;
  background: #fff;
}

.erp-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
  background: #fff;
}

.erp-dialog-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--erp-text, #0f172a);
}

.erp-dialog-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 0 0.25rem;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  min-width: 2rem;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.erp-dialog-close:hover {
  color: #0f172a;
}

.erp-dialog-table-wrap {
  max-height: min(22rem, 50vh);
  overflow: auto;
  margin-bottom: 0.75rem;
  border: 1px solid var(--erp-border);
  border-radius: 0.35rem;
}

.erp-table-compact td,
.erp-table-compact th {
  padding: 0.35rem 0.5rem;
  vertical-align: middle;
}

.erp-input-table {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.erp-dialog-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  padding-top: 0.25rem;
  position: relative;
  z-index: 2;
  background: #fff;
  border-top: 1px solid var(--erp-border);
  margin-top: auto;
}

.erp-row-selected {
  background: rgba(59, 130, 246, 0.12);
}

/* 이카운트류 — 목록 하단 액션 바 */
.erp-ecount-bottombar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.35rem;
  box-shadow: inset 0 1px 0 #fff;
}

.erp-btn-ecount-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #94a3b8;
  color: #1e3a8a;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0.3rem;
  transition: background 0.12s, border-color 0.12s;
}

.erp-btn-ecount-outline:hover {
  background: #f8fafc;
  border-color: #64748b;
  color: #172554;
}

.erp-btn-look-disabled {
  opacity: 0.72;
  cursor: default;
}

/* 목록 줄무늬 (유통/제조 창고) */
.erp-table-ecount-zebra tbody tr:nth-child(even) td {
  background: #f1f5f9;
}

.erp-table-ecount-zebra tbody tr:nth-child(odd) td {
  background: #fff;
}

.erp-table-ecount-zebra tbody tr:hover td {
  background: #e0f2fe !important;
}

.erp-th-check,
.erp-td-check {
  width: 2.25rem;
  text-align: center;
  vertical-align: middle;
  padding: 0.4rem 0.35rem !important;
}

.erp-th-check input {
  margin: 0;
}

/* 웹자료올리기 — 넓은 모달 · 파란 타이틀바 */
.erp-dialog-ecount-webbulk {
  max-width: min(72rem, calc(100vw - 1.25rem));
  width: 100%;
}

/* 거래처 웹자료올리기 — 18열과 동일 너비, 좁은 화면에서는 가로 스크롤 */
.erp-dialog-partner-bulk.erp-dialog-ecount-webbulk {
  max-width: min(96rem, calc(100vw - 1rem));
}

.erp-dialog-partner-bulk .erp-dialog-table-wrap--webbulk {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.erp-dialog-ecount-wrap {
  display: flex;
  flex-direction: column;
  max-height: inherit;
  background: #fff;
  border-radius: inherit;
}

.erp-dialog-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  background: linear-gradient(to bottom, #2563eb, #1d4ed8);
  border-radius: 0.5rem 0.5rem 0 0;
}

.erp-dialog-titlebar-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.erp-dialog-titlebar .erp-dialog-close {
  color: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
}

.erp-dialog-titlebar .erp-dialog-close:hover {
  color: #fff;
}

.erp-dialog-inner--ecount-body {
  padding: 0.85rem 1rem 1rem;
  box-sizing: border-box;
}

.erp-webbulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.erp-webbulk-hint {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #64748b;
}

.erp-dialog-table-wrap--webbulk {
  max-height: min(28rem, 52vh);
}

.erp-table-ecount-bulk-head thead th {
  white-space: normal;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.68rem;
  line-height: 1.25;
  padding: 0.4rem 0.35rem !important;
  vertical-align: bottom;
}

.erp-th-num {
  width: 2.5rem;
}

.erp-dialog-foot-ecount {
  justify-content: flex-start;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
}

/* 거래처 목록 — 상호 클릭 미리보기 */
.erp-partner-preview-trigger,
.erp-product-preview-trigger {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: var(--erp-accent);
  cursor: pointer;
  text-align: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.erp-partner-preview-trigger:hover,
.erp-product-preview-trigger:hover {
  color: var(--erp-accent-hover);
}

.erp-dialog-partner-preview {
  max-width: min(32rem, calc(100vw - 2rem));
}

/* 품목 미리보기: 네이티브 dialog 대신 오버레이(div) — [hidden]일 때만 레이아웃에서 제외 */
.erp-product-preview-overlay[hidden] {
  display: none !important;
}

.erp-product-preview-overlay:not([hidden]) {
  display: block !important;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  padding: 0;
  box-sizing: border-box;
  pointer-events: none;
}

.erp-product-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  cursor: pointer;
  pointer-events: auto;
}

/* top/left 미지정 fixed는 정적 위치로 아래쪽에 붙는 브라우저가 있어, CSS로 항상 뷰포트 중앙을 기본값으로 둔다(JS가 픽셀로 덮어씀) */
.erp-product-preview-overlay .erp-dialog-product-preview {
  position: fixed;
  z-index: 2147483001;
  margin: 0;
  right: auto;
  bottom: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  width: min(72rem, calc(100vw - 1.25rem));
  max-width: calc(100vw - 1rem);
  max-height: calc(100vh - 1.25rem);
  max-height: calc(100dvh - 1.25rem);
  height: auto;
  min-height: 0;
  overflow: hidden;
  pointer-events: auto;
  box-shadow: 0 1.25rem 3rem rgba(15, 23, 42, 0.45);
}

.erp-dialog-product-preview .erp-dialog-inner {
  flex: 1 1 auto;
  min-height: 0;
  max-height: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.erp-dialog-product-preview .erp-dialog-head {
  flex-shrink: 0;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.erp-dialog-product-preview.erp-product-preview-panel--dragging .erp-dialog-head {
  cursor: grabbing;
}

.erp-dialog-product-preview .erp-dialog-head .erp-dialog-close {
  cursor: pointer;
  touch-action: manipulation;
}

.erp-dialog-product-preview .erp-dialog-title {
  overflow-wrap: anywhere;
  word-break: keep-all;
  line-height: 1.35;
}

.erp-dialog-product-preview .erp-dialog-foot {
  flex-shrink: 0;
  margin-top: 0;
}

.erp-product-preview-body {
  margin: 0 0 0.75rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.erp-product-preview-img-wrap {
  margin-bottom: 0;
  flex-shrink: 0;
  text-align: center;
}

.erp-product-preview-img-lg {
  max-width: 100%;
  max-height: min(14rem, 28vh);
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f8fafc;
}

.erp-product-preview-frame-hint {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  line-height: 1.45;
  flex-shrink: 0;
}

.erp-product-preview-frame-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  flex: 1 1 auto;
  height: clamp(220px, 54dvh, 720px);
  max-height: min(72dvh, 880px);
  display: flex;
  flex-direction: column;
}

.erp-product-preview-frame {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  border: 0;
  background: #f1f5f9;
}

.erp-product-preview-empty {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.erp-btn.erp-disabled,
a.erp-btn.erp-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.erp-partner-preview-scroll {
  max-height: min(22rem, 52vh);
  overflow: auto;
  margin: 0 0 0.75rem;
  padding-right: 0.25rem;
}

.erp-partner-preview-dl {
  margin: 0;
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.88rem;
}

.erp-partner-preview-dl dt {
  margin: 0;
  font-weight: 600;
  color: #64748b;
  font-size: 0.78rem;
}

.erp-partner-preview-dl dd {
  margin: 0;
  color: #0f172a;
  word-break: break-word;
}

/* 거래처 목록 — 관리자 도구바 */
.erp-partners-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.erp-partners-list-head .erp-section-title {
  margin-bottom: 0;
}

.erp-partners-landing-form {
  margin: 0;
}

.erp-partners-bulk-form,
.erp-products-bulk-form {
  margin: 0 0 0.65rem;
}

.erp-partners-bulk-bar,
.erp-products-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

/* 거래처 — 매입/매출 탭 */
.erp-partners-type-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
}

.erp-partners-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.65rem;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0.4rem;
}

.erp-partners-list-toolbar-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.erp-partners-list-select {
  width: auto;
  min-width: 6.5rem;
  max-width: 12rem;
}

.erp-partners-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0;
  justify-content: flex-end;
}

.erp-partners-pagination-status {
  font-size: 0.85rem;
  color: #64748b;
}

.erp-partners-type-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid var(--erp-border);
  transition: background 0.15s, color 0.15s;
}

.erp-partners-type-tab:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.erp-partners-type-tab.is-active {
  background: linear-gradient(to bottom, #0284c7, #0369a1);
  color: #fff;
  border-color: #0369a1;
}

.erp-partners-type-tab-hint {
  flex: 1 1 8rem;
  min-width: 0;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .erp-partners-type-tab-hint {
    flex-basis: 100%;
    margin-left: 0 !important;
    margin-top: 0.25rem;
  }
}

.erp-danawa-import-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
}

.erp-nav a.erp-nav-external {
  opacity: 0.92;
}

.erp-nav a.erp-nav-external::after {
  content: " ↗";
  font-size: 0.82em;
  opacity: 0.75;
}

.erp-product-thumb {
  max-width: 120px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  vertical-align: middle;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f8fafc;
}

.erp-product-thumb-list {
  max-width: 44px;
  max-height: 44px;
  display: block;
}

.erp-product-list-img {
  width: 3.25rem;
  vertical-align: middle;
}

/* 품목 목록: 품목명이 넓을 때도 가격 열이 비지 않도록 너비 예약 */
.erp-table-products .erp-col-product-check {
  width: 2.35rem;
}

.erp-table-products .erp-col-product-thumb {
  width: 3.75rem;
}

.erp-table-products .erp-col-product-sku {
  width: 5.75rem;
}

.erp-table-products .erp-col-product-category {
  width: 6.5rem;
  min-width: 5rem;
}

.erp-table-products .erp-col-product-name {
  width: auto;
  min-width: 6rem;
}

.erp-table-products .erp-col-product-unit {
  width: 3.25rem;
}

.erp-table-products .erp-col-product-price {
  min-width: 9.5rem;
  width: 16%;
}

.erp-table-products .erp-col-product-active {
  width: 3.25rem;
}

.erp-table-products .erp-col-product-actions {
  width: 5.5rem;
}

.erp-table-products .erp-th-price-trend {
  white-space: normal;
  line-height: 1.3;
  max-width: 14rem;
}

.erp-table-products .erp-th-actions {
  width: 5.5rem;
}

.erp-product-price-trend {
  font-size: 0.84rem;
  line-height: 1.45;
  word-break: break-word;
  vertical-align: top;
}

.erp-table-products .erp-th-sort-cell {
  white-space: normal;
  line-height: 1.25;
  vertical-align: bottom;
}

.erp-th-sort {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(71, 85, 105, 0.45);
}

.erp-th-sort:hover {
  color: var(--erp-accent, #2563eb);
  border-bottom-color: rgba(37, 99, 235, 0.55);
}

.erp-sort-ind {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
}

.erp-product-category {
  font-size: 0.84rem;
  color: #334155;
  word-break: break-word;
  vertical-align: top;
}

/* 품목 미리보기 — 태블릿·작은 노트북 */
@media (max-width: 1024px) {
  .erp-product-preview-overlay:not([hidden]) .erp-dialog-product-preview {
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 0.5rem);
  }

  .erp-product-preview-frame-wrap {
    height: clamp(200px, 50dvh, 620px);
    max-height: min(65dvh, 780px);
  }
}

/* -------- 모달·팝업 반응형 (좁은 화면·모바일) -------- */
@media (max-width: 640px) {
  .erp-dialog {
    width: 100vw;
    max-width: 100vw;
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .erp-dialog-inner {
    padding: 0.75rem 0.85rem 1rem;
    max-height: 100vh;
    max-height: 100dvh;
  }

  .erp-dialog-title {
    font-size: 0.98rem;
    line-height: 1.35;
    padding-right: 0.25rem;
  }

  .erp-dialog-partner-preview {
    max-width: 100vw;
    width: 100%;
  }

  .erp-partner-preview-scroll {
    max-height: min(20rem, 46vh);
    max-height: min(20rem, 46dvh);
  }

  .erp-partner-preview-dl {
    grid-template-columns: 1fr;
    gap: 0.15rem 0;
  }

  .erp-partner-preview-dl dt {
    font-size: 0.72rem;
    margin-top: 0.45rem;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
  }

  .erp-partner-preview-dl dt:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .erp-partner-preview-dl dd {
    font-size: 0.84rem;
  }

  .erp-product-preview-overlay:not([hidden]) .erp-dialog-product-preview {
    width: 100%;
    max-width: 100vw;
    max-height: 100vh;
    max-height: 100dvh;
  }

  .erp-dialog-product-preview .erp-dialog-inner {
    max-height: 100dvh;
  }

  .erp-product-preview-body {
    margin-bottom: 0.5rem;
    gap: 0.5rem;
  }

  .erp-product-preview-img-lg {
    max-height: min(10rem, 22dvh);
  }

  .erp-dialog-product-preview .erp-product-preview-frame-wrap {
    height: clamp(180px, 46dvh, 480px);
    max-height: min(58dvh, 560px);
  }

  .erp-product-preview-frame-hint {
    font-size: 0.75rem;
  }

  .erp-dialog-foot {
    justify-content: stretch;
    gap: 0.4rem;
    padding-top: 0.65rem;
  }

  .erp-dialog-foot .erp-btn,
  .erp-dialog-foot a.erp-btn {
    flex: 1 1 42%;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  .erp-dialog-ecount-webbulk {
    max-width: 100vw;
    width: 100%;
  }

  .erp-dialog-partner-bulk.erp-dialog-ecount-webbulk {
    max-width: 100vw;
  }

  .erp-dialog-titlebar {
    padding: 0.5rem 0.75rem;
    border-radius: 0;
  }

  .erp-dialog-inner--ecount-body {
    padding: 0.65rem 0.75rem 0.85rem;
  }

  .erp-dialog-table-wrap--webbulk {
    max-height: min(22rem, 48vh);
    max-height: min(22rem, 48dvh);
  }

  .erp-dialog-table-wrap {
    max-height: min(18rem, 42vh);
    max-height: min(18rem, 42dvh);
  }
}
