@charset "utf-8";

/* ==========================================================
   공통 레이아웃 — 헤더 / 본문 / 푸터 / 스킵 네비
   ========================================================== */

/* 스킵 네비게이션 (스크린리더/키보드 접근성) */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--gry90);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-nav:focus {
  top: 0;
  outline: 2px solid #f9b04a;
  outline-offset: 2px;
}

/* 공통 컨테이너 */
.wrap {
  margin: 0 auto;
  padding: 0 40px 80px;
  width: 100%;
  max-width: 1762px;
  box-sizing: border-box;
}

/* 스크린리더 전용 */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 본문 잠금 (드로어 열렸을 때) */
body.is-locked {
  overflow: hidden;
}

/* ==========================================================
   헤더
   ========================================================== */
header {
  height: 90px;
  background: #fff;
  border-bottom: 1px solid #e1e4e8;
}
.header-inner {
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-inner .logo {
  margin: 0;
  line-height: 1;
}
.header-inner .logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 90px;
  height: 54px;
  text-decoration: none;
  background: url("../img/logo.svg") no-repeat left center;
  background-size: contain;
}
.logo .logo-text {
  color: #222;
  font-size: 2.4rem;
  font-weight: 700;
}

/* 우측 메뉴 영역 */
.header-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* 주간 출석현황 */
.header-menu .attendance {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.header-menu .attendance a {
  padding: 4px 8px;
  text-align: center;
  border-radius: 6px;
}
.header-menu .attendance a:hover {
  background-color: var(--gry10);
}
.header-menu .attendance-days {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
  list-style: none;
}
.header-menu .attendance-days .day {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--gry50);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  border: 1px solid var(--gry20);
  background-color: var(--wht);
}
.header-menu .attendance-days .day em {
  display: none;
}
.header-menu .attendance-days .day.done {
  color: var(--wht);
  border: 1px solid transparent;
  background: var(--primary50);
}
.header-menu .attendance-days .day.done::after {
  content: "";
  position: absolute;
  background-size: 26px 26px;
}
.header-menu .attendance-days li:has(span.today) {
  margin-right: 10px;
}
.header-menu .attendance-days .day.today {
  border: 1px solid var(--gry90);
  color: var(--gry90);
}
.header-menu .attendance-days .day.today em {
  position: absolute;
  right: -16px;
  bottom: -1px;
  display: block;
  padding: 0 3px;
  border-radius: 4px;
  color: var(--wht);
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 700;
  background-color: var(--gry90);
  z-index: 1;
}
.header-menu .attendance-days .day.holiday {
  color: var(--gry65);
  background: var(--gry20);
}
.header-menu .attendance-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gry90);
}

/* 농장 */
.header-menu .farm-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 8px;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
}
.header-menu .farm-info:hover {
  background-color: var(--gry10);
}
.header-menu .farm-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}
.header-menu .farm-count em {
  color: var(--primary60);
  font-style: normal;
  font-size: 2.4rem;
  margin-right: 2px;
}
.header-menu .farm-label {
  margin-top: 3px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gry90);
}

/* 사용자 */
.header-menu .user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
}
.header-menu .user-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--gry20);
  background: var(--gry10)
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23555" stroke-width="2"><circle cx="12" cy="9" r="3.5"/><path d="M5 20c1.5-4 4-5 7-5s5.5 1 7 5"/></svg>')
    no-repeat center;
  background-size: 24px;
}
.header-menu .user-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gry90);
}
.header-menu .user-info:hover {
  background-color: var(--gry10);
}

/* 메뉴 버튼 */
.menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 6px;
  border: 0;
  background: transparent;
}
.menu-btn:hover {
  background-color: var(--gry10);
}
.menu-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 8px 0;
  width: 18px;
  height: 14px;
}
.menu-icon span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--gry90);
}
.menu-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gry90);
}

/* ==========================================================
   사이드 드로어 (전체 메뉴)
   ========================================================== */
.side-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s;
}
.side-overlay.is-open {
  opacity: 1;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.side-menu.is-open {
  box-shadow: -6px 0 28px rgba(0, 0, 0, 0.15);
  transform: translateX(0);
}

.side-head {
  position: relative;
  padding: 40px 39px 32px;
  border-bottom: 1px solid #eee;
  background-color: var(--gry5);
}
.side-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 2.4rem;
  cursor: pointer;
  color: #1e2124;
}
.side-close:hover,
.side-close:focus {
  background: #f1f3f5;
}

