
    body {
      max-width: 700px;
      margin: 40px auto;
      padding: 30px;
      background-color: #f8f9fa;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      font-family: 'Noto Sans KR', sans-serif;
    }
    
@media (max-width: 1024px) {
   body {
     margin: 0px;
     padding: 10px;
   }}
html {
  scrollbar-gutter: stable;         /* 기본: 스크롤바 공간 고정 */
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* 상단 nav를 알약 세그먼트로 */
nav {
  display: flex;
  gap: 6px;
  justify-content: center;

  margin: 18px auto 22px;
  padding: 6px;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);

  /* 기존 밑줄 보더 제거 */
  border-bottom: none;
}

/* 탭 버튼들 */
nav a {
  flex: 1;
  min-width: 0;

  text-decoration: none;
  text-align: center;

  padding: 10px 16px;
  border-radius: 9999px;

  font-weight: 800;
  font-size: 16px;
  color: #374151;

  /* 기존 underline 방식 제거 */
  border-bottom: none;

  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

/* 활성 탭 */
nav a.active {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);

  /* 기존 border-bottom-color 제거 */
  border-bottom-color: transparent;
}

/* 호버 */
nav a:hover:not(.active) {
  background: #f3f4f6;
  color: #111827;
}

/* 모바일: 글자/패딩 살짝 줄이기 */
@media (max-width: 640px) {
  nav { margin: 12px auto 16px; }
  nav a { padding: 9px 12px; font-size: 15px; }
}

    h1 {
      text-align: center;
      font-weight: 900;
      font-size: 1.8rem;
      margin-bottom: 20px;
    }
    img {
      display: block;
      margin: 0 auto 30px auto;
      max-width: 100%;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
      height: auto;
    }
    .info {
      background: #fff;
      padding: 25px 20px;
      border-radius: 10px;
      box-shadow: 0 3px 8px rgb(0 0 0 / 0.05);
      font-size: 1.1rem;
      color: #444;
      line-height: 1.5;
      white-space: pre-line;
      max-width: 680px;
      margin: 0 auto 30px auto;
    }

@media (max-width: 1024px){
  .info {
    padding: 15px;
  }
}
*, *::before, *::after { box-sizing: border-box; }
.checkup-card {
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  padding: 24px 28px;
  margin: 40px auto;         /* 가운데 정렬 + 위아래 여백 */
  max-width: 800px;          /* 원하는 넓이 설정 */
  width: 100%;               /* 반응형 */
  font-size: 14px;
  border: 2px solid #b6b5b5;
  font-weight: normal;
  color: #333;
}
@media (max-width: 1024px) {
.checkup-card {
  padding: 4px 6px 6px
}
}


.row.tests {
  margin-top: 25px;
  font-size: 15px;
}

.test-title {
  font-weight: bold;
}

.test-title .title-text {
  color: #1e40af;
  margin-right: 6px;
}

.test-title .max-count {
  color: #666666;
  font-weight: 600;
  font-size: 13px;
}

.test-items {
  margin-left: 4px;
  /* line-height: 1.8; */
  margin-bottom: 3px;
}

    .btn-group {
      display: flex;
      gap: 16px;
      margin-top: 20px;
    }
    .btn-detail, .btn-reserve {
      flex: 1;
      padding: 12px 0;
      font-weight: 700;
      font-size: 16px;
      border-radius: 10px;
      cursor: pointer;
      border: none;
      transition: background-color 0.3s ease;
    }
    .btn-detail {
      background-color: #0059a5;
      color: white;
    }
    .btn-detail:hover {
      background-color: #003f7f;
    }
    .btn-detail.is-disabled,
.btn-detail:disabled{
  background: #e5e7eb !important;
  color: #9ca3af !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}
.btn-detail.is-disabled:hover,
.btn-detail:disabled:hover{
  background: #e5e7eb !important;
}

    .btn-reserve {
      background-color: #28a745;
      color: white;
    }
    .btn-reserve:hover {
      background-color: #1e7e34;
    }
    #page-reservation input {
      width: 100%;
      padding: 10px;
      margin-bottom: 16px;
      font-size: 16px;
      border-radius: 8px;
      border: 1px solid #ccc;
    }
    #page-reservation button {
      width: 100%;
      padding: 12px;
      font-size: 16px;
      font-weight: 700;
      border: none;
      border-radius: 8px;
      background-color: #0059a5;
      color: white;
    }
    #page-reservation button:hover {
      background-color: #00407c;
    }
    #resultArea {
      margin-top: 20px;
      font-size: 16px;
      color: #333;
      font-weight: 500;
    }
    .reservationinfo{
     border: 1px; 
     padding: 10px 0px;

     border-radius: 10px;
     margin: 0 20%
    }
    .modal-content-reservation{position:fixed;z-index:1001;top:50%;left:50%;transform:translate(-50%,-50%);max-width:700px;margin:auto;padding:32px 24px 20px 24px;background-color: white;max-height: 90vh;overflow-y: auto;}

  #closeReservationModal{
       background: red !important;
      border-radius: 4px;
      color: white;
  }

