@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+KR:wght@300&family=Noto+Sans+KR:wght@100..900&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  --foodn-primary: #171c61;
  --foodn-accent: #e1670a;
  --foodn-excel: #217346;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: "Pretendard", sans-serif;
  /* background: #f5f5f5; */
  overflow-x: hidden;
  text-decoration: none;
  font-size: 14px;
}

/* =========================================================
   공통 타이포그래피
   - 기본 글자 크기는 body를 따름
   - 페이지별로 필요한 부분만 별도 지정
========================================================= */
table,
td {
  font-size: inherit;
}

th {
  font-size: 16px;
  font-weight: 600;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

a,
a:hover,
a:focus,
a:active {
  text-decoration: none;
  color: inherit;
}
/* 인풋 통일 */
input[type="number"],
input[type="text"] {
  height: 38px;
  padding: 0 12px;
  border: 1px solid #c8ccd3;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-family: "Pretendard", sans-serif;
  box-sizing: border-box;
  outline: none;

  min-width: 50px;
  /* max-width: 420px; */
}
input[type="number"]:focus,
input[type="text"]:focus {
  border-color: var(--foodn-primary);
  box-shadow: 0 0 0 3px rgba(23, 28, 97, 0.16);
}
input[type="number"]:disabled,
input[type="text"]:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  border-color: #e5e7eb;
  cursor: not-allowed;
}

@media (max-width: 520px) {
  input[type="number"],
  input[type="text"] {
    max-width: 100%;
  }
}

select {
  border: 1px solid #c8ccd3;
  border-radius: 12px;
  padding: 7px;
  background: #ffffff;
  color: #111827;
  outline: none;
  min-height: 38px;
  font-size: 14px;
  cursor: pointer;
}

input[type="file"] {
  width: 90%;
  padding: 6px 12px;
  background: #ffffff;
  color: #111827;
  outline: none;
  border: 0px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
}

select:focus,
input[type="file"]:focus {
  border-color: var(--foodn-primary);
  box-shadow: 0 0 0 3px rgba(23, 28, 97, 0.16);
}

/* 달력 */
input[type="date"] {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 13px;
  min-width: 150px;
  min-height: 38px;
  cursor: pointer;
}
.day_button {
  border: 1px solid #cccccc;
  padding-top: 1px;
  padding-left: 3px;
  padding-right: 3px;
  cursor: pointer;
  background-color: #ffffff;
  min-width: 60px;
  min-height: 38px;
  margin: 0 0 0 3px;
  /* font-family: "IBM Plex Sans KR", sans-serif; */
  border-radius: 12px;
  /* font-size: 12px; */
}

/* 툴팁 */
.tip {
  position: absolute;
  top: 100%;
  left: 0;
  letter-spacing: 2px;
  font-family:
    IBM Plex Sans KR,
    sans-serif;
  line-height: 26px;
  border: 2px solid var(--foodn-primary);
  z-index: 999;
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  /* min-width: 200px; */
  /* max-width: 400px; */
  white-space: nowrap;
  word-break: keep-all;
  text-align: left;
}

/* 버튼: 메인/엑셀 색상은 :root의 공용 변수로 관리 */
/* 엑셀 아이콘을 노출할 때는 /images/ex_icon.gif 사용(기존 img 중복 방지 위해 자동 삽입하지 않음) */
.button {
  font-family: "IBM Plex Sans KR", sans-serif;
  background: var(--foodn-primary);
  color: #ffffff;
  border: 0;
  padding-left: 25px;
  padding-right: 25px;
  margin: 0px;
  height: 38px;
  text-align: center;
  letter-spacing: 1px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 12px;
}
.button2 {
  font-family: "IBM Plex Sans KR", sans-serif;
  background: #f8f8f8;
  color: var(--foodn-primary);
  padding-left: 25px;
  padding-right: 25px;
  margin: 0px;
  height: 38px;
  text-align: center;
  letter-spacing: 1px;
  font-weight: bold;
  cursor: pointer;
  border: solid 1px var(--foodn-primary);
  transition: background-color 0.2s;
  border-radius: 12px;
}
.button2:hover {
  background: var(--foodn-primary);
  color: #ffffff;
}

