/****** 주문하기 입력창 section02 ******/
.section02 {
    padding: 0 10px;
    padding-bottom: 40px;
}
.infomation_wrap {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 0 40px;
    margin: 0 auto;
}
.info_left {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.info_right {
    width: 70%;
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.menu_input {
    width: 50%;
}
.info_load {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.info_load .search-wrap {
    width: 100%;
}
.info_load .input_con[readonly] {
    background-color: rgba(255, 81, 23, 0.1);
    border-radius: 4px;
    color: black;
    font-weight: 700;
    cursor: not-allowed;
    border: initial;
}
/* 배송지정보 자동기입 */
.autocomplete-list {
  position: absolute;
  top: 45px;
  left: 0;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line-light, #ddd);
  border-radius: 8px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  padding: 0;
  margin: 0;
}
.autocomplete-list li {
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}
.autocomplete-list li:hover {
  background: #f5f5f5;
}
.autocomplete-list .no-result {
  padding: 10px 14px;
  color: #999;
  cursor: default;
}
/* 배송지정보 수동기입 */
#input_adr ~ .input_group_wrap {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px) scaleY(0.8);
  transform-origin: top;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    transform 0.4s ease;
}
#input_adr:checked ~ .input_group_wrap {
  max-height: 2000px;
  opacity: 1;
  transform: translateY(0) scaleY(1);
}

input[name="input_adr"] {
    display: none;
}
.input_adr_toggle .modal-btn {
  position: relative;
  display: inline-flex;
  align-items: center;

}
.input_adr_toggle .modal-btn::before,
.input_adr_toggle .modal-btn::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 12px;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
}

.input_adr_toggle .modal-btn::after {
  transform: translateY(-50%) rotate(90deg);
}
#input_adr:checked + label .info_title {
  color: var(--primary-orange);
}

.info_title {
    font-family: var(--font-pretendard-jp);
    font-weight: 700;
    font-size: 2.4rem;
    margin-top: 30px;
    margin-bottom: 10px;
}
.info_sub_title {
    font-family: var(--font-pretendard-jp);
    font-weight: 900px;
    font-size: 2rem;
}

/* 입력창 */
.input_group {
    display: flex;
    flex-direction: column;
    gap: 20px;

}
.input_box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.input_tit {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-left: 10px;
}
.input_tit h3 {
    font-weight: 600;
}
.input_tit span {
    background-color: rgba(255, 81, 23, 0.1);
    padding: 4px 10px;
    border-radius: 24px;
    color: var(--primary-orange);
    font-size: 14px;
    font-weight: 600;
}
.input_tit p {
    font-size: 1.4rem;
    color: var(--label-alternative);
}
.input_tit p>span {
    color: var(--primary-orange);
    font-size: 1.4rem;
    border-radius: 0;
    font-weight: 300;
    padding: 0;
    background-color: rgba(255, 81, 23, 0);
}
/* 입력창-플레이스홀더 */
.input_form {
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 10px;
}
.input_con {
    width: 100%;
    background-color: var(--background-light);
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 1.8rem;
}
.address_btn a {
    padding: 14px;
    border: 1px solid var(--line-normal);
    box-sizing: border-box;
    border-radius: 4px;
}
.input_form label {
    display: flex;
    gap: 8px;
    margin-left: 10px;
}
.radio_check_pay {
    margin-left: 30px !important;
}

/* 결제주기 */
.pay_input {
    border: 1px solid var(--line-normal);
    border-radius: 4px;
    padding-top: 20px;
}
.input_form_column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
    margin-left: 20px;
    gap: 20px;
    padding-bottom: 20px;
}
.input_form_column_week {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 10px;
    gap: 20px;
}
.input_subtitle {
    font-weight: 600;
    color: var(--cal-accent);
}
/* 영역 배경 및 레이아웃 */
.form_week {
  display: flex;
  justify-content: space-between;
  background-color: rgba(255, 81, 23, 0.1);
  padding: 20px 40px;
  width: 100%;
}
.form_paid {
  display: flex;
  justify-content: space-between;
  background-color: rgba(156, 156, 156, 0.1);
  padding: 20px 40px;
  width: 100%;
}
.form_week_2 {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: rgba(255, 81, 23, 0.1);
  padding: 20px 40px;
}
.form_week_2 div {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}
.form_week_2>div:nth-child(1) {
    border-bottom: 1px dotted #aaa;
    padding-bottom: 10px;
}