.side-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.side-user .side-user-info {
  margin-top: 7px;
}
.side-avatar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  color: var(--gry90);
  border: 1px solid var(--gry20);
  background-color: var(--gry10);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 32px 34px;
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13.46 15.56'%3E%3Cg fill='none' stroke='%23b1b8be' stroke-linecap='square' stroke-linejoin='round' stroke-width='1.6px'%3E%3Cpath class='cls-1' d='m6.73.8c2.14,0,3.89,1.74,3.89,3.89,0,2.14-1.74,3.89-3.89,3.89s-3.89-1.74-3.89-3.89S4.59.8,6.73.8Z'/%3E%3Cpath class='cls-1' d='m.8,14.76c0-3.27,2.66-5.93,5.93-5.93,3.27,0,5.93,2.66,5.93,5.93'/%3E%3C/g%3E%3C/svg%3E");
}
.side-avatar .ico-edit {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 28px;
  height: 28px;
  font-size: 0;
  color: transparent;
  border-radius: 50%;
  border: 1px solid var(--gry20);
  background-color: var(--wht);
  background-position: center;
  background-size: 12px 14px;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12.03 13.6'%3E%3Cg fill='none' stroke='%232a2d30' stroke-linecap='square' stroke-linejoin='round' stroke-width='1.6px'%3E%3Cg%3E%3Cpolygon class='cls-1' points='.82 11.16 1.84 7.86 4.17 10.2 .82 11.16'/%3E%3Cg%3E%3Crect class='cls-1' x='1.75' y='4.34' width='8.59' height='3.3' transform='translate(-2.47 6.03) rotate(-45)'/%3E%3Cpath class='cls-1' d='m10.94,2.02l-.93-.93c-.39-.39-1.01-.39-1.4,0l-.7.7,2.34,2.34.7-.7c.39-.39.39-1.01,0-1.4Z'/%3E%3C/g%3E%3C/g%3E%3Cline class='cls-1' x1='.8' y1='12.8' x2='11.22' y2='12.8'/%3E%3C/g%3E%3C/svg%3E");
}
.side-user-name {
  font-size: 2.8rem;
  font-weight: 700;
  color: #1e2124;
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-user-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  color: var(--gry90);
  font-size: 1.5rem;
  font-weight: 400;
  border-radius: 12px;
  background: #f7d56e;
}
.side-user-tag.night {
  color: var(--wht);
  background-color: var(--gry50);
}
.side-user-tag::before {
  display: block;
  content: "";
  margin-right: 5px;
  width: 12px;
  height: 12px;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13.2 13.2'%3E%3Cg fill='none' stroke='%231e2124' stroke-linecap='square' stroke-linejoin='round' stroke-width='1.2px'%3E%3Ccircle cx='6.6' cy='6.6' r='3.2'/%3E%3Cline x1='6.6' y1='.6' x2='6.6' y2='1.75'/%3E%3Cline x1='6.6' y1='11.45' x2='6.6' y2='12.6'/%3E%3Cline x1='12.6' y1='6.6' x2='11.45' y2='6.6'/%3E%3Cline x1='1.75' y1='6.6' x2='.6' y2='6.6'/%3E%3Cline x1='10.84' y1='2.36' x2='10.03' y2='3.17'/%3E%3Cline x1='3.17' y1='10.03' x2='2.36' y2='10.84'/%3E%3Cline x1='10.84' y1='10.84' x2='10.03' y2='10.03'/%3E%3Cline x1='3.17' y1='3.17' x2='2.36' y2='2.36'/%3E%3C/g%3E%3C/svg%3E");
}
.side-user-tag.night::before {
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11.18 11.72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-linecap='square' stroke-linejoin='round' stroke-width='1.2px'%3E%3Cpath class='cls-1' d='m8.09,9.25c-1.88,0-3.4-1.52-3.4-3.4s1.52-3.4,3.4-3.4c.99,0,1.87.43,2.49,1.1-.85-1.75-2.65-2.96-4.73-2.96C2.95.6.6,2.95.6,5.86s2.35,5.26,5.26,5.26c2.08,0,3.87-1.21,4.73-2.96-.62.67-1.5,1.1-2.49,1.1Z'/%3E%3C/g%3E%3C/svg%3E");
}
.side-user-sub {
  font-size: 1.5rem;
  color: var(--gry70);
  margin-top: 2px;
}