@media (max-width: 1024px){
.reservationinfo{
  margin: 0;
}
.modal-content-reservation{
     width: 100% !important;
     max-width: 100% !important;
     padding: 0px 0px 70px;
     border-radius: 0
}
  #closeReservationModal{
  display: block;
  position: fixed !important;
  top: 20px !important;        /* 위에서 좀 더 아래로 */
  right: 20px;      /* 오른쪽 여백 유지 */
  padding: 8px 14px;
  border: none;
  border-radius: 4px;
   background: red !important;
  color: white;
  font-weight: bold;
  font-size: 20px !important;
  cursor: pointer;
  z-index: 10000;
  box-shadow: none;
}
}  

.product-type-selection {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.product-type-btn {
  /* 높이는 고정, 좌우 패딩은 뷰포트 폭에 따라 줄어듦 */
  padding: 10px clamp(12px, 5vw, 32px);
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  background-color: #f0f0f0;
  color: #000;
}
.product-type-btn.active{
  background-color: #226fbf; /* 네가 준 active */
  color: #fff;
  box-shadow: 0 8px 18px rgba(34,111,191,.28);
}

.product-type-btn:hover:not(.active){
  background-color: #d7e8fb; /* hover도 같은 계열로 */
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.7);

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* 내부 내용이 튀어나가지 않게 */
}



  .close {
    color: #aaa;
    float: right; font-size: 28px; font-weight: bold;
    cursor: pointer;
  }
  #modalImages img {
    width: 100%; margin-bottom: 10px; border-radius: 6px;
    
  }
.modal {
  display: none;
  position: fixed; left: 0; top: 0;
  width: 100vw; height: 100vh;
  z-index: 9999;
}
.modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  animation: popupOpen .3s cubic-bezier(.5,1.7,.5,1.01);
}
.imgviewer-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}
/* 모달 전체 */
.imgviewer-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

/* 이미지 컨테이너 */
.imgviewer-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 이미지 */
.imgviewer-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

/* 닫기 버튼 */
.imgviewer-close {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 2em;
  color: white;
  background: rgb(154 154 154 / 64%);
  border: none;
  cursor: pointer;
  padding: 1px 25px;
  border-radius: 4px;
}

/* 화살표 공통 */
.imgviewer-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  color: white;
  background: rgb(0 0 0 / 28%);
  border: none;
  cursor: pointer;
  padding: 10px 10px;
  border-radius: 4px;
}
/* 왼쪽 화살표 */
.imgviewer-arrow-left {
  left: 10px;
}

.imgviewer-arrow-right {
  right: 10px;
}
/* 모바일 환경 조정 */
@media (max-width: 768px) {
  .imgviewer-arrow {
    padding: 5px 5px;
  }
  .imgviewer-close {
      top: -37px !important;
  right: 3px !important;
      padding: 0px 15px;
  }
  .imgviewer-content {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .imgviewer-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
  }

  .imgviewer-close {
    top: 15px;
    right: 15px;
  }

  .imgviewer-arrow-left {
    left: 5px;
  }

  .imgviewer-arrow-right {
    right: 10px;
  }
}


.reservation-detail-table {
  margin-top: 12px;
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden; /* 둥근 모서리 유지 */
  box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* 은은한 그림자 */
}

.reservation-detail-table th {
  text-align: right;
  background: #eef3fb; /* 은은한 파스텔 블루 */
  color: #2359cc; 
  padding: 12px 18px; /* 간격 넓힘 */
  font-weight: 600;
  min-width: 130px;
  white-space: nowrap;
  border-bottom: 1px solid #dbe2ef;
}

.reservation-detail-table td {
  padding: 12px 16px; /* 간격 넓힘 */
  color: #333;
  background: #fff;
  border-bottom: 1px solid #f1f3f5;
}

.reservation-detail-table tr:nth-child(even) td {
  background: #f9fbfd; /* 짝수 행에 은은한 배경 */
}