/* 기본 라벨/텍스트 스타일 */
.form_week label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transform: translateX(-10px);
}

/* 네이티브 라디오 숨기기 (디자인 커스텀 시) */
.form_week input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* 커스텀 텍스트(또는 버튼모양) */
.form_week label span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #bbb;
  border-radius: 20px;
  color: #000;
  transition: .2s ease;
}

/* 선택됨(checked) 상태 */
.form_week input:checked + span {
  border-color: #ff5117;
  background: #ff5117;
  color: #fff;
}

/* ⛔ 비활성화 상태: input을 기준으로 형제 span 스타일링 */
.form_week input:disabled + span {
  color: #aaa;
  border-color: #ddd;
  background: #f5f5f5;
  filter: grayscale(40%);
  cursor: not-allowed;
  opacity: 0.7;
  pointer-events: none;
}

/* 달력 */
/* ===== THEME: CSS 변수로 손쉽게 커스터마이징 ===== */
:root {
--cal-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
--cal-bg: #ffffff;
--cal-surface: #f6f7f9;
--cal-text: #1f2937;
--cal-muted: #6b7280;
--cal-border: #e5e7eb;
--cal-accent: #FF5117; /* 메인 포인트 색상 */
--cal-accent-contrast: #ffffff;
--cal-radius: 14px;
--cal-shadow: 0 10px 30px rgba(2, 6, 23, .08);
}

* { box-sizing: border-box; }
body { 
    margin: 0; 
    font-family: var(--cal-font); 
    color: var(--cal-text); 
    background: white; 
}
.container { 
    width: 50%; 
    padding: 0 16px; 
}
p.lead { 
    margin: 0 0 24px; 
    color: var(--cal-muted); 
}

/* ===== 캘린더 비활성화 (과거) ===== */
.day.disabled { opacity: .4; cursor: not-allowed; }

/* ===== 공통 캘린더 프레임 ===== */
.card { 
    background: var(--cal-bg); 
    border:1px solid var(--cal-border); 
    border-radius: var(--cal-radius); 
    box-shadow: var(--cal-shadow);
    width: auto;
}
.order_title {
    display: flex;
    align-items: center;
    gap: 10px;
}
.order_title img {
    width: 40px;
    height: 100%;
}
.row { 
    display:flex; 
    align-items:center; 
}

.calendar { padding: 16px; }
.cal-header { 
    display:flex; 
    align-items:center; 
    justify-content:space-between; 
    gap: 8px; 
}
.cal-title { 
    font-weight: 700; 
    letter-spacing: .2px; 
}
.cal-nav { 
    display:flex; 
    gap: 6px; 
}
.btn { 
    appearance: none; 
    border:1px solid var(--cal-border); 
    background: var(--cal-surface); 
    color: var(--cal-text); 
    border-radius: 10px; 
    padding: 8px 12px; 
    cursor:pointer; 
    font-weight:600; 
    transition: all .15s ease; 
    box-shadow: initial;
}
.btn:hover { 
    filter: brightness(0.9); 
}
.cal-nav .btn-ghost { 
    padding: 12px 18px;
    background: transparent; 
}
.btn-primary { 
    background: var(--cal-accent); 
    color: var(--cal-accent-contrast); 
    border-color: transparent; 
}

