@charset "utf-8";
#summary_panel {
  position: fixed;
  top: 0px;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background: #fff;
  margin: 0;
  overflow: auto;
}

#summary_panel .summary_scroll {
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid #ccc;
}

/* 탭 메뉴 */
.summary_tab {
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.summary_tab .tab_item {
  flex: 1;
  height: 56px;
  border: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  color: #222;
  cursor: pointer;
  position: relative;
}

.summary_tab .tab_item.active {
  color: #111;
}

.summary_tab .tab_item.active::after {
  content: "";
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 0;
  height: 3px;
  background: #444;
}

/* 탭 컨텐츠 */
.tab_section {
  display: none;
  padding: 20px 15px 110px;
  background: #f1f1f1;
  overflow: hidden;
}

.tab_section.active {
  display: block;
}

/* 공통 카드 */
.card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 18px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.card:not(:last-of-type) {
  margin-bottom: 15px;
}

#summary_panel .btn-primary {
  display: block;
  width: 100%;
  background: #046FD9;
  color: #fff;
  border: none;
  padding: 20px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 24px;
}

/* 보장분석 상단 카드 */
.score-card {
  text-align: center;
}

.progress-bar {
  position: relative;
  height: 16px;
  background: #e9e9e9;
  border-radius: 999px;
  overflow: visible;
}

.progress-fill {
  position: relative;
  height: 100%;
  background: linear-gradient(
    90deg,
    #ff7a70 100%,
    #FF5A4F 50%,
    #e6453a 0%
  );
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* 말풍선 */
.progress-fill::after {
  content: "종합진단점수 " attr(data-value);
  position: absolute;
  top: -34px;
  right: 0;
  transform: translateX(50%);
  
  background: #333;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* 화살표 */
.progress-fill::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 0;
  transform: translateX(50%);
  
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

.progress-fill[data-value="0%"]::after,
.progress-fill[data-value="0%"]::before {
  display: none;
}

.score_num_box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
}

.score_num {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 54px;
  font-weight: 800;
  color: #333;
  line-height: 1;
}

.score_num span {
  font-size: 22px;
  font-weight: 700;
}

.score_label {
  display: inline-block;
  margin: 8px 0 0 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: #3d3d3d;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.summary-title {
  font-size: 30px;
  margin: 20px 0;
  text-align: center;
}

.summary-title strong {
  color: #ff4d4f;
  font-weight: 700;
}

.analysis_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
}

.analysis_item {
  position: relative;
  text-align: center;
}

.analysis_item + .analysis_item::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 1px;
  height: 36px;
  background: #d8d8d8;
}

.analysis_item .label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #555;
}

.analysis_item .count {
  font-size: 22px;
  font-weight: 800;
  color: #222;
}

.analysis_item.danger .label,
.analysis_item.danger .count {
  color: #ff5a4f;
}

.analysis_item.warning .label,
.analysis_item.warning .count {
  color: #ff9d1e;
}

.analysis_item.primary .label,
.analysis_item.primary .count {
  color: #1565ff;
}

/* 가장 부족한 보장 3순위 */
.radial-card-title {
  margin-bottom: 24px;
}

.radial-card-title h3 {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.radial-card-title p {
  font-size: 16px;
  line-height: 1.3;
  color: #a1a1a1;
}

.radial-contents {
  margin-top: 8px;
}

.radial-item {
  padding: 14px 0 18px;
  border-bottom: 1px solid #e8e8e8;
}

.radial-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.radial-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.radial-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.radial-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ff5a4f;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radial-name {
  font-size: 17px;
  font-weight: 800;
  color: #222;
  line-height: 1.4;
  word-break: keep-all;
}

.radial-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fde7e7;
  color: #ff5a4f;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.radial-progress {
  width: 100%;
  height: 16px;
  background: #e9e9e9;
  border-radius: 999px;
  overflow: hidden;
}

.radial-progress-fill {
  height: 100%;
  background: #ff5a4f;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.radial-item-bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.radial-percent {
  font-size: 15px;
  color: #4a4a4a;
  font-weight: 500;
}

/* 보장상세 */
.detail-wrap {
  padding: 0 0 24px;
}

