/* =====================================================
   REGENTEC CUSTOMER DASHBOARD
   - customers/mypage.html 전용
   ===================================================== */

.customer-container {
  max-width: 1400px;
  margin: 48px auto 72px;
  padding: 0 24px;
}

.customer-hero {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: stretch;
  margin-bottom: 28px;
}

.customer-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  padding: 32px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

.customer-card + .customer-card { margin-top: 24px; }

.customer-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.customer-eyebrow {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.customer-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.customer-subtitle,
.customer-section-desc {
  margin: 12px 0 0;
  color: #64748b;
  line-height: 1.75;
  font-size: 16px;
}

.customer-section-title {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.customer-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.customer-info-item {
  padding: 18px;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  background: #f8fafc;
}

.customer-info-label {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.customer-info-value {
  margin: 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  word-break: break-all;
}

.customer-grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.customer-action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.customer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.customer-btn:hover { transform: translateY(-1px); text-decoration: none; }
.customer-btn--primary { background: #2563eb; color: #ffffff; box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18); }
.customer-btn--ghost { background: #ffffff; color: #1e3a8a; border-color: #bfdbfe; }
.customer-btn--muted { background: #f8fafc; color: #0f172a; border-color: #e5e7eb; }

.customer-alert {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
  line-height: 1.5;
}

.customer-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.customer-stat {
  display: block;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.customer-stat:hover { text-decoration: none; border-color: #bfdbfe; }
.customer-stat--answered { background: #f8fafc; }
.customer-stat--waiting { background: #fff7ed; }
.customer-stat--comments { background: #eff6ff; }
.customer-stat--inquiries { background: #f0fdf4; }

.customer-stat h3 {
  margin: 0 0 10px;
  color: #475569;
  font-size: 15px;
  font-weight: 900;
}

.customer-stat strong {
  display: block;
  color: #0f172a;
  font-size: 36px;
  line-height: 1;
  font-weight: 900;
}

.customer-stat span {
  display: block;
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.customer-grade-progress { display: grid; gap: 12px; margin-top: 18px; }

.customer-progress-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
}

.customer-progress-item span { color: #64748b; font-weight: 800; }
.customer-progress-item strong { color: #0f172a; }

.customer-grade-rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.customer-grade-rule {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.customer-grade-rule h3 { margin: 0 0 10px; color: #0f172a; font-size: 18px; font-weight: 900; }
.customer-grade-rule p { margin: 8px 0 0; color: #64748b; line-height: 1.65; }
.customer-grade-rule--silver { background: #eff6ff; border-color: #bfdbfe; }
.customer-grade-rule--gold { background: #f5f3ff; border-color: #c4b5fd; }
.customer-grade-rule--vip { background: #fffbeb; border-color: #fde68a; }

.customer-service-card {
  margin-top: 20px;
  padding: 24px;
  border-radius: 18px;
}

.customer-service-card h3 { margin: 0 0 10px; color: #0f172a; font-size: 20px; font-weight: 900; }
.customer-service-card p { margin: 8px 0 0; line-height: 1.7; }

.customer-list { display: grid; gap: 0; }

.customer-list-item {
  padding: 20px 0;
  border-top: 1px solid #e5e7eb;
}

.customer-list-item:first-child { border-top: 0; padding-top: 0; }

.customer-list-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.customer-list-title h3,
.customer-list-title strong {
  margin: 0;
  color: #0f172a;
  line-height: 1.5;
}

.customer-list-body { margin: 10px 0; color: #475569; line-height: 1.75; }
.customer-list-date { color: #64748b; font-size: 13px; }

.customer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.customer-badge--blue { background: #dbeafe; color: #1d4ed8; }
.customer-badge--green { background: #dcfce7; color: #166534; }
.customer-badge--orange { background: #fff7ed; color: #9a3412; }
.customer-badge--gray { background: #f1f5f9; color: #475569; }

.customer-reply {
  margin-top: 15px;
  padding: 20px;
  border-left: 4px solid #2563eb;
  background: #eff6ff;
  border-radius: 14px;
}

.customer-reply strong { display: block; margin-bottom: 8px; color: #1e40af; }

.customer-empty {
  padding: 22px;
  border-radius: 16px;
  background: #f8fafc;
  color: #64748b;
  line-height: 1.7;
}

.customer-anchor { scroll-margin-top: 110px; }

@media (max-width: 1024px) {
  .customer-hero { grid-template-columns: 1fr; }
  .customer-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .customer-container { margin: 28px auto 48px; padding: 0 16px; }
  .customer-card { padding: 24px; border-radius: 22px; }
  .customer-stat-grid { grid-template-columns: 1fr; }
  .customer-action-row, .customer-btn { width: 100%; }
  .customer-btn { min-height: 48px; }
  .customer-progress-item { flex-direction: column; }
}


.customer-stat--inquiry{
    background:#eefaf3;
}

.customer-stat--inquiry h3{
    color:#1f7a45;
}
.customer-hero-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin: 48px 0 24px;
  padding: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #ffffff;
}

.customer-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.customer-form {
  margin-top: 24px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #111827;
}

.form-row input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  font-size: 15px;
}

.form-row input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.customer-alert {
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

@media (max-width: 768px) {
  .customer-hero-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .customer-grid-2 {
    grid-template-columns: 1fr;
  }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 24px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #111827;
    color: #fff;
}

.btn-secondary:hover {
    background: #000;
}

.btn-light {
    background: #f3f4f6;
    color: #111827;
}

.customer-card {
    padding: 32px;
    border-radius: 24px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.customer-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.customer-list li {
  padding: 18px 0;
  border-bottom: 1px solid #e5e7eb;
}

.customer-list li:last-child {
  border-bottom: 0;
}

.customer-list strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
}

.customer-list p {
  margin: 0 0 10px;
  color: #4b5563;
}

.customer-list small {
  color: #6b7280;
}

.customer-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.customer-table {
  width: 100%;
  border-collapse: collapse;
}

.customer-table th,
.customer-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.customer-table th {
  color: #111827;
  font-weight: 800;
  background: #f9fafb;
}

.customer-table td {
  color: #374151;
}

.quote-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.quote-status-received {
  background: #f3f4f6;
  color: #374151;
}

.quote-status-reviewing {
  background: #eff6ff;
  color: #2563eb;
}

.quote-status-sent {
  background: #ecfdf5;
  color: #047857;
}

.quote-status-done {
  background: #f5f3ff;
  color: #6d28d9;
}

.quote-status-closed {
  background: #111827;
  color: #ffffff;
}

.customer-table a {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

.customer-table a:hover {
  text-decoration: underline;
}

.nav-alert-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  margin-left: 10px;
}

.nav-alert-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}