.basic-exam-items {
  margin-top: px;
  padding: 2px;
  /* border-radius: 15px; */
  /* background-color: #fff; */
  /* border-left: 5px solid #a67a00 !important; */ /* 기존 왼쪽 파란 보더 */
  /* border-top: 1px solid #ddd; */   /* 위 */
  /* border-right: 1px solid #ddd; */ /* 오른쪽 */
  /* border-bottom: 1px solid #ddd; *//* 아래 */
}

.basic-group {
  
  margin-bottom: 4px;
  background-color: #ffffff;
  border-radius: 8px;
}

.group-label {
  margin: 0px;
  font-size: 1.00rem;
  color: green;
  font-weight: 600;
}

.basic-group ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.basic-group li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #333;
}

.basic-group li:last-child {
  border-bottom: none;
}
.row.tests{
  margin: 0.5px;
}
.section-divider {
  display: flex;
  align-items: flex-start;  /* center → flex-start */
  text-align: center;
}
.section-text {
  padding: 0 10px;
  font-weight: 600;
  color: #000000;
  font-size: 1.3rem;

}
@media (max-width: 1024px){
.section-divider::before,
.section-divider::after {

  border-bottom: 1px solid #ffffff;

  top: 0.9em;  /* 선만 아래로 미세 조정 */
}

.section-text {
  padding: 0 10px;
  font-weight: 600;
  color: #000000;
  font-size: 1.2rem !important;
  white-space: nowrap;
}
}
.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  top: 1.15em;  /* 선만 아래로 미세 조정 */
}



.exam-names {
  font-size: 0.95rem;
  color: #333;
}
.phone-number:empty::before {
  content: attr(data-placeholder);
  color: #aaa;
  font-style: italic;
}
    .phone-number {
      padding: 0px;
      font-size: 1.1rem;
      color: #444;
      white-space: pre-line;
      max-width: 680px;
      margin: 0 auto 30px auto;
    }
    #modalDescription {
  resize: none;        /* 크기 조절 못 하게 */
  flex: 1;             /* 부모 div 높이에 맞게 확장 */
  height: 100%;        /* 높이 채우기 */
  box-sizing: border-box;
}
.tests-container {
  margin-bottom: 7px;
  padding: 8px;
  border-radius: 15px;
  background-color: #fff;
  border-left: 5px solid #1e40af;
  border-top: 1px solid #ddd;   /* 위 */
  border-right: 1px solid #ddd; /* 오른쪽 */
  border-bottom: 1px solid #ddd;/* 아래 */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.section-text-bottom
{
  color: green;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}
.section-text-top
{
  margin-bottom: 4px;
  color:#1e40af;
  font-size: 20px;
  font-weight: bold;
}


.green-check {
  display: inline-block;
  color: white;
  background-color: #4CAF50;
  border-radius: 3px; /* 네모 모양 유지 */
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 16px; /* 세로 중앙 맞춤 */
  font-weight: bold;
  font-size: 18px;
  vertical-align: middle; /* 글자와 세로 정렬 맞춤 */
  margin-right: 6px;
  text-align: center;
}

  .errorModal {
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .errorModal-content {
    position: relative;
    background: #fff;
    padding: 1.5em;
    border-radius: 8px;
    min-width: 280px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }
  .errorModal-close {
    position: absolute;
    right: 1em;
    top: 0.5em;
    font-size: 1.2em;
    cursor: pointer;
  }
.info p {
  margin: 0;
  line-height: 1.5;
}
.info .ql-align-center {
  text-align: center;
}
.info .ql-align-right {
  text-align: right;
}
.info .ql-align-justify {
  text-align: justify;
}

.productId {
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  margin: 11px 0 3px 0;
  line-height: 1.1;
  display: block; /* 블록으로 가운데 정렬 */
  word-break: keep-all;
}

.productId span {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;  /* 부모 안에서만 줄바꿈 */
}

.productName {
    font-family:
    "Inter", "Noto Sans",       /* 라틴 우선 */
    "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic",
    "Segoe UI", Roboto, Arial, sans-serif !important;
  margin-right: 8px;   /* 간격 */
  font-size: 33px;     /* 크기 키움 */
  font-weight: 800;    /* 두껍게 */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* 그림자 효과 */
}

.productPrice {
  color: #0066cc;
  font-size: 32px;     /* 가격도 크기 키움 */
  font-weight: 700;
  white-space: nowrap; /* 가격 줄내림 방지 */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); /* 그림자 효과 */
}

  .kakao-access #closeReservationModal{
    display: none;
  }
