/*
Version: v1.0.0
Change: 2026-03-17 - Unified ERP tone-and-manner and shared layout tokens.
*/
:root {
  --erp-bg: #eef4fb;
  --erp-bg-strong: #e6eef8;
  --erp-surface: rgba(255, 255, 255, 0.96);
  --erp-surface-soft: #f8fbff;
  --erp-border: rgba(15, 23, 42, 0.08);
  --erp-border-strong: rgba(37, 99, 235, 0.18);
  --erp-ink: #0f172a;
  --erp-ink-soft: #475569;
  --erp-muted: #64748b;
  --erp-primary: #2563eb;
  --erp-primary-strong: #1d4ed8;
  --erp-primary-soft: rgba(37, 99, 235, 0.08);
  --erp-success-soft: #ecfdf5;
  --erp-warn-soft: #fff7ed;
  --erp-danger-soft: #fef2f2;
  --erp-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --erp-shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
  --erp-radius-lg: 20px;
  --erp-radius-md: 16px;
  --erp-radius-sm: 12px;
}

html {
  color-scheme: light;
}

body.erp-unified {
  font-family: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Segoe UI', sans-serif !important;
  color: var(--erp-ink);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 28%),
    linear-gradient(180deg, var(--erp-bg) 0%, #f7f9fc 100%);
  letter-spacing: -0.01em;
}

body.erp-unified h1,
body.erp-unified h2,
body.erp-unified h3,
body.erp-unified h4,
body.erp-unified h5,
body.erp-unified h6,
body.erp-unified .h1,
body.erp-unified .h2,
body.erp-unified .h3,
body.erp-unified .h4,
body.erp-unified .h5,
body.erp-unified .h6 {
  color: var(--erp-ink);
  letter-spacing: -0.02em;
}

body.erp-unified .wrap,
body.erp-unified .page-shell {
  width: min(1180px, calc(100% - 28px));
  margin-left: auto;
  margin-right: auto;
}

body.erp-unified .main-card,
body.erp-unified .main-container,
body.erp-unified .panel,
body.erp-unified .hero-card,
body.erp-unified .panel-card,
body.erp-unified .manage-card,
body.erp-unified .card,
body.erp-unified .profile-box,
body.erp-unified .module-tile,
body.erp-unified .member-result,
body.erp-unified .menu-card,
body.erp-unified .seal-preview-box,
body.erp-unified .info-card {
  background: var(--erp-surface);
  border: 1px solid var(--erp-border);
  box-shadow: var(--erp-shadow-soft);
}

body.erp-unified .main-card,
body.erp-unified .main-container,
body.erp-unified .panel,
body.erp-unified .hero-card,
body.erp-unified .panel-card,
body.erp-unified .manage-card,
body.erp-unified .card,
body.erp-unified .profile-box,
body.erp-unified .module-tile,
body.erp-unified .member-result,
body.erp-unified .menu-card,
body.erp-unified .info-card {
  border-radius: var(--erp-radius-lg);
}

body.erp-unified .profile-box {
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.92), rgba(239, 246, 255, 0.98));
  border-color: rgba(59, 130, 246, 0.16);
}

body.erp-unified .btn {
  border-radius: var(--erp-radius-sm);
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: none;
}

body.erp-unified .btn.btn-sm {
  border-radius: 10px;
}

body.erp-unified .btn-menu,
body.erp-unified .menu-card {
  border-radius: var(--erp-radius-md);
  border: 1px solid var(--erp-border);
  background: rgba(255, 255, 255, 0.94);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

body.erp-unified .btn-menu:hover,
body.erp-unified .menu-card:hover {
  transform: translateY(-2px);
  border-color: var(--erp-border-strong);
  background: var(--erp-surface-soft);
  box-shadow: var(--erp-shadow-soft);
}

body.erp-unified .form-control,
body.erp-unified .form-select,
body.erp-unified textarea,
body.erp-unified input[type="date"],
body.erp-unified input[type="month"],
body.erp-unified input[type="time"],
body.erp-unified input[type="datetime-local"] {
  border-radius: var(--erp-radius-sm);
  border-color: rgba(148, 163, 184, 0.55);
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: none;
}

body.erp-unified .form-control:focus,
body.erp-unified .form-select:focus,
body.erp-unified textarea:focus,
body.erp-unified input:focus {
  border-color: rgba(37, 99, 235, 0.38);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

body.erp-unified .modal-content {
  border: 1px solid var(--erp-border);
  border-radius: var(--erp-radius-lg);
  box-shadow: var(--erp-shadow);
}

body.erp-unified .modal-header {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

body.erp-unified .modal-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

body.erp-unified .table {
  color: var(--erp-ink);
}

body.erp-unified .table thead th,
body.erp-unified .table-light th {
  background: #f8fafc !important;
  color: var(--erp-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
  border-bottom-width: 1px;
  white-space: nowrap;
}

body.erp-unified .table td,
body.erp-unified .table th {
  vertical-align: middle;
}

body.erp-unified .table-hover tbody tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

body.erp-unified .nav-tabs {
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
  gap: 4px;
}

body.erp-unified .nav-tabs .nav-link {
  border: none;
  border-radius: 12px 12px 0 0;
  color: var(--erp-ink-soft);
  font-weight: 700;
  padding: 11px 16px;
}

body.erp-unified .nav-tabs .nav-link.active {
  color: var(--erp-primary-strong);
  background: rgba(37, 99, 235, 0.08);
  border-bottom: 2px solid var(--erp-primary);
}

body.erp-unified .section-title {
  color: var(--erp-ink);
  border-left-color: var(--erp-primary);
}

body.erp-unified .helper,
body.erp-unified .subcopy,
body.erp-unified .form-hint,
body.erp-unified .text-muted,
body.erp-unified small.text-muted,
body.erp-unified .small.text-muted,
body.erp-unified .billing-line-note,
body.erp-unified .module-scope-list,
body.erp-unified .module-scope-list li,
body.erp-unified .footer-note {
  color: var(--erp-muted) !important;
}

body.erp-unified .status-chip,
body.erp-unified .role-chip,
body.erp-unified .badge-soft {
  border-radius: 999px;
  font-weight: 700;
}

body.erp-unified .empty-box,
body.erp-unified .alert-light.border {
  border-radius: var(--erp-radius-md);
}

body.erp-unified .toolbar {
  gap: 12px;
}

body.erp-unified .seal-preview-box {
  background: #f8fafc;
}

body.erp-unified .page-shell,
body.erp-unified .wrap,
body.erp-unified .main-card,
body.erp-unified .main-container {
  backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
  body.erp-unified .main-card,
  body.erp-unified .main-container,
  body.erp-unified .panel,
  body.erp-unified .hero-card,
  body.erp-unified .panel-card,
  body.erp-unified .manage-card {
    padding: 20px !important;
    border-radius: 16px !important;
  }

  body.erp-unified .btn-menu,
  body.erp-unified .menu-card {
    padding: 14px 16px;
  }
}