.detail-tab-swiper {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 0 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.detail-tab-swiper::-webkit-scrollbar {
  display: none;
}

.detail-tab-item {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #ddd;
  color: #444;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.detail-tab-item.active {
  background: #3f3f3f;
  color: #fff;
}

.detail-tab-contents {
  margin-top: 6px;
}

.detail-tab-panel {
  display: none;
}

.detail-tab-panel.active {
  display: block;
}

.detail-summary-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px 16px 20px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.detail-summary-top {
  margin-bottom: 12px;
}

.detail-summary-score {
  display: inline-flex;
  align-items: center;
}

.detail-summary-score .warn-text {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fde7e7;
  color: #ff5a4f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.detail-summary-score.ok .warn-text {
  background: #e8f1f3;
  color: #1565ff;
}

.detail-item-card {
  padding: 16px 0;
  border-top: 1px solid #ececec;
}

.detail-item-card:first-of-type {
  border-top: 0;
  padding-top: 6px;
}

.detail-badge-row {
  margin-bottom: 12px;
}

.detail-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fde7e7;
  color: #ff5a4f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.detail-item-title {
  font-size: 18px;
  font-weight: 800;
  color: #222;
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}

.detail-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #777;
}

.detail-progress-bar {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: #ececec;
  overflow: hidden;
}

.detail-progress-fill {
  height: 100%;
  background: #ff5a4f;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.detail-percent-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
}
/* 충분 (100%) */
.detail-badge.full,
.detail-progress-fill.full {
  background: #e8f1f3;
  color: #1565ff;
}
.detail-progress-fill.full  {
  background-color: #046FD9;
}
/* 보통 (70~99) */
.detail-badge.medium {
  background-color: #ffe69a;
  color: #000;
  border: 1px solid #ffd968;
}
.detail-progress-fill.medium {
  background: #ffd968;
}
/* 부족 (70 미만) */
.detail-badge.low {
  background: #fde7e7;
  color: #ff5a4f;
}
.detail-progress-fill.low  {
  background: #FF5A4F;
}
/* 가입현황 */

.status_section {
  padding: 0;
  padding-bottom: 110px;
}

.status_section .section_title {
  background: #046FD9;
  padding: 25px 18px;
}

.status_section .section_title .title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.status_section .section_title .sub_title {
  font-size: 16px;
  margin: 15px 0;
  color: #fff;
}

.total-bohumCount h4 {
  color: #737373;
  font-size: 16px;
  font-weight: 400;
}

.total-bohumCount h4 strong {
  color: #343434;
  font-size: 18px;
  font-weight: 700;
  margin-left: 8px;
}

.status_section .contract-block-wrap {
  padding: 15px 15px;
}

.status_section .contract-block {
  padding: 18px 16px 18px;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
}
.status_section .contract-block.open {
  border-color: #046FD9;
}
.status_section .contract-block .arrow_box img {
  transition: transform 0.3s ease;
  transform: rotate(-180deg);
}

.status_section .contract-block .arrow_box img.rotate {
  transform: rotate(0deg);
}
.status_section .contract-block .arrow_box img {
  max-width: 20px;
  display: block;
  margin: 0 auto;
}
.contract-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.contract-head-text {
  flex: 1;
  min-width: 0;
  width: 80%;
  overflow: hidden;
}

.contract-head-title {
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  color: #222;
  word-break: keep-all;
  margin-bottom: 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.contract-head-company {
  font-size: 14px;
  color: #666;
  line-height: 1.3;
}

.contract-type-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f3f0ef;
  color: #8b7469;
  font-size: 13px;
  font-weight: 600;
}

.contract-info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.contract-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contract-info-row .label {
  font-size: 15px;
  color: #666;
  line-height: 1.4;
}

.contract-info-row .value {
  font-size: 15px;
  color: #222;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
}

.contract-pay-rate {
  margin: 6px 0 10px 0;
}

.contract-pay-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.contract-pay-rate-row .label {
  font-size: 15px;
  color: #666;
}

.contract-pay-rate-row .value {
  font-size: 15px;
  color: #1565ff;
  font-weight: 700;
}

.contract-pay-bar {
  width: 100%;
  height: 4px;
  background: #dfeaf5;
  border-radius: 999px;
  overflow: hidden;
}

.contract-pay-fill {
  height: 100%;
  background: #1565ff;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.contract-coverage-list {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid #efefef;
  display: none;
}

.contract-coverage-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.contract-coverage-item:not(:last-of-type) {
  margin-bottom: 10px;
}
.coverage-name {
  flex: 1;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  word-break: keep-all;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.coverage-amount {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: #222;
  line-height: 1.5;
  text-align: right;
}

.button-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  border-top: 1px solid #ccc;
  padding: 15px 15px;
  background: #fff;
}

@media screen and (max-width: 700px) {
  #summary_panel .btn-primary {
    padding: 12px;
    font-size: 21px;
  }
}
@media screen and (max-width: 568px) {
  .score_num {
    font-size: 43px;
  }
  .summary-title {
    font-size: 25px;
  }
}
@media screen and (max-width: 430px) {
  .summary-title {
    font-size: 20px;
  }
  .analysis_item .label {
    margin-bottom: 3px;
  }
}