.weekday { 
    color: var(--cal-muted); 
    font-size: 12px; 
    letter-spacing: .4px; 
    text-transform: uppercase; 
    text-align:center; 
    padding: 8px 0; 
}
.day { 
    position: relative; 
    background: var(--cal-surface); 
    border: 1px solid var(--cal-border); 
    border-radius: 10px; 
    display:flex; 
    align-items:flex-start; 
    justify-content:flex-end; 
    padding:8px; cursor:pointer; 
    transition: .15s ease; 
}
.day:hover { 
    box-shadow: 0 0 0 2px var(--cal-accent) inset; 
}
.day .num { 
    font-weight: 700; 
    font-size: 18px; 
}
.day.muted { opacity: .45; }
.day.today { 
    outline: 2px solid var(--cal-accent); 
    outline-offset: -2px; 
}
.day.selected { 
    background: var(--cal-accent); 
    color: var(--cal-accent-contrast); 
    border-color: transparent; 
}
.dots { 
    position:absolute; 
    left:8px; 
    bottom:8px; 
    display:flex; 
    gap:4px; }
.dot { 
    width:6px; 
    height:6px; 
    border-radius: 50%; 
    background: var(--cal-accent); 
    opacity:.8; 
}

/* 이벤트 리스트 (우측 패널) */
.radio_check .checkmark { pointer-events: none; }
.quantity_form { display:flex; align-items:center; width:100%; }
.quantity_box { margin-left:auto; display:inline-flex; gap:6px; align-items:center; }
.layout{
  display:grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 8px;
}
.weekend,
.weekday{
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  padding: 8px 0;
}
/* 날짜 그리드 */
#pickerGrid,
#calGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 56px;
  gap: 6px;
}
.qty-value {
    min-width: 50px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    outline: none;
    background: #fff;
    font-size: 14px;
    font-weight: 500;
}
.order_memo label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-orange);
}
.memo-input {
    width:100%; 
    height:70px; 
    padding:8px; 
    margin-top:2px; 
    border:1px solid #ddd; 
    border-radius:6px; 
    resize:none; 
    font-size:14px;
}
/* 요일 헤더 */
.calendar-head div {
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.weekday {
  color: #333;
}

.weekend {
  color: #bbb;
}

/* 날짜 버튼 */
.calendar-body .day {
  border-radius: 8px;
  border: 1px solid #eee;
  background: #fff;
  cursor: pointer;
}

.calendar-body .day.disabled,
.calendar-body .day.weekend {
  background: #f6f6f6;
  color: #aaa;
  cursor: not-allowed;
}

/* 첫 주 빈칸 */
.calendar-body .empty {
  pointer-events: none;
}

.weekend {
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 900px){ .layout { grid-template-columns: 1fr; } }


.events-panel { 
    width: 100%;
    padding: 16px; 
    max-height: 560px; 
    overflow:auto; 
}
.event { 
    border:1px solid var(--cal-border); 
    background: var(--cal-surface); 
    border-radius: 12px; 
    padding: 12px; 
    margin-bottom: 10px; 
}
.event .badge { 
    display:inline-block; 
    font-size:11px; 
    font-weight:700; 
    background: var(--cal-accent); 
    color: var(--cal-accent-contrast); 
    padding:4px 8px; 
    border-radius: 999px; 
    margin-right: 6px; 
}


/* ===== 데이트피커 (Input + Popover) ===== */
.picker-wrap { 
    position: relative; 
    width: 280px; 
}
.picker-input { 
    width:100%; 
    padding: 10px 12px; 
    border:1px solid var(--cal-border); 
    border-radius: 10px; 
    background: var(--cal-bg); 
    color: var(--cal-text); 
    outline:none; 
}
.picker-pop { 
    position:absolute; 
    top: 52px; 
    left:0; 
    z-index: 50; 
    width: 320px; 
}
.hidden { display:none; }


/* 도움말 블록 */
.tip { 
    font-size: 12px; 
    color: var(--cal-muted); 
    margin-top: 8px; 
}
.swatch { 
    display:inline-block; 
    width: 14px; 
    height: 14px; 
    border-radius: 4px; 
    border:1px solid var(--cal-border); 
    vertical-align: -2px; 
    margin-right: 6px; 
}

/* 수량선택 */
.quantity_form {
    width: 100%;
    display: flex;
    flex-direction: row;
    text-align: center;
    justify-content: space-between;
    align-items: center;

}
.quantity_box {
    display: flex; 
    align-items: center; 
    gap: 5px;
    margin-right: 40px;
}
.quantity_box button {
    font-size: 2rem;
    color: var(--label-neutral);
    width: 30px;
    height: 30px;
    border: 1px solid var(--line-normal);
    border-radius: 4px;
    cursor: pointer;
}
.quantity_box input {
    font-size: 2rem;
    width: 50px;
    text-align: center;
}
.menu_input {
    margin-left: 10px;
}
/* 총 합계 */
.order_card {
    margin-bottom: 20px;
    margin: 0 20px 20px 20px; 
}
.order_card .quantity_group .quantity_box input {
    font-size: 1.6rem;
}
.order_card_head {
    background-color: white;
    border-radius: 10px;
    padding: 10px 30px 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 1px 5px 10px 3px rgba(0, 0, 0, 0.1);
}
.subtotal {
    font-size: 2rem;
    display: flex;
    justify-content: space-between;
    padding-right: 80px;
}
.actions {
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: var(--label-alternative);
}
.actions_in {
    display: flex;
    justify-content: right;
}
.actions_in button {
    font-size: 3rem;
    height: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s;
}
.actions_in button:hover {
    opacity: 1;
}
.btn-small {
    padding: 6px 10px;
    border: initial;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transform: translateY(-10px);
}
.btn-small:hover {
    background-color: initial;
}
.order_card_body {
    justify-content: space-between;
    display: flex;
    border-bottom: 1px solid var(--line-normal);
}
.quantity_group {
    margin-bottom: 10px;
}
.order_card_body .row {
    padding-bottom: 5px;
}
.qty {
    font-size: 2rem;
    font-weight: 800;
}
.quantity_group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.empty {
    text-align: center;
    opacity: 0.35;
}
/* 합계 */
.order_list_total {
    background-color: var(--primary-brown);
    color: white;
    border-radius: 10px;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 1px 5px 10px 3px rgba(0, 0, 0, 0.1);
    margin: 0 20px; 
    margin-bottom: 50px;
}
.order_list_total .row_txt {
    color: #7e7e7e;
}
.order_list_total .total {
    display: flex;
    justify-content: space-between;
    font-size: 3rem;
    margin-top: 10px;
}
/* 버튼 */
.add_btn {
    width: 100%;
    font-size: 1.8rem;
    color: var(--primary-orange);
    border: 1px solid var(--primary-orange);
    padding: 10px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
}
.add_btn:hover {
    background-color:var(--primary-orange);
    color: white;
}
.submit {
    width: 100%;
    font-size: 1.8rem;
    background-color: var(--primary-orange);
    color: white;
    border: 1px solid var(--primary-orange);
    padding: 10px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 40px 0;
    font-weight: 600;
}
.submit:hover {
    background-color:var(--primary-brown);
    color: white;
    border: 1px solid var(--primary-brown)
}
/****** 주문하기 입력창 section02 end ******/
/* 달력에 주문로그 뜨기 */
.day .badge_box {
  margin-top: 4px;
  display: flex;
  gap: 3px;
  justify-content: center;
}

.day .heat_num {
  background: #ff4d2d;
  color: white;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1;
}

.day .salad_num {
  background: #4caf50;
  color: white;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 1;
}
/* 달력에 주문로그 뜨기 end*/

/* ===============================
   기본 day
=============================== */
.day {
  position: relative;
  border-radius: 8px;
  transition: 0.15s ease;
}
/* ===============================
   ✅ 단일 선택 (연한 배경)
=============================== */
.day.selected {
  background: rgba(255, 81, 23, 0.15); /* 연함 */
  color: #FF5117;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 81, 23, 0.4);
}

/* ===============================
   ✅ 다중 선택 범위 (중간톤)
=============================== */
.day.selected-range {
  background: rgba(255, 81, 23, 0.35); /* 더 진함 */
  color: #fff;
}

/* 범위 테두리 */
.day.selected-range::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 6px;
  border: 2px solid #FF5117;
  pointer-events: none;
}