@media (max-width: 1024px) {
  /* 백드롭(검은 배경) 제거 */
  body.kakao-access .modal-backdrop {
    background: transparent !important;
  }

  /* 모달 전체 화면 덮기 */
  body.kakao-access #reservationModal {
   background: #fff !important;
  }
  }

/* ───────── 기업 STEP3 예약 유형 카드 ───────── */
.corp-choice-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;

  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  cursor: pointer;

  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  transition:
    box-shadow 0.15s ease,
    transform 0.05s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.corp-choice-card:hover:not(.is-disabled) {
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
  border-color: #2563eb;
  background: linear-gradient(180deg, #ffffff, #eff6ff);
}

.corp-choice-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.65;
  background: #f3f4f6;
  box-shadow: none;
}

/* 제3자 카드: 내용이 많아서 세로정렬 */
.corp-choice-card-etc {
  align-items: flex-start;
  flex-direction: column;
}

/* 왼쪽 영역(타이틀/지원금) */
.corp-choice-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.corp-choice-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #111827;
}

.corp-choice-support {
  font-size: 0.85rem;
  color: #4b5563;
}

/* 오른쪽 상태 영역 */
.corp-choice-status {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* 뱃지 알약 모양 */
.corp-choice-status-pill {
  padding: 4px 12px;
  border-radius: 9999px;
  white-space: nowrap;
}

.corp-choice-status.status-ok .corp-choice-status-pill {
  background-color: #ecfdf3;
  color: #166534;
}

.corp-choice-status.status-blocked .corp-choice-status-pill {
  background-color: #fef2f2;
  color: #b91c1c;
}

/* 상태 아래 상세 텍스트 */
.corp-choice-extra {
  font-weight: 400;
  font-size: 0.78rem;
  color: #4b5563;
  text-align: right;
}

/* 제3자 카드의 상세는 왼쪽 정렬 + 전체 폭 사용 */
.corp-choice-card-etc .corp-choice-status {
  align-items: flex-start;
  width: 100%;
}
.corp-choice-card-etc .corp-choice-extra {
  text-align: left;
  width: 100%;
}

/* 제3자 예약 리스트 */
.corp-etc-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.corp-etc-item {
  padding: 6px 8px;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 0.8rem;
  color: #374151;
}

.corp-etc-empty {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* 상태 텍스트 색 */
.status-label {
  font-weight: 700;
}

.status-blue {
  color: #2563eb;
}
.status-green {
  color: #16a34a;
}
.status-black {
  color: #111827;
}
.status-red {
  color: #dc2626;
}
.status-orange {
  color: #ea580c;
}

/* 상품 없음 메시지 */
.corp-no-products {
  padding: 24px 12px;
  text-align: center;
  font-size: 0.95rem;
  color: #4b5563;
}

/* 모바일에서 카드 간격 조금 줄이기 */
@media (max-width: 640px) {
  .corp-choice-card {
    padding: 10px 12px;
  }
  .corp-choice-title {
    font-size: 0.94rem;
  }
  .corp-choice-support {
    font-size: 0.8rem;
  }
}


    .corp-section { border:1px solid #e5e7eb; border-radius:12px; padding:12px; margin-bottom:12px; }
    .corp-step-title { font-weight:700; margin:0 0 8px 0; }
    .corp-field-row { display:flex; gap:12px; }
    .corp-field-row > div { flex:1; }
    .corp-actions { text-align:right; margin-top:12px; display:flex; gap:8px; justify-content:flex-end; }
    .corp-choice-btn { padding:10px 12px; border:1px solid #ddd; border-radius:8px; text-align:left; cursor:pointer; background:#fff; }
    .corp-badges { color:#666; font-size:.95em; margin-top:6px; }
    .corp-products-header { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:12px 0; }
    .corp-products-header .path { font-size:.95em; color:#4b5563; }
    .btn { background:#1f2937; color:#fff; border:none; border-radius:8px; padding:8px 12px; cursor:pointer; }
    .btn:disabled { opacity:.5; cursor:not-allowed; }
    .btn-outline { background:#fff; color:#111827; border:1px solid #d1d5db; border-radius:8px; padding:8px 12px; cursor:pointer; }
    .muted { color:#6b7280; }
      .confirm-title { font-size: 1.25rem; font-weight: 700; }
  .confirm-sub   { margin-top: 4px; color:#666; }
  #corpProductGate { 
  display:flex; flex-direction:column; gap:10px; 
  margin:10px 0 6px;
}
/* 상단 입력 줄 */
#corpGateRow { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
#corpGateRow select { min-width:240px; height:34px; padding:4px 8px; }
#corpGateRow input[type="search"] {
  height:34px; padding:4px 10px; border:1px solid #d1d5db; border-radius:8px;
}
#corpGateRow button {
  height:34px; padding:0 12px; border-radius:8px; border:none; cursor:pointer;
}
#corpAddBtn { background:#0b74de; color:#fff; }
#corpClearBtn { background:#e5e7eb; color:#111827; }

/* “등록된 기업” 라벨 */
#corpAssignedHeader { 
  display:flex; align-items:center; gap:8px; margin-top:2px; 
  font-weight:700; color:#111827;
}

/* 칩 래퍼: 좌→우, 줄바꿈 */
#corpAssignedWrap {
  display:flex; flex-wrap:wrap; gap:12px; 
  align-items:flex-start; padding:6px 0;
}

/* 각 칩 */
.corp-chip {
  display:inline-flex; align-items:center; gap:8px;
  background:#e6f4ff; color:#0b74de;
  border-radius:9999px; padding:8px 12px;
  box-shadow:0 1px 2px rgba(16,24,40,.1);
  font-weight:600;
}

/* X 버튼 (칩 우측) */
.corp-chip .chip-del {
  background:#ef4444; color:#fff; 
  border:none; border-radius:6px;
  width:22px; height:22px; line-height:22px; 
  text-align:center; font-weight:800; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
}

/* 펼치기/접기 */
#corpAssignedFoldBtn{
  border:none; border-radius:9999px; padding:6px 12px; 
  background:linear-gradient(180deg,#ffffff,#f3f4f6);
  box-shadow:0 1px 2px rgba(16,24,40,.1);
  cursor:pointer; font-weight:700; color:#1f2937;
}
#corpAssignedFoldBtn[aria-expanded="true"]{ background:#0b74de; color:#fff; }
#corpAssignedFoldBtn .icon{ margin-right:6px; }
/* ───────── 기업 로그인 모달 전용 스타일 ───────── */
/* 기업 로그인 모달: 화면 정중앙 고정 */
#corpLoginModal .modal-content-reservation {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);  /* 가로·세로 완전 중앙 */
  max-width: 420px;
  width: 90%;
  padding: 26px 28px 22px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  z-index: 1001;                      /* 배경보다 위 */
}


/* 제목 */
#corpLoginModal h2 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
}

/* 닫기 버튼 */
#closeCorpLoginModal {
  position: absolute;
  right: 18px;
  top: 14px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: #9ca3af;
  cursor: pointer;
}
#closeCorpLoginModal:hover {
  color: #4b5563;
}

/* 폼 레이아웃 */
#corpLoginForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

/* 라벨 / 인풋 */
#corpLoginForm label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  display: block;
}