.side-actions {
  display: flex;
  gap: 8px;
}
.side-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 11px;
  height: 40px;
  line-height: 40px;
  font-size: 1.7rem;
  border: 1px solid var(--gry90);
  border-radius: 6px;
  text-decoration: none;
  color: var(--gry90);
  background: var(--wht);
}
.side-action:hover,
.side-action:focus {
  background: var(--gry10);
}
.side-action .ico-gear,
.side-action .ico-logout {
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.side-action .ico-logout {
  width: 16px;
  height: 16px;
}
.side-action .ico-gear {
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 19.6 18.14'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: none; stroke: %231e2124; stroke-linejoin: round; stroke-width: 1.6px; %7D %3C/style%3E%3C/defs%3E%3Cg%3E%3Cpath class='cls-1' d='m9.8,16.67c.52,0,1.03-.06,1.53-.16.39-.08.79.08,1.03.41h0c.31.43.9.55,1.36.29l1.17-.68c.46-.27.65-.84.43-1.32h0c-.16-.37-.1-.8.17-1.11.67-.76,1.19-1.65,1.52-2.62.13-.38.47-.65.87-.69h0c.53-.06.93-.5.93-1.03v-1.35c0-.53-.4-.98-.93-1.03h0c-.4-.04-.74-.31-.87-.7-.33-.98-.85-1.87-1.52-2.62-.27-.3-.33-.73-.17-1.1h0c.22-.49.03-1.06-.43-1.33l-1.17-.68c-.46-.27-1.05-.14-1.36.29h0c-.24.32-.64.49-1.03.41-.49-.1-1-.16-1.53-.16s-1.03.06-1.53.16c-.39.08-.79-.08-1.03-.41h0c-.31-.43-.9-.55-1.36-.29l-1.17.68c-.46.27-.65.84-.43,1.32h0c.16.37.1.8-.17,1.11-.67.76-1.19,1.65-1.52,2.62-.13.38-.47.65-.87.69h0c-.53.06-.93.5-.93,1.03v1.35c0,.53.4.98.93,1.03h0c.4.04.74.31.87.69.33.98.85,1.87,1.52,2.62.27.3.33.73.17,1.1h0c-.22.49-.03,1.06.43,1.33l1.17.68c.46.27,1.05.14,1.36-.29h0c.24-.32.64-.49,1.03-.41.49.1,1,.16,1.53.16Z'/%3E%3Ccircle class='cls-1' cx='9.8' cy='9.07' r='3.94'/%3E%3C/g%3E%3C/svg%3E");
}
.side-action .ico-logout {
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15.79 15.6'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: none; stroke: %231e2124; stroke-linejoin: round; stroke-width: 1.6px; %7D %3C/style%3E%3C/defs%3E%3Cg%3E%3Cpath class='cls-1' d='m11.32,11.87l3.37-3.37c.39-.39.39-1.02,0-1.41l-3.37-3.37'/%3E%3Cline class='cls-1' x1='14.54' y1='7.79' x2='4.94' y2='7.79'/%3E%3Cpath class='cls-1' d='m7.34,14.8H1.8c-.55,0-1-.45-1-1V1.8c0-.55.45-1,1-1h5.54'/%3E%3C/g%3E%3C/svg%3E");
}

.side-nav {
  padding: 20px 10px 40px;
}
.side-section-title {
  font-size: 1.5rem;
  color: var(--gry70);
  font-weight: 700;
  padding: 16px 32px 8px;
}
.side-section-title ~ .side-section-title {
  padding-top: 33px;
}
.side-nav ul {
  list-style: none;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 30px;
  border-radius: 10px;
  color: #1e2124;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 500;
}
.side-link:hover,
.side-link:focus {
  background: #f6f8fa;
}
.side-link.is-current {
  color: #1e2124;
  font-weight: 700;
  background: var(--primary10);
}
.side-link-ico {
  width: 22px;
  height: 22px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}
.side-link-ico.ico-video {
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25.96 24'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: none; stroke: %231e2124; stroke-linecap: square; stroke-linejoin: round; stroke-width: 2px; %7D %3C/style%3E%3C/defs%3E%3Cg %3E%3Crect class='cls-1' x='1' y='1' width='23.96' height='16.67' rx='2' ry='2'/%3E%3Cg%3E%3Cline class='cls-1' x1='14.24' y1='17.79' x2='14.24' y2='22.39'/%3E%3Cline class='cls-1' x1='11.72' y1='22.39' x2='11.72' y2='17.79'/%3E%3C/g%3E%3Cline class='cls-1' x1='8.19' y1='23' x2='17.77' y2='23'/%3E%3Cpath class='cls-1' d='m10.61,11.97v-5.27c0-.48.51-.79.94-.57l3.46,2.63c.45.24.45.89,0,1.13l-3.46,2.64c-.43.23-.94-.08-.94-.57Z'/%3E%3C/g%3E%3C/svg%3E");
}
.side-link-ico.ico-history {
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25.11 23.61'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: none; stroke: %231e2124; stroke-linejoin: round; stroke-width: 2px; %7D %3C/style%3E%3C/defs%3E%3Cg%3E%3Cg%3E%3Cpath class='cls-1' d='m4.07,2.39h-1.68c-.77,0-1.39.62-1.39,1.39v17.45c0,.77.62,1.39,1.39,1.39h8.06'/%3E%3Cpath class='cls-1' d='m16.84,2.39h1.66c.77,0,1.39.62,1.39,1.39v4.37'/%3E%3Cpath class='cls-1' d='m14.73,5.16H6.16c-.6,0-1.13-.38-1.32-.95l-.77-2.3c-.15-.45.18-.91.66-.91h11.41c.47,0,.81.46.66.91l-.77,2.3c-.19.57-.72.95-1.32.95Z'/%3E%3C/g%3E%3Cg%3E%3Cpath class='cls-1' d='m18.36,11.12c3.17,0,5.74,2.58,5.74,5.74s-2.58,5.74-5.74,5.74-5.74-2.58-5.74-5.74,2.58-5.74,5.74-5.74Z'/%3E%3Cpolyline class='cls-1' points='20.66 18.21 18.36 17.25 18.36 13.47'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.side-link-ico.ico-attend {
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25.78 23.36'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: none; stroke: %231e2124; stroke-linejoin: round; stroke-width: 2px; %7D %3C/style%3E%3C/defs%3E%3Cg%3E%3Cpath class='cls-1' d='m9.91,22.36H2.38c-.76,0-1.38-.65-1.38-1.45V3.45c0-.8.62-1.45,1.38-1.45h17.08c.76,0,1.38.65,1.38,1.45v7.06'/%3E%3Cline class='cls-1' x1='5.83' y1='3.93' x2='5.83'/%3E%3Cline class='cls-1' x1='16.01' y1='3.93' x2='16.01'/%3E%3Cline class='cls-1' x1='1' y1='7.42' x2='20.84' y2='7.42'/%3E%3Cpolyline class='cls-1' points='13.1 17.82 18.19 22.26 25 13.79'/%3E%3C/g%3E%3C/svg%3E");
}
.side-link-ico.ico-farm {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25.91 24'%3E%3Cg fill='none' stroke='%231e2124' stroke-linejoin='round' stroke-width='2px'%3E%3Cpath class='cls-1' d='m11.33,14.56v-7.32l5.41-5.6c.1-.11.13-.27.08-.41-.06-.14-.19-.23-.33-.23H6.88c-.1,0-.19.04-.26.11L1.11,6.82c-.07.07-.11.17-.11.26v7.47'/%3E%3Cpath class='cls-1' d='m16.82,1.23l5.51,5.59c.07.07.11.17.11.26v8.44'/%3E%3Cpath class='cls-1' d='m14.27,14.71v-5.86c0-.21.16-.37.36-.37h4.55c.2,0,.36.17.36.37v5.86'/%3E%3Cline class='cls-1' x1='11.43' y1='7.46' x2='1.36' y2='7.46'/%3E%3Cpath class='cls-1' d='m24.91,23H1v-8.4h15.98c5.65,0,7.93,2.29,7.93,5.32v3.09Z'/%3E%3Cpath class='cls-1' d='m1,18.66h15.98c3.91,0,6.2,1.09,7.25,2.77.2.32.35.65.46,1.01'/%3E%3C/g%3E%3C/svg%3E");
}
.side-link-ico.ico-msg {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%231e2124" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 6l9 7 9-7"/><rect x="3" y="5" width="18" height="14" rx="2"/></svg>');
}
.side-link-ico.ico-info {
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: none; stroke: %231e2124; stroke-linejoin: round; stroke-width: 2px; %7D %3C/style%3E%3C/defs%3E%3Cg %3E%3Cg%3E%3Cpath class='cls-1' d='m12,23c-6.07,0-11-4.93-11-11S5.93,1,12,1s11,4.93,11,11-4.93,11-11,11Z'/%3E%3Cpath class='cls-1' d='m12.76,7.96c0,.42-.34.76-.76.76s-.76-.34-.76-.76.34-.76.76-.76.76.34.76.76Z'/%3E%3Cline class='cls-1' x1='12' y1='10.78' x2='12' y2='18.13'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.side-link-ico.ico-notice {
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 23.88'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: none; stroke: %231e2124; stroke-linejoin: round; stroke-width: 2px; %7D %3C/style%3E%3C/defs%3E%3Cg %3E%3Cpath class='cls-1' d='m21.37,6.89c2.1.67,3.63,2.63,3.63,4.96s-1.64,4.44-3.87,5.03'/%3E%3Cpath class='cls-1' d='m21.13,1.53v21.34l-12.19-4.74c-.2-.08-.41-.12-.63-.12H2.55c-.86,0-1.55-.69-1.55-1.55V7.41c0-.86.69-1.55,1.55-1.55h5.77c.21,0,.43-.04.62-.12L21.13,1v.53Z'/%3E%3Cline class='cls-1' x1='8.32' y1='5.86' x2='8.32' y2='18.14'/%3E%3C/g%3E%3C/svg%3E");
}
.side-link-ico.ico-qna {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 25.38 23.97'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: none; stroke: %231e2124; stroke-linejoin: round; stroke-width: 2px; %7D %3C/style%3E%3C/defs%3E%3Cg data-name='Layer 1'%3E%3Cpath class='cls-1' d='m1,19.07V3.5c0-1.38,1.12-2.5,2.5-2.5h13.34c1.38,0,2.5,1.12,2.5,2.5v7.67c0,1.38-1.12,2.5-2.5,2.5H5.35l-4.35,5.4Z'/%3E%3Cpath class='cls-1' d='m6.04,13.44v2.63c0,1.38,1.12,2.5,2.5,2.5h11.48s4.35,4.4,4.35,4.4v-14.57c0-1.38-1.12-2.5-2.5-2.5h-2.27'/%3E%3C/g%3E%3C/svg%3E");
}

/* ==========================================================
   본문 영역
   ========================================================== */
#container {
  min-height: calc(100vh - 275px);
}
main.wrap {
  position: relative;
  padding: 40px 40px 65px;
  z-index: 1;
}
main.wrap::before {
  position: absolute;
  top: 0;
  left: -30%;
  content: "";
  width: 300%;
  height: 550px;
  background: linear-gradient(
    0deg,
    rgba(239, 244, 249, 0) 30%,
    rgba(239, 244, 249, 1) 100%
  );
}

/* ==========================================================
   푸터
   ========================================================== */
footer {
  padding: 36px 0 0;
  border-top: 1px solid var(--gry20);
  color: #666;
  font-size: 1.4rem;
  background: var(--gry5);
}
.footer-inner {
  display: flex;
  gap: 0 40px;
  flex-wrap: wrap;
  padding: 0 40px;
}
.footer-logo {
  width: 198px;
  height: 42px;
  color: transparent;
  font-size: 0;
  background: url("../img/foot_logo.png") no-repeat;
  background-size: contain;
  margin-top: 8px;
}
.footer-info {
  font-style: normal;
  line-height: 1.8;
  font-size: 1.7rem;
  color: var(--gry90);
  margin-bottom: 32px;
}
.footer-info .ft-label {
  display: inline-block;
  min-width: 50px;
  font-weight: 700;
  color: var(--gry90);
}
.footer-info .devide {
  margin: 0 15px;
  display: inline-block;
  width: 1px;
  height: 14px;
  vertical-align: middle;
  background-color: var(--gry20);
}
.footer-links {
  display: flex;
  gap: 18px;
  list-style: none;
  font-size: 1.5rem;
}
.footer-links a {
  color: var(--gry90);
  text-decoration: none;
}
.footer-links a:hover,
.footer-links a:focus {
  text-decoration: underline;
}
.footer-links a strong {
  color: var(--primary60);
}

.footer-call {
  margin-top: auto;
  text-align: right;
}
.ft-call-label {
  font-size: 1.5rem;
  color: #555;
}
.footer-call strong {
  display: block;
  font-size: 3.6rem;
  color: #2e5db8;
  margin-top: 4px;
  font-weight: 700;
}
.footer-call strong a {
  color: inherit;
  text-decoration: none;
}
.copyright {
  font-size: 1.5rem;
  color: var(--gry70);
}
.footer-bottom {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-top: 1px solid var(--gry20);
}

/* ==========================================================
   프로필 동물 바꾸기 팝업
   ========================================================== */
.side-avatar {
  cursor: pointer;
  transition:
    box-shadow 0.15s,
    transform 0.15s,
    border-color 0.15s;
}
.side-avatar:hover,
.side-avatar:focus {
  border-color: var(--primary50);
  box-shadow: 0 4px 12px rgba(39, 117, 212, 0.18);
}

.avatar-pop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.avatar-pop-overlay.is-open {
  opacity: 1;
}

.avatar-pop {
  position: fixed;
  top: 222px;
  right: 102px;
  width: 92%;
  max-width: 545px;
  border: 1px solid var(--gry30);
  border-radius: 16px;
  opacity: 0;
  overflow: hidden;
  background: #fff;
  transform: translate(-50%, -48%);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  z-index: 1001;
}
.avatar-pop.is-open {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.avatar-pop-head {
  position: relative;
  padding: 20px;
}
.avatar-pop-title {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gry90);
}
.avatar-pop-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gry70);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}
.avatar-pop-close:hover,
.avatar-pop-close:focus {
  background: var(--gry5);
}

