@charset "utf-8";

.meal_wrap{
  --meal-navy:#0c3477;
  --meal-line:#e5e5ed;
  --meal-head:#f9f9f9;
  --meal-sun:#ff4141;
  --meal-sat:#215fe5;
  --meal-gray:#7e7e7e;
  --meal-today:#f8f8f8;
  position:relative;
  color:#222;
  letter-spacing:0;
  font-family: 'Pretendard';
  margin-top:20px;
}
.meal_wrap *,
.meal_wrap *::before,
.meal_wrap *::after{-webkit-box-sizing:border-box;box-sizing:border-box}


.meal_wrap .montit{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  height:70px;
  padding:0 30px;
  border:1px solid #e5e5ed;border:1px solid var(--meal-line);
  border-radius:20px 20px 0 0;
  background:#f6f7fb;
}
.meal_wrap .montit .schdulBtnGrp:first-child{grid-column:1;justify-self:start;}
.meal_wrap .montit h2{grid-column:2;justify-self:center;}
.meal_wrap .montit .schdulBtnGrp:last-child{grid-column:3;justify-self:end;}
.meal_wrap .montit h2{
  margin:0;
  color:#333;
  font-size:28px;
  line-height:1.2;
  font-weight:700;
  font-family: 'Pretendard';
}
.meal_wrap .montit a{
  display:-webkit-box;display:-ms-flexbox;display:flex;
  -webkit-box-align:center;-ms-flex-align:center;align-items:center;
  -webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;
  width:40px;height:40px;
  color:#333;font-size:22px;line-height:1;
  -webkit-transition:color 0.2s;transition:color 0.2s;
}
.meal_wrap .montit a:hover,
.meal_wrap .montit a:focus{color:#0c3477;color:var(--meal-navy)}
.meal_wrap .montit a:focus{outline:2px solid #0c3477;outline:2px solid var(--meal-navy);outline-offset:0}

.meal_wrap .montit .schdulBtnGrp{
  display:-webkit-box;display:-ms-flexbox;display:flex;
  -webkit-box-align:center;-ms-flex-align:center;align-items:center;
  gap:6px;
}
.meal_wrap .montit .schdulBtn{
  display:-webkit-box;display:-ms-flexbox;display:flex;
  -webkit-box-align:center;-ms-flex-align:center;align-items:center;
  -webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;
  height:35px;
  padding:0 14px;
  border:1px solid #0c3477;border:1px solid var(--meal-navy);
  border-radius:60px;
  background:#fff;
  color:#0c3477;color:var(--meal-navy);
  font-size:14px;line-height:1;font-weight:500;
  -webkit-transition:color 0.2s, background-color 0.2s;
  transition:color 0.2s, background-color 0.2s;
}
.meal_wrap .montit .schdulBtn:hover,
.meal_wrap .montit .schdulBtn:focus{background:#eef2fa}
.meal_wrap .montit .schdulBtn:focus{outline:2px solid #0c3477;outline:2px solid var(--meal-navy);outline-offset:2px}
.meal_wrap .montit .schdulBtnOn{
  background:#0c3477;background:var(--meal-navy);
  color:#fff;font-weight:700;
}
.meal_wrap .montit .schdulBtnOn:hover,
.meal_wrap .montit .schdulBtnOn:focus{background:#0c3477;background:var(--meal-navy)}

.meal_wrap .meal_tab{
  display:-webkit-box;display:-ms-flexbox;display:flex;
  -webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;
  -webkit-box-align:center;-ms-flex-align:center;align-items:center;
  gap:10px;
  height:65px;
  padding:10px 20px;
  border:1px solid #e0e0e0;border-top:0;
}
.meal_wrap .meal_tab li{min-width:0}
.meal_wrap .meal_tab a{
  display:-webkit-box;display:-ms-flexbox;display:flex;
  -webkit-box-align:center;-ms-flex-align:center;align-items:center;
  -webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;
  width:80px;height:35px;
  border:1px solid #0c3477;border:1px solid var(--meal-navy);
  border-radius:60px;
  background:#fff;
  color:#0c3477;color:var(--meal-navy);
  font-size:16px;line-height:1.5;font-weight:500;
  -webkit-transition:color 0.2s, background-color 0.2s;
  transition:color 0.2s, background-color 0.2s;
}
.meal_wrap .meal_tab a:hover,
.meal_wrap .meal_tab a:focus{background:#eef2fa;background:#eef2fa}
.meal_wrap .meal_tab a:focus{outline:2px solid #0c3477;outline:2px solid var(--meal-navy);outline-offset:2px}
.meal_wrap .meal_tab .btn_today{margin-right:auto}
.meal_wrap .meal_tab .btn_today a,
.meal_wrap .meal_tab .btn_today a:hover,
.meal_wrap .meal_tab .btn_today a:focus{
  background:#0c3477;background:var(--meal-navy);
  color:#fff;font-weight:700;
}
.meal_wrap .meal_tab .on a,
.meal_wrap .meal_tab .on a:hover,
.meal_wrap .meal_tab .on a:focus{
  background:#0c3477;background:var(--meal-navy);
  color:#fff;font-weight:700;
}

.meal_wrap .monthcal{position:relative;width:100%}
.meal_wrap .monmain{
  border:1px solid #e5e5ed;border:1px solid var(--meal-line);
  border-top:0;
}
.meal_wrap .monmain table{width:100%;table-layout:fixed}
.meal_wrap .monmain caption{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0;
}
.meal_wrap .monmain thead th{
  height: 80px;
  padding:0;
  border-right: 1px solid #dedee2;
  border-bottom:1px solid #dedee2;
  background:#f9f9f9;
  background:var(--meal-head);
  color:#000;
  font-size:20px;
  line-height:1.75;
  font-weight:600;
  text-align:center;
}
.meal_wrap .monmain thead th:first-child{color:#ff4141;color:var(--meal-sun)}
.meal_wrap .monmain thead th:last-child{color:#215fe5;color:var(--meal-sat); border-right:transparent;}
.meal_wrap .monmain tbody td{
  height: 80px;
  padding:3px 5px 12px;
  border-right:1px solid #e5e5ed;
  border-right:1px solid var(--meal-line);
  border-bottom:1px solid #e5e5ed;
  border-bottom:1px solid var(--meal-line);
  vertical-align:top;
  text-align:left;
  word-break:keep-all;
  word-wrap:break-word;
  overflow-wrap:break-word;
}
.meal_wrap .monmain tbody td:last-child{border-right:0}
.meal_wrap .monmain tbody tr:last-child td{border-bottom:0}
.meal_wrap .monmain tbody td em{
  display:block;
  padding-left:4px;
  color:#000;
  font-size:18px;
  line-height:1.944;
  font-weight:500;
  font-style: normal;
}
.meal_wrap .monmain tbody td.sun em{color:#ff4141;color:var(--meal-sun)}
.meal_wrap .monmain tbody td.sat em{color:#215fe5;color:var(--meal-sat)}
.meal_wrap .monmain tbody td.other em{color:#7e7e7e;color:var(--meal-gray)}
.meal_wrap .monmain tbody td.today{background:#f8f8f8;background:var(--meal-today)}
.meal_wrap .monmain tbody td.today em{color:#0c3477;color:var(--meal-navy);font-weight:700}
.meal_wrap .monmain tbody td .wk{display:none}
.meal_wrap .monmain tbody td .meal_lst{
  color:#222;font-size:16px;line-height:1.2;font-weight:400;
}

/* 일정 목록 (요일 라벨, 자리배치 등은 위 공통 규칙 재사용) */
.meal_wrap .monmain tbody td .schdulLst{
  display:-webkit-box;display:-ms-flexbox;display:flex;
  -webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;
  gap:3px;
  margin:4px 0 0;
  padding:0 4px 0 0;
  list-style:none;
}
.meal_wrap .monmain tbody td .schdulEvnt{
  display:block;
  padding:2px 6px;
  border-left:3px solid #999;
  border-radius:3px;
  font-size:13px;
  line-height:1.4;
  font-weight:500;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  cursor:pointer;
}
.meal_wrap .monmain tbody td .schdulEvnt:hover,
.meal_wrap .monmain tbody td .schdulEvnt:focus{
  filter:brightness(0.97);
  outline:2px solid #000;
  outline-offset:1px;
}
.meal_wrap .monmain tbody td .schdulEvnt img{
  width:14px;height:14px;
  margin-right:3px;
  vertical-align:-2px;
}
.meal_wrap .monmain tbody td .schdulMore{
  padding:2px 6px;
  color:#7e7e7e;color:var(--meal-gray);
  font-size:12px;
  font-weight:500;
  cursor:pointer;
}
.meal_wrap .monmain tbody td .schdulMore:hover,
.meal_wrap .monmain tbody td .schdulMore:focus{
  text-decoration:underline;
}

@media (max-width:1240px){
  .meal_wrap .monmain tbody td .meal_lst{font-size:15px}
}
@media (max-width:1024px){
  .meal_wrap .montit h2{font-size:26px}
}
@media (max-width:900px){
  .meal_wrap .monmain table,
  .meal_wrap .monmain tbody{display:block}
  .meal_wrap .monmain table colgroup,
  .meal_wrap .monmain table thead{display:none}
  .meal_wrap .monmain tbody{
    max-height:560px;overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  .meal_wrap .monmain tbody tr{
    display:-webkit-box;display:-ms-flexbox;display:flex;
    -webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;
    width:100%;
  }
  .meal_wrap .monmain tbody td{
    display:block;
    height:auto;min-height:48px;
    padding:12px 20px 16px;
    border-right:0;
  }
  .meal_wrap .monmain tbody tr:last-child td:last-child{border-bottom:0}
  .meal_wrap .monmain tbody td.no_data{display:none}
  .meal_wrap .monmain tbody td em{display:inline-block;padding-left:0;line-height:1.5}
  .meal_wrap .monmain tbody td .wk{
    display:inline-block;margin-left:6px;
    color:#7e7e7e;color:var(--meal-gray);font-size:14px;line-height:1.5;
  }
  .meal_wrap .monmain tbody td.sun .wk{color:#ff4141;color:var(--meal-sun)}
  .meal_wrap .monmain tbody td.sat .wk{color:#215fe5;color:var(--meal-sat)}
  .meal_wrap .monmain tbody td .meal_lst{margin-top:6px;font-size:16px;line-height:1.45}
  .meal_wrap .monmain tbody td .schdulEvnt{white-space:normal}
}
@media (max-width:768px){
  .meal_wrap .montit{height:58px;padding:0 16px;border-radius:14px 14px 0 0}
  .meal_wrap .montit h2{font-size:24px}
  .meal_wrap .meal_tab{padding:8px 14px}
}
@media (max-width:640px){
  .meal_wrap .meal_tab{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}
  .meal_wrap .meal_tab .btn_today{margin-right:0}
  .meal_wrap .monmain tbody{max-height:440px}
}
@media (max-width:480px){
  .meal_wrap .montit h2{font-size:22px}
  .meal_wrap .meal_tab li{-webkit-box-flex:1;-ms-flex:1 1 0;flex:1 1 0}
  .meal_wrap .meal_tab a{width:100%}
  .meal_wrap .monmain tbody td{padding:8px 14px 12px}
}