#corpLoginForm input[type="text"],
#corpLoginForm input[type="password"] {
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

#corpLoginForm input[type="text"]:focus,
#corpLoginForm input[type="password"]:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

/* 로그인 버튼 */
#corpLoginSubmitBtn {
  width: 100%;
  margin-top: 4px;
  padding: 10px 0;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.05s;
}

#corpLoginSubmitBtn:hover:not([disabled]) {
  background: #1d4ed8;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}

#corpLoginSubmitBtn:active:not([disabled]) {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

#corpLoginSubmitBtn[disabled] {
  cursor: default;
  background: #9ca3af;
  box-shadow: none;
}

/* 에러 문구 */
#corpLoginError {
  margin-top: 10px;
  font-size: 13px;
  color: #dc2626;
}

/* 모달 배경살짝 어둡게(이미 있으면 생략 가능) */
#corpLoginModal .modal-backdrop {
  backdrop-filter: blur(2px);
}
#admin-product-select {
  width: 100%;
  max-height: 260px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #d0d7e2;
  background: #f9fbff;
  font-size: 14px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.15);
}
/* optgroup 라벨 줄 자체 스타일 */
#admin-product-select optgroup {
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
  color: #111827;
  text-align: center;      /* 라벨 텍스트 중앙 정렬 */
  padding: 4px 0;
}