.avatar-pop-body {
  padding: 0 20px 8px;
}
.avatar-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px 5px;
}
.avatar-grid > li {
  margin: 0;
  width: 80px;
  height: 80px;
}

.avatar-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gry10);
  border-radius: 15px;
  background: var(--gry5);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
button.avatar-item:hover,
button.avatar-item:focus {
  border: 1px solid var(--gry90);
  background: #fff;
  outline: none;
  box-shadow: 0px 10px 16px 0px rgba(68, 68, 68, 0.16);
}
.avatar-item.is-selected,
.avatar-item.is-selected:hover {
  border: 2px solid var(--primary50);
  background: #fff;
}
.avatar-item.is-selected .avatar-lock-text,
.avatar-item.is-has .avatar-lock-text {
  display: none;
}
.avatar-item.is-locked {
  background: var(--gry10);
  border-color: var(--gry10);
  cursor: not-allowed;
}
/* 잠금 항목 위에 어두운 오버레이 + 안내 텍스트 */
.avatar-item.is-locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244, 245, 246, 0.72);
}
.avatar-item.is-locked .avatar-img {
  filter: grayscale(60%);
}

.avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  pointer-events: none;
  user-select: none;
}

.avatar-lock-text {
  position: absolute;
  z-index: 1;
  display: block;
  color: var(--gry90);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  word-break: keep-all;
}