.ex_button {
  font-family: "IBM Plex Sans KR", sans-serif;
  background: var(--foodn-excel);
  color: #fff;
  padding-left: 25px;
  padding-right: 25px;
  margin: 0 0 0 10px;
  height: 38px;
  text-align: center;
  letter-spacing: 1px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  border: 1px solid var(--foodn-excel);
  transition: background-color 0.2s;
  border-radius: 12px;
}
.ex_button:hover {
  background: #ffffff;
  color: var(--foodn-excel);
}
.ex_button2 {
  font-family: "IBM Plex Sans KR", sans-serif;
  background: #ffffff;
  color: var(--foodn-excel);
  padding-left: 20px;
  padding-right: 20px;
  margin: 0 0 0 10px;
  height: 38px;
  text-align: center;
  letter-spacing: 1px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  border: 1px solid var(--foodn-excel);
  transition: background-color 0.2s;
  border-radius: 12px;
}
.ex_button2:hover {
  background: var(--foodn-excel);
  color: #fff;
}
.button3 {
  font-family: "IBM Plex Sans KR", sans-serif;
  background: #ffffff;
  color: #000000;
  border: 1px solid #cccccc;
  padding-left: 15px;
  padding-right: 15px;
  margin: 0 0 0 10px;
  height: 38px;
  letter-spacing: 1px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 12px;
}
.search {
  background: var(--foodn-primary);
  color: #ffffff;
  border: 0;
  padding-left: 25px;
  padding-right: 18px;
  margin: 0px;
  height: 38px;
  text-align: center;
  letter-spacing: 10px;
  cursor: pointer;
  border-radius: 12px;
}

/*검색폼*/
.searchform,
.searchform_detail {
  /* font-family: "IBM Plex Sans KR", sans-serif; */
  line-height: 50px;
  font-size: 15px;
}
.searchform span,
.searchform_detail span {
  font-family: "IBM Plex Sans KR", sans-serif;
  padding-right: 20px;
  word-break: normal;
  display: inline-block;
  width: 130px;
}
.searchform li {
  padding-left: 25px;
  float: left;
  list-style: none;
}
.searchform li:nth-of-type(1) {
  padding-right: 70px;
}
.searchform li:nth-of-type(2),
.searchform li:nth-of-type(3),
.searchform li:nth-of-type(4) {
  margin-right: 50px;
}
.searchform label,
.searchform a {
  padding-right: 25px;
  word-break: normal;
}
.searchform_detail li {
  padding-left: 25px;
  float: left;
  list-style: none;
  width: 700px;
}
.searchform_detail label,
.searchform_prdut label {
  padding-right: 15px;
  word-break: normal;
}
.searchform_detail li:last-child,
.searchform_prdut li:last-child {
  margin-bottom: 10px;
}

/*** 페이지 영역 스타일 ***/
.pageNavi {
  font-family: "IBM Plex Sans KR", sans-serif;
  font-size: 14px;
  word-spacing: 10px;
  font-weight: bold;
  padding: 20px;
}

/* =========================================================
   공용 큰 콘텐츠 카드 (회원가입 / 관리 테이블 외곽 패널)
   - 바깥 흰 배경, 얇은 테두리, 둥근 모서리, 가벼운 그림자
   - 페이지별 내부 여백은 각 페이지에서 설정
========================================================= */
.panel-card {
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: 0 8px 28px rgba(30, 48, 77, 0.055), 0 1px 3px rgba(30, 48, 77, 0.025);
}

/* =========================================================
   공용 내부 카드
   - .panel-card 안에서 설정 및 정보 묶음을 구분
   - 그림자 없이 배경과 테두리만 사용
========================================================= */
.sub-card {
  box-sizing: border-box;
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  background: #f8fafc;
}

/* =========================================================
   공용 섹션 제목: 제목 / 설명 / 오른쪽 버튼
========================================================= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  min-width: 0;
}
.section-header__title {
  margin: 0;
  color: #111827;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}
.section-header__desc {
  margin: 6px 0 0;
  color: #687385;
  font-size: 15px;
  line-height: 1.6;
}
.section-header__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

/* =========================================================
   공용 안내 박스: 기본은 중립적인 설명용
   - 페이지별 중요도에 따라 색상은 개별 설정 가능
========================================================= */
.notice-box {
  box-sizing: border-box;
  min-width: 0;
  padding: 14px 18px;
  border: 1px solid #e4e8ee;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .sub-card { padding: 16px; }
  .section-header { align-items: flex-start; }
  .section-header__actions { margin-left: 0; }
  .notice-box { padding: 12px 14px; }
}