/* option 들은 다시 왼쪽 정렬로 */
#admin-product-select optgroup option {
  text-align: left;
  padding-left: 12px;
}
#admin-product-select option {
  padding: 4px 0;
}
/* ✅ corpProductsPath "선택 정보 카드" 느낌으로 */
#corpProductsPath{
  margin: 10px 0 14px !important;     /* inline style보다 우선 */
  padding: 14px 16px 12px 44px;
  border-radius: 14px;

  background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 60%, #ecfeff 100%);
  border: 1px solid rgba(37,99,235,.18);
  box-shadow: 0 10px 22px rgba(15,23,42,.10);

  position: relative;
  overflow: hidden;
}

/* 왼쪽 포인트 바 */
#corpProductsPath::before{
  content:"";
  position:absolute;
  left:14px;
  top:12px;
  bottom:12px;
  width:6px;
  border-radius:999px;
  background: linear-gradient(180deg, #2563eb, #38bdf8);
}

/* 우측 상단 라벨(들어온 느낌) */
#corpProductsPath::after{
  content:"선택 정보";
  position:absolute;
  right:12px;
  top:10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #1d4ed8;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(37,99,235,.20);
}

/* 내부 텍스트 톤 정리 */
#corpProductsPath > div{
  margin: 0 !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: #0f172a;
}

/* 기업명(strong) 강조: 제목처럼 */
#corpProductsPath strong{
  display:block;
  margin-bottom: 6px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* 모바일에서 조금 더 컴팩트 */
@media (max-width: 640px){
  #corpProductsPath{
    padding: 12px 12px 10px 40px;
  }
  #corpProductsPath strong{
    font-size: 1.0rem;
  }
  #corpProductsPath > div{
    font-size: 0.92rem !important;
  }
}

/* 대부분 브라우저에서 먹는 정도로만 */
#admin-product-select option:checked {
  background-color: #2563eb;
  color: #fff;
}
/* 공통 모달 백드롭 */
.exam-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.35);
  display: none;            /* JS에서 display = "flex" 로 켜주고 있음 */
  align-items: center;
  justify-content: center;
}

/* 공통 모달 패널 */
.exam-modal-panel {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px 24px 20px;
  min-width: 360px;
  max-width: 720px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.35);
}

/* X 버튼 공통 */
.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #9ca3af;
  transition: background-color 0.12s ease, color 0.12s ease, transform 0.08s ease;
}

.modal-close-btn:hover {
  background: rgba(15, 23, 42, 0.04);
  color: #4b5563;
  transform: translateY(-0.5px);
}

.modal-close-btn:active {
  background: rgba(15, 23, 42, 0.06);
  color: #111827;
  transform: translateY(0);
}
/* ───────── 기업 상품 영역: 헤더만 카드, 아래 상품은 개인이랑 똑같이 풀어놓기 ───────── */

/* 공통 STEP(1~3)은 그대로 corp-section 쓰고,
   상품 섹션만 박스/패딩 제거해서 풀어버림 */
#corpProductsSection {
  border: none;
  padding: 0;
  margin: 10px 0 0;
  background: none;
  box-shadow: none;
}

/* 헤더(기업: ~ 대상자 변경 버튼)만 한 덩어리 카드로 예쁘게 */
#corpProductsSection .corp-products-header {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: #ffffff;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* 경로 텍스트 */
#corpProductsSection .corp-products-header .path {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.3;
}

/* 대상자 변경 버튼은 살짝 작게 */

/* ─── 기업 상품 헤더를 뱃지라인으로 ─── */

#corpProductsSection .corp-products-header {
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 12px 16px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #f9fafb 0%, #eef2ff 50%, #e0f2fe 100%);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* 왼쪽 경로 영역 */
.corp-path-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* 기본 뱃지 스타일 */
.corp-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background-color: rgba(255,255,255,0.9);
  box-shadow: 0 1px 3px rgba(15,23,42,0.12);
  font-size: 0.82rem;
  line-height: 1.2;
}

.corp-tag-label {
  color: #6b7280;
  font-weight: 600;
}

.corp-tag-value {
  color: #111827;
  font-weight: 700;
}

/* 기업명은 조금 더 강조 */
.corp-tag-company {
  background: linear-gradient(135deg,#1d4ed8,#2563eb);
}
.corp-tag-company .corp-tag-label,
.corp-tag-company .corp-tag-value {
  color: #f9fafb;
}

/* 유형별 컬러 */
.corp-tag-type-self {
  background: #ecfdf3;
}
.corp-tag-type-self .corp-tag-value {
  color: #166534;
}
.corp-tag-type-family {
  background: #fef3c7;
}
.corp-tag-type-family .corp-tag-value {
  color: #92400e;
}
.corp-tag-type-unsupported {
  background: #fee2e2;
}
.corp-tag-type-unsupported .corp-tag-value {
  color: #b91c1c;
}

#btnChangeChoice::before {
  content: "👤";
  font-size: 0.9rem;
}