/* 사이드 아바타에 동물 이미지를 띄울 때 */
.side-avatar.has-image {
  padding: 0;
  overflow: hidden;
  font-size: 0;
  color: transparent;
}
.side-avatar .side-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.avatar-pop-foot {
  display: flex;
  justify-content: flex-end;
  padding: 16px 28px 22px;
}
.avatar-pop-btn {
  min-width: 80px;
  height: 42px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.avatar-pop-btn.is-primary {
  background: var(--primary50);
  color: #fff;
  border-color: var(--primary50);
}
.avatar-pop-btn.is-primary:hover,
.avatar-pop-btn.is-primary:focus {
  background: var(--primary60);
  border-color: var(--primary60);
}
.avatar-pop-btn.btn line-dark {
  background: #fff;
  color: var(--gry70);
  border-color: var(--gry20);
}
.avatar-pop-btn.btn line-dark:hover,
.avatar-pop-btn.btn line-dark:focus {
  background: var(--gry5);
  color: var(--gry90);
}

/* 팝업 포커스 가시성 */
.avatar-item:focus-visible,
.avatar-pop-close:focus-visible,
.avatar-pop-btn:focus-visible {
  outline: 3px solid #2e5db8;
  outline-offset: 2px;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .avatar-pop,
  .avatar-pop-overlay,
  .avatar-item,
  .side-avatar {
    transition: none !important;
  }
}

/* ==========================================================
   반응형
   ========================================================== */
@media (max-width: 1280px) {
  .wrap {
    padding: 0 24px 40px;
  }
  .header-menu {
    gap: 20px;
  }
  .header-inner {
    padding-bottom: 0;
  }
}
@media (max-width: 1080px) {
  .avatar-pop {
    right: 204px;
    width: 324px;
  }
  .avatar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .avatar-grid li {
    width: 60px;
    height: 60px;
  }
}
@media (max-width: 960px) {
  header {
    height: auto;
    padding: 12px 0;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  .header-menu {
    gap: 16px;
  }
  .header-menu .farm-info {
    display: none;
  }
  .footer-inner {
    flex-direction: column;
  }
  .footer-call {
    text-align: left;
  }

  .avatar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 767px) {
  header {
    padding: 6px 0 2px;
  }
  .header-inner {
    padding: 0 15px;
  }
  .header-inner .logo a {
    padding-left: 52px;
  }
  .header-inner .logo .logo-text {
    display: none;
  }
  .header-menu {
    gap: 5px;
  }
  .header-menu .user-name,
  .header-menu .menu-label {
    font-size: 1.4rem;
  }
  .header-menu .user-icon {
    width: 24px;
    height: 24px;
  }
  .header-menu .menu-icon {
    margin: 4px 0;
  }
  .header-menu .attendance {
    position: absolute;
    left: 50%;
    top: 84px;
    padding: 0 15px;
    width: calc(100% - 30px);
    height: 48px;
    border: 1px solid var(--gry20);
    border-radius: 10px;
    background-color: var(--wht);
    transform: translateX(-50%);
    z-index: 2;
  }
  .header-menu .attendance a {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
  }
  .header-menu .attendance-days {
    margin-bottom: 0;
  }
  .header-menu .attendance-days .day {
    width: 24px;
    height: 24px;
    font-size: 1.4rem;
  }
  .header-menu .attendance-days li:has(span.today) {
    margin-right: 17px;
  }
  .header-menu .attendance-days .day.today em {
    right: -22px;
  }
  #container {
    padding-top: 75px;
  }
  #container .wrap {
    padding: 0 15px 40px;
  }
  footer {
    padding-top: 12px;
  }
  .footer-logo {
    width: 157px;
  }
  .footer-inner {
    padding: 0 15px;
  }
  .footer-info {
    margin-top: 8px;
    margin-bottom: 20px;
    font-size: 1.4rem;
  }
  .footer-info .address {
    margin-bottom: 7px;
  }
  .footer-info .devide {
    display: block;
    width: 0;
    height: 0;
  }
  .footer-links {
    font-size: 1.4rem;
  }
  .footer-bottom {
    flex-wrap: wrap;
  }
  .footer-bottom .copyright {
    flex: 1 1 100%;
    margin-top: 5px;
    font-size: 1.4rem;
  }
  .avatar-pop {
    top: 330px;
    right: 0%;
  }
}
@media (max-width: 480px) {
  .avatar-pop {
    top: 330px;
    right: -34%;
  }
  .avatar-pop-head {
    padding: 18px 20px;
  }
  .avatar-pop-body {
    padding: 18px 20px 6px;
  }
  .avatar-pop-foot {
    padding: 12px 20px 18px;
  }
  .avatar-lock-text {
    font-size: 1.1rem;
  }
}