/* =========================================================
   공용 텍스트 형광펜: 필요한 단어만 선택적으로 강조
   - 글자 크기, 굵기, 글자색은 바꾸지 않음
========================================================= */
.text-highlight {
  padding: 0 3px 2px;
  background: linear-gradient(to bottom, transparent 27%, #fff9db 27%, #fff9db 96%, transparent 96%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* =========================================================
   공용 필수 표시: 필드명 앞의 빨간 별표
   - 모바일 크기/간격은 각 페이지에서 필요할 때만 조정
========================================================= */
.required-star {
  display: inline-block;
  margin-right: 5px;
  color: #e11919;
  font-size: 27px;
  font-weight: 800;
  line-height: .65;
  vertical-align: -4px;
}

/* =========================================================
   공용 항목 안내: 입력값 설명이나 주의사항에 쓰는 청록색 문구
   - 상하 여백/줄바꿈은 페이지 배치에 따라 조정
========================================================= */
.field-guide {
  color: #00838f;
  font-size: 15px;
  line-height: 1.6;
}

/* =========================================================
   공용 다중 선택 체크 항목: 가입 경로 등 여러 선택지의 칩 형태
   - 단일/복수 선택 동작은 HTML의 input으로 결정
========================================================= */
.check-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 6px 9px 0;
  padding: 8px 10px;
  border: 1px solid #e5e8ef;
  border-radius: 12px;
  background: #f9fafc;
  cursor: pointer;
}
.check-option > input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #171c61;
}

/* =========================================================
   공용 슬라이딩 라디오 (segmented-radio)
   - 선택된 남색 배경이 부드럽게 이동
   - JS /js/segmented-radio.js 가 없는 환경에서도 선택 표시 유지
   - 기존 라디오/버튼에는 영향 없음
   사용 예: <div class="segmented-radio">
     <label class="segmented-radio__item"><input type="radio" name="view" value="1" checked><span>전체</span></label>
     <label class="segmented-radio__item"><input type="radio" name="view" value="2"><span>진행중</span></label>
   </div>
========================================================= */
.segmented-radio {
  --segmented-radio-radius: 19px;
  --segmented-radio-selected-radius: 14px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  min-height: 42px;
  padding: 3px;
  border: 1px solid #e5e8f0;
  border-radius: var(--segmented-radio-radius);
  background: #f3f5f9;
  box-sizing: border-box;
}
.segmented-radio .segmented-radio__item {
  display: inline-flex;
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 0;
  width: auto;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  box-sizing: border-box;
}
.segmented-radio .segmented-radio__item > input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 1px;
  min-height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.segmented-radio .segmented-radio__item > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: var(--segmented-radio-selected-radius);
  color: #586276;
  background: transparent;
  line-height: 1.3;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
  box-sizing: border-box;
}
/* JS를 로드하지 못해도 현재 선택이 명확히 보이도록 보장합니다. */
.segmented-radio .segmented-radio__item > input[type="radio"]:checked + span {
  background: var(--foodn-primary, #171c61);
  color: #fff;
  font-weight: 750;
}
.segmented-radio .segmented-radio__item > input[type="radio"]:focus-visible + span {
  outline: 3px solid rgba(23, 28, 97, .28);
  outline-offset: 2px;
}
.segmented-radio .segmented-radio__item:hover > input[type="radio"]:not(:checked) + span {
  background: #e9edf5;
  color: var(--foodn-primary, #171c61);
}
.segmented-radio__thumb {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  border-radius: var(--segmented-radio-selected-radius);
  background: var(--foodn-primary, #171c61);
  box-shadow: 0 2px 7px rgba(23, 28, 97, .19);
}
.segmented-radio.is-slide-ready .segmented-radio__thumb {
  transition: transform .28s cubic-bezier(.22, 1, .36, 1),
    width .28s cubic-bezier(.22, 1, .36, 1),
    height .28s cubic-bezier(.22, 1, .36, 1), opacity .16s ease;
}
.segmented-radio.is-slider-enabled .segmented-radio__item > input[type="radio"]:checked + span {
  background: transparent;
}
@media (max-width: 720px) {
  .segmented-radio .segmented-radio__item > span { padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .segmented-radio.is-slide-ready .segmented-radio__thumb,
  .segmented-radio .segmented-radio__item > span { transition: none; }
}



/* =========================================================
   공용 버튼 비활성 커서 통일 (모든 관리자 페이지)
   활성 버튼의 cursor:pointer 는 기존 스타일 유지
========================================================= */
button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled {
  cursor: not-allowed !important;
}