/* 아웃라인 버튼 공통 호버 트랜지션 */
.btn-outline {
  transition: background-color .15s ease, 
              color .15s ease, 
              border-color .15s ease, 
              box-shadow .15s ease;
}

/* 대상자 변경 버튼 호버 - 파란색 강조 */
#btnChangeChoice:hover {
  background-color: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
}

/* 로그아웃 기본 상태: 살짝 빨간 느낌 */
#btnCorpLogout {
  background-color: #fff7f7;
  color: #b91c1c;
  border-color: #fecaca;
}

/* 로그아웃 호버: 쎄게 빨간색 */
#btnCorpLogout:hover {
  background-color: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.45);
}
/* 엑셀 일괄등록: 에러 셀 하이라이트 */
.bulk-cell-error {
  background-color: #fef2f2;  /* 연한 빨간색 */
}

.bulk-cell-error input,
.bulk-cell-error select {
  background-color: transparent;
}
/* ========== Facelift Override (append at END) ========== */
:root{
  --bg: #f6f7fb;
  --panel: #ffffff;
  --text: #111827;
  --muted: #6b7280;

  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --success: #16a34a;
  --danger: #dc2626;

  --border: #e5e7eb;
  --shadow-sm: 0 2px 10px rgba(15,23,42,.06);
  --shadow-md: 0 10px 30px rgba(15,23,42,.10);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;

  --pad: 22px;
}

/* 전체 톤/타이포 */
body{
  background: var(--bg) !important;
  color: var(--text);
  box-shadow: var(--shadow-md) !important;
  border: 1px solid var(--border);
}
@media (max-width: 1024px){
  body{
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: #fff !important;
  }
}

h1{
  letter-spacing: -0.02em;
  color: var(--text);
}

nav{
  display:flex;
  justify-content:center;
  gap:6px;

  padding:6px;
  margin: 18px auto 26px;
  max-width: 560px;

  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:9999px;
  box-shadow: 0 10px 25px rgba(15,23,42,.08);

  /* 기존 "아래줄" 느낌 제거 */
  border-bottom: none;
}

nav a{
  flex:1;
  text-align:center;

  text-decoration:none;
  padding:10px 14px;

  border-radius:9999px;
  border: none;                 /* 기존 border-bottom 제거 */
  color:#334155;
  font-weight:700;

  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

nav a:hover{
  background:#f1f5f9;
}

nav a.active{
  background:#2563eb;
  color:#fff;
  box-shadow: 0 8px 18px rgba(37,99,235,.35);
}

/* 안내 박스(info) */
.info{
  border: 1px solid #000000;
  box-shadow: var(--shadow-sm) !important;
  border-radius: var(--r-md) !important;
  background: var(--panel) !important;
  font-size: 1.03rem !important;
  color: #1f2937 !important;
}

/* 상품 카드: “두꺼운 회색 테두리 + 큰 글자” 느낌 정리 */
.checkup-card{
  border: 1px solid #898989 !important;
  border-radius: var(--r-lg) !important;
  box-shadow: var(--shadow-md) !important;
  padding: 20px 20px !important;
  margin: 18px auto !important;
  background: var(--panel) !important;
}
@media (max-width: 1024px){
  .checkup-card{
    padding: 14px 14px !important;
    margin: 12px auto !important;
  }
}

/* 상품명/가격: 너무 과한 그림자/사이즈 톤다운 + 정렬 개선 */
.productId{
  margin: 8px 0 10px !important;
}
.productName{
  font-size: 26px !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}
.productPrice{
  font-size: 24px !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  text-shadow: none !important;
}

/* 부가설명/기간 */
.additional-info{
  text-align: center;
  white-space: pre-wrap;
  color: #4b5563 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin: 10px 0 6px !important;
}
.reserve-period{
  color: var(--danger) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  margin-top: 12px !important;
}

/* 선택검사 박스: 과한 그림자 줄이고 깔끔하게 */
.tests-container{
  border-left: 4px solid var(--primary) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
  background: #ffffff !important;
}

/* 버튼 통일: modern + focus ring */
.btn-detail, .btn-reserve,
#page-reservation button{
  border-radius: 12px !important;
  box-shadow: 0 8px 18px rgba(15,23,42,.10);
  transition: transform .05s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-detail{ background: var(--primary) !important; }
.btn-detail:hover{ background: var(--primary-2) !important; }
.btn-reserve{ background: var(--success) !important; }
.btn-reserve:hover{ filter: brightness(.95); }

.btn-detail:active, .btn-reserve:active{ transform: translateY(1px); }

.btn-detail:focus-visible, .btn-reserve:focus-visible,
#page-reservation button:focus-visible,
#page-reservation input:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(37,99,235,.18), 0 10px 24px rgba(15,23,42,.12);
}