/* ==========================================================
   좌측 아이콘 레일 레이아웃 (body.side-type 전용)
   - 기존 선택자는 수정하지 않고, .side-type 하위로만 새 규칙 추가
   - 기본(좁음, 120px): 로고 + 메뉴버튼 + 아이콘·라벨 세로 나열 + 하단 마스코트
   - #sideMenu.is-open(넓음, 260px): 라벨 가로배치 + 주간출석현황 + 유저카드까지 노출
   - 확장 트리거: 기존 .menu-btn(#menuToggle) 클릭 → #sideMenu.is-open 토글 (JS 수정 없음)
   ========================================================== */
.side-type {
  --rail-w: 120px;
  --rail-w-open: 260px;
  --rail-head-h: 130px;
}
.side-type main.wrap {
  margin: 0;
  padding-bottom: 5px;
  max-width: 100%;
  background-color: var(--primary5);
}
/* ---------- 상단 header: 로고 + 메뉴 버튼 (항상 노출, 폭만 aside와 동기화) ---------- */
.side-type header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--rail-w);
  height: var(--rail-head-h);
  z-index: 501;
  box-sizing: border-box;
  overflow: hidden;
  padding: 16px 30px;
  border: 0 none;
  transition: width 0.25s ease;
}
.side-type:has(.side-menu.is-open) header {
  width: var(--rail-w-open);
}
.side-type header::after {
  position: absolute;
  bottom: 0;
  left: 30px;
  display: block;
  content: "";
  width: calc(100% - 60px);
  height: 1px;
  background-color: var(--gry20);
}