/* ===============================
   🔥 범위 시작 / 끝 (가장 진함)
=============================== */
.day.range-start,
.day.range-end {
  background: #FF5117;
  color: #fff;
  font-weight: 700;
}

/* 시작 / 끝 강조 링 */
.day.range-start::after,
.day.range-end::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 6px;
  border: 2px solid #fff;
  pointer-events: none;
}

/* ===============================
   주문 있음 표시
=============================== */
.day.has-order {
  background: var(--primary-orange);
  color: white;
}
/* 주문 + 선택 겹칠 때 */
.day.has-order.selected,
.day.has-order.selected-range {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* ===============================
   비활성
=============================== */
.day.disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ===== Modal base ===== */
.visual_tit {
  padding: 20px 0;
}
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  align-items: center; justify-content: center;
  z-index: 8889;
}
.modal-overlay.show { display: flex; }

.modal-card {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 70vw;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(2,6,23,.18);
  overflow: hidden;
  font-family: var(--cal-font, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial);
}

.modal-close {
  position: absolute; 
  top: 12px; right: 12px;
  border: 0; 
  background: transparent; 
  font-size: 18px; 
  cursor: pointer;
  opacity: .7;
}
.modal-close:hover { opacity: 1; }

.modal-header {
  position: relative;
  padding: 20px 24px 12px;
}
.modal-title  {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px; 
  color: var(--label-normal); 
  letter-spacing: .02em;
  font-weight: 600;
}
.modal-eyebrow{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 6px 0 0;
  font-size: 16px; 
  font-weight: 500; 
  color: var(--label-alternative);
  line-height: 1.3;
  padding-bottom: 10px;
}
/* 첫주문 ------------ */
.date-hidden-input {
  position: absolute; 
  left: 0;
  top: 50px;
  width: 1px; 
  height: 1px; 
  opacity: 0;
}
.modal-body {
  width: 70vw;
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
}
.modal-body-group {
  display: flex;
  gap: 20px;
  width: 70%;
}
.body-box {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.kv { 
  display: grid; 
  grid-template-columns: 120px 1fr; 
  gap: 8px 12px; 
  align-items: center; 
}
.k { color: #374151; font-weight: 600; font-size: 16px; }
.v { color: #111827; font-size: 16px; word-break: break-all; }
.input_form { 
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.kv_log {
  width: 30%;
  display: flex;
  flex-direction: column;
}
.modal-body hr {
  border: 0; 
  border-top: 1px dashed var(--line-normal); 
  margin: 10px 0;
}
.change-log {
  background-color: #f7f7f7;
  max-height: 460px;
  border-radius: 10px;
  overflow: auto; 
  padding-left: 0; 
  margin: 0; 
  list-style: none;
}
.change-log li {
  padding: 20px 10px; 
  border-bottom: 1px solid #eee; 
  line-height: 1.5;
}
.change-log li:last-child {
  border-bottom: 1px solid transparent; 
}
.change-log .log-el-pre {
  font-size: 13px; 
  padding : 4px 10px; 
  background-color: rgb(223, 223, 223);
  color: #767676; 
  border-radius: 100px;
}
.change-log .log-el-next {
  font-size:13px;
  padding : 4px 10px; 
  background-color: rgb(255, 218, 201);
  color: #FF5117; 
  border-radius: 100px;
}

.modal-footer {
  padding: 12px 24px 16px; 
  display: flex; 
  width: 100%;
  height: auto;
  justify-content: center; 
  gap: 8px;
  border-top: 1px solid var(--line-normal);
}
.btn.modal-ok {
  padding: 10px 40px; 
  border-radius: 100px; 
  border: 1px solid var(--line-normal); 
  background: #fff; 
  cursor: pointer;
  box-shadow: initial;
  transition: all 0.3s;
}
.btn.modal-ok:hover { 
    background: var(--primary-orange); 
    color: white;
    border: 1px solid var(--primary-orange); 
}
/* 팝업창-수정버튼 */
.modal-overlay .edit_btn {
    border-radius: 100px; 
    border: 1px solid var(--line-normal); 
    background: #fff; 
    box-shadow: initial;
    transition: all .3s;
    padding: 0 20px;
}
.modal-overlay .edit_btn:hover {
    background-color: var(--primary-orange);
    color: white;
    border: 1px solid var(--primary-orange);
}
.modal-overlay .edit_btn.active {
    background-color: var(--primary-brown);
    color: white;
    border: 1px solid var(--primary-brown);
}
/* 요일선택 css (2) */
/* --- 멀티 셀렉트 공통 --- */
.ms {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 100%;
  height: 34px;
  margin: 5px 0;
}
.ms-toggle {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.ms-toggle:after{
  content: "▾";
  float: right;
  opacity: .6;
}
.ms-toggle[aria-expanded="true"]:after{
  transform: rotate(180deg);
}

.ms-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  width: max-content;
  max-width: 90vw;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 10px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  display: flex;
}
.ms-menu label{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.ms-menu label:hover{
  background: #f7f7fb;
}
.ms-menu input[type="checkbox"]{
  accent-color: #3B82F6;
  transform: translateY(1px);
}
/* 수정가능한 input --------------- */
input[name="manager"],
input[name="company"],
input[name="dept"],
input[name="payment"] {
  width: 100%;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  outline: none;
  background:#fff;
  font-size: 16px;
}
input[name="addr"],
textarea[name="call"],
textarea[name="memo"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  outline: none;
  background:#fff;
  font-size: 16px;
  font-weight: 500;
}
#mPayment {
  margin-bottom: 10px;
}
/* 선택된 배지 영역 */
.ms-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  max-height: 200px;
}
.ms-tag{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #2f5aff;
}
.ms-tag .x{
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: .55;
}
.ms-tag .x:hover{ opacity: .95; }

/* 기존 .weekday-group 기본 레이아웃(드롭다운 내부로 이동됨) */
.wday{
  display:inline-flex; gap:4px; align-items:center;
  justify-content: center;
  padding:2px 6px; border-radius:6px; border:1px dashed #e5e7eb;
}

.weekday-group:not(.ms-menu) { display: none; }
.ms-menu[hidden] { display: none; }

/* 보류 라벨(체크박스) */
.wday.hold {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.wday.hold input[type="checkbox"] {
  accent-color: #ef4444;
}
.badge-hold {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 12px;
  line-height: 18px;
}

/* 보류 상태일 때 요일들 흐리게 */
.weekday-cell.is-hold .wday:not(.hold) {
  opacity: 0.45;
}
tr.row-on-hold {
  background: rgba(239, 68, 68, 0.04);
}

/* 페이지 넘김 번호 */
.page_number {
  display: flex;
  justify-content: center;
}
.page_number .action {
  padding: 10px 0;
}
.page_num {
  display: flex;
  flex-direction: row;
}
.page_num li {
  padding: 0 6px;
  cursor: pointer;
  color: #767676;
}
.page_num li:hover {
  font-weight: 700;
  color: var(--primary-orange);
}
.next_btn {
  color: #991b1b;
}

/* ==========정기주문 DB 보기테이블 스타일============= */
#ordersBody td {
  text-align: center;
  font-weight: 600;
  color: #374151;
  font-size: 16px;
}
.col-Reg div{
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 28px;
  text-align: center;
  border-radius: 999px;
  padding: 2px 12px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  line-height: 1;
  background-clip: padding-box;
}
/* 기본 셀렉트 모양을 배지처럼 */

/* 미정 */
.tag-basic {
  color: #6b7280;
  border-color: #e5e7eb;
}

/* 보류 */
.tag-stop {
  background: #e5e7eb;
  color: #6b7280;
  border-color: rgb(197, 197, 197);
}

/* 정기 */
.tag-regular{
  background: #e5f8e5;
  color: #00c070;
  border-color: #e5f8e5;
}

/* 비정기 */
.tag-adhoc{
  background: #f5eff4;
  color: #9452d1;
  border-color: #f5eff4;
}

/* 비활성 상태일 때 느낌 */
select.regular:disabled{
  cursor: not-allowed;
}
select.regular:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(47,90,255,.15);
}

.address_btn a {
  padding: 14px;
  border: 1px solid var(--line-normal);
  box-sizing: border-box;
  border-radius: 4px;
}