/* 입력폼: 예전 느낌(회색 테두리) -> 깨끗하게 */
#page-reservation input{
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  background: #fff !important;
  box-shadow: var(--shadow-sm);
}
#page-reservation input:focus{
  border-color: rgba(37,99,235,.55) !important;
}

/* 모달 중복 정의가 많아서: 공통 백드롭/패널 톤만 정리 */
.modal, .imgviewer-modal, .errorModal{
  backdrop-filter: blur(2px);
}
.modal-content-reservation{
  border-radius: var(--r-lg) !important;
  box-shadow: 0 18px 50px rgba(15,23,42,.25) !important;
  border: 1px solid rgba(229,231,235,.9);
}

/* 기업쪽 버튼(대상자변경/로그아웃) 톤만 개인과 일치 */
#btnChangeChoice.btn-outline{
  border-radius: 999px !important;
  border: 1px solid rgba(148,163,184,.9) !important;
  background: rgba(255,255,255,.9) !important;
}
#btnChangeChoice.btn-outline:hover{
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}
#btnCorpLogout{
  border-radius: 999px !important;
}

/* 애니메이션 싫어하는 환경 배려 */
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}
/* hidden 속성 강제 적용 */
.notice-bang[hidden]{
  display:none !important;
}
/* 선택검사 번호만 살짝 강조 (공간 추가 거의 없음) */
.opt-no{
  font-weight: 800;
  color: #1e40af;        /* 또는 #222 */
  font-size: 1.05em;
  margin-right: 2px;
}


/* ===== 로딩 오버레이 ===== */
.loading-overlay{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity .2s ease, visibility .2s ease;
}

.loading-overlay.hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-card{
  width: min(360px, 92vw);
  padding: 22px 18px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  text-align: center;
}

.spinner{
  width: 44px;
  height: 44px;
  margin: 4px auto 12px;
  border-radius: 50%;
  border: 4px solid rgba(0,0,0,0.10);
  border-top-color: rgba(0,0,0,0.55);
  animation: spin 0.9s linear infinite;
}

.loading-title{
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.loading-sub{
  margin-top: 6px;
  font-size: 0.9rem;
  color: #666;
}

.loading-dots{
  display: inline-flex;
  gap: 6px;
  margin-top: 14px;
}

.loading-dots span{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  animation: dot 1s ease-in-out infinite;
}

.loading-dots span:nth-child(2){ animation-delay: .12s; }
.loading-dots span:nth-child(3){ animation-delay: .24s; }

@keyframes spin{
  to { transform: rotate(360deg); }
}

@keyframes dot{
  0%, 100% { transform: translateY(0); opacity: .35; }
  50%      { transform: translateY(-4px); opacity: 1; }
}



/* 새 예약건 블링크 */

#topLeftWrap{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.new-res-inline{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:2px solid #ff4d4f;
  color:#fff;
  background:#ff1f1f;
  font-weight:900;
  font-size:14px;
  line-height:1;
  box-shadow:0 10px 22px rgba(255,31,31,.25);
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
  transform: translateZ(0);
}

.new-res-inline.blink{
  animation:newResPulse .75s infinite ease-in-out;
}

@keyframes newResPulse{
  0%{
    transform: scale(1);
    background:#ff1f1f;
    border-color:#ff4d4f;
    box-shadow:0 10px 22px rgba(255,31,31,.25);
    color:#fff;
  }
  50%{
    transform: scale(1.12);
    background:#ffec3d;
    border-color:#ffec3d;
    box-shadow:0 0 0 10px rgba(255,31,31,.18), 0 18px 36px rgba(0,0,0,.18);
    color:#111;
  }
  100%{
    transform: scale(1);
    background:#ff1f1f;
    border-color:#ff4d4f;
    box-shadow:0 10px 22px rgba(255,31,31,.25);
    color:#fff;
  }
}