.side-type .header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.side-type:has(.side-menu.is-open) .header-inner {
  align-items: flex-start;
}

.side-type .header-inner .logo {
  margin: 0;
}
.side-type .header-inner .logo a {
  padding-left: 0;
  width: 60px;
  height: 40px;
  background-position: center;
}

.side-type .is-open .header-inner .logo-txt {
  display: block;
  padding-left: 70px;
}
.side-type .header-menu {
  gap: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.side-type:has(.side-menu.is-open) .header-menu {
  align-items: flex-start;
}

/* 농장/유저 정보 버튼은 항상 숨김 (레일 하단의 유저카드/아바타가 대체) */
.side-type .header-menu .farm-info,
.side-type .header-menu .user-info {
  display: none;
}

.side-type .menu-btn {
  padding: 8px 18px;
  width: 100%;
  max-width: 60px;
  text-align: center;
}
.side-type .menu-btn .menu-label {
  display: none;
}
/* 펼친 상태: 중앙 정렬 대신 로고/메뉴 목록과 같은 좌측 라인에 맞춤 */
.side-type:has(.side-menu.is-open) .menu-btn {
  align-items: flex-start;
}

.side-type .menu-icon {
  margin: 0;
  width: 24px;
  height: 20px;
}
.side-type .menu-icon svg {
  width: 100%;
  height: auto;
}

.side-type .side-link-ico {
  width: 26px;
  height: 24px;
}

/* ---------- 본문/푸터 오프셋 (좁은 레일 폭만큼만 고정 오프셋, 확장은 오버레이) ---------- */
.side-type #container {
  padding-left: var(--rail-w);
  box-sizing: border-box;
}
.side-type footer {
  padding-top: 0;
  padding-left: var(--rail-w);
  border-top: 0 none;
  box-sizing: border-box;
  background-color: var(--primary5);
}
.side-type .footer-inner {
  align-items: center;
}
.side-type .footer-info {
  margin-bottom: 0;
  flex: 1;
}
.side-type .footer-bottom {
}

/* ---------- aside#sideMenu → 좌측 고정 레일로 전환 ---------- */
.side-type .side-menu {
  top: var(--rail-head-h);
  left: 0;
  right: auto;
  width: var(--rail-w);
  height: calc(100vh - var(--rail-head-h));
  transform: none;
  overflow: hidden;
  z-index: 500;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
  transition:
    width 0.25s ease,
    box-shadow 0.25s ease;
}
.side-type .side-menu.is-open {
  width: var(--rail-w-open);
  max-width: 90vw;
  overflow-y: auto;
  box-shadow: 6px 0 28px rgba(0, 0, 0, 0.15);
}

/* 순서: 메뉴 목록 → 주간출석현황 → (여백) → 유저카드/아바타(하단 고정) */
.side-type .side-menu .side-nav {
  order: 1;
  padding: 16px 30px;
}
.side-type .side-menu .side-nav .side-link {
  padding: 7px 10px;
  font-size: 1.7rem;
}
.side-type .side-menu .side-nav li:not(:first-child) {
  margin: 10px 0;
}
.side-type .side-menu .attendance {
  order: 2;
}
.side-type .side-menu .side-head {
  position: relative;
  order: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 25px 30px;
  border-bottom: 0;
  background-color: var(--wht);
}
.side-type .side-menu .side-head::after {
  position: absolute;
  top: 0;
  left: 30px;
  display: block;
  content: "";
  width: calc(100% - 60px);
  height: 1px;
  background-color: var(--gry20);
}
/* 프로필 이미지 + 소속(낮병동/밤병동) 뱃지 */
.side-type .side-menu .side-profile {
  position: relative;
}
.side-type .side-menu .side-profile .side-user-info {
  position: absolute;
  top: 5px;
  right: -90px;
  white-space: nowrap;
}
.side-type .side-menu .side-user {
  display: block;
  margin-bottom: 0;
}
.side-type .side-menu .side-user-name {
  margin-top: 4px;
  font-size: 2rem;
  font-weight: 700;
}
.side-type .side-menu .side-actions {
  align-self: stretch;
  gap: 20px;
  padding: 16px 0 0;
  border-top: 1px solid var(--gry20);
}
.side-type .side-menu .side-actions .side-action {
  height: auto;
  line-height: 1;
  border: 0 none;
  padding: 0;
  font-size: 1.5rem;
  font-weight: 400;
}
/* side-type에서는 menu-btn이 토글 역할을 대신하므로 별도의 닫기 버튼은 불필요 */
.side-type .side-menu .side-close {
  display: none;
}
/* 좁은(기본, 120px) 상태 — 유저카드/액션/닫기/구역제목은 숨기고 아바타만 노출 */
.side-type .logo-txt,
.side-type .side-menu:not(.is-open) .side-user,
.side-type .side-menu:not(.is-open) .side-profile .side-user-info,
.side-type .side-menu:not(.is-open) .side-actions,
.side-type .side-menu:not(.is-open) .side-close,
.side-type .side-menu:not(.is-open) .side-section-title,
.side-type .side-menu:not(.is-open) .attendance-days .day em {
  display: none;
}
.side-type .side-menu:not(.is-open) .side-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 30px;
  background: transparent;
}
.side-type .side-menu:not(.is-open) .side-avatar {
  width: 48px;
  height: 48px;
}

/* 좁은 상태: 아이콘 위 + 라벨 아래로 세로 정렬된 목록 (이미지 참고) */
.side-type .side-menu:not(.is-open) .side-nav {
  padding: 8px 30px 16px;
}
.side-type .side-menu:not(.is-open) .side-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
}
.side-type .side-menu:not(.is-open) .side-link {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 57px;
  padding: 7px 5px;
  border-radius: 8px;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.1rem;
  text-align: center;
}

/* 좁은 상태에서는 주간출석현황을 숨기고, 펼쳤을 때만 노출 */
.side-type .side-menu:not(.is-open) .attendance {
}

/* 주간출석현황 위젯 — 원래 .header-menu 안에서만 스타일링되어 있어
   레일 안(.side-menu)에서도 보이도록 새로 스타일 지정 */
.side-type .side-menu .attendance {
  position: relative;
  padding: 16px 30px;
}
.side-type .side-menu .attendance::after {
  position: absolute;
  top: 0;
  left: 30px;
  display: block;
  content: "";
  width: calc(100% - 60px);
  height: 1px;
  background-color: var(--gry20);
}
.side-type .side-menu .attendance a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 5px;
  letter-spacing: -0.1rem;
  border-radius: 8px;
  text-decoration: none;
}
.side-type .side-menu .attendance a:hover {
  background-color: var(--gry5);
}
/* 펼친 상태: 좌측 정렬로 전환하고, 요일 목록을 노출 */
.side-type .side-menu.is-open .attendance a {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 7px 10px;
}
.side-type .side-menu .attendance-days {
  display: none;
  gap: 6px;
  list-style: none;
}
.side-type .side-menu.is-open .attendance-days {
  display: flex;
}
.side-type .side-menu .attendance-days .day {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--gry50);
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50%;
  border: 1px solid var(--gry20);
  background-color: var(--wht);
}
.side-type .side-menu .attendance-days .day.done {
  color: var(--wht);
  border: 1px solid transparent;
  background: var(--primary50);
}
.side-type .side-menu .attendance-days .day.today {
  border: 1px solid var(--gry90);
  color: var(--gry90);
}
.side-type .side-menu .attendance-days .day.holiday {
  color: var(--gry65);
  background: var(--gry20);
}
.side-type .side-menu .attendance-days .day em {
  position: absolute;
  top: -9px;
  left: 50%;
  display: none;
  margin-left: -11px;
  padding: 0 3px;
  border-radius: 4px;
  color: var(--wht);
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 700;
  background-color: var(--gry90);
  z-index: 1;
}
.side-type .side-menu .attendance-days .day.today em {
  display: block;
}
.side-type .side-menu .attendance-label {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--gry90);
}
.side-type .side-menu .attendance-label .week-count {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gry90);
  border: 2px solid var(--gry90);
  border-radius: 50%;
}
.side-type .side-menu.is-open .attendance-label .week-count {
  display: none;
}
/* 좁은 상태: 숫자 배지를 텍스트 위에 가운데 정렬 (아이콘처럼 표시) */
.side-type .side-menu:not(.is-open) .attendance-label .week-count {
  margin: 0 auto 8px;
}
.side-type .side-menu .attendance-label .expanded {
  display: none;
}
/* 펼친 상태: 숫자 배지 + 라벨을 한 줄로, 좌측 정렬 */
.side-type .side-menu.is-open .attendance-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-type .side-menu.is-open .attendance-label .expanded {
  display: inline;
}
