/* 회사 일정 달력 (첫 화면) + 업무일지 맨 위 "오늘 · 이번 주" 줄 */
.panel.cc { margin-top: 22px; padding: 18px 18px 14px; }
.cc-head { display: flex; align-items: center; gap: 4px; margin-bottom: 8px; }
.cc-title {
  border: 0; background: none; padding: 4px 8px; margin: 0 4px 0 -8px; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 20px; font-weight: 800; color: var(--ink); white-space: nowrap;
}
.cc-title small { font-size: 12px; color: var(--muted); }
.cc-title:hover { background: var(--bg); }
.cc-head .spacer { flex: 1; }
.cc-actions { margin-left: auto; display: flex; gap: 6px; } /* 대표 버튼 두 개는 늘 함께 오른쪽 */
.cc-nav {
  border: 0; background: none; width: 34px; height: 34px; border-radius: 8px;
  font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer;
}
.cc-nav:hover { background: var(--bg); }

/* 좌우로 밀어서 달 넘기기: 가로 움직임은 달력이 받고, 세로 스크롤은 그대로 */
.cc-body { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cc-grid.slide-next { animation: cc-slide-next .22s ease-out; }
.cc-grid.slide-prev { animation: cc-slide-prev .22s ease-out; }
@keyframes cc-slide-next { from { transform: translateX(36px); opacity: .25; } to { transform: none; opacity: 1; } }
@keyframes cc-slide-prev { from { transform: translateX(-36px); opacity: .25; } to { transform: none; opacity: 1; } }

/* 연·월 고르기 */
.cc-picker { padding: 10px 0 6px; }
.cc-pk-years { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 14px; }
.cc-pk-years b { font-size: 20px; min-width: 90px; text-align: center; }
.cc-pk-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 520px; margin: 0 auto; }
.cc-pk-months button {
  min-height: 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.cc-pk-months button.now { border-color: var(--ink); }
.cc-pk-months button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.cc-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.cc-weekdays span { text-align: right; padding: 4px 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.cc-weekdays span:first-child { color: #d0453b; }
.cc-weekdays span:last-child { color: #3d6fd6; }

.cc-week {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: 24px; row-gap: 3px;
  align-content: start; /* 일정이 적은 주도 막대가 늘어나지 않고 위에서부터 같은 두께로 */
  min-height: 104px; padding-bottom: 8px; border-bottom: 1px solid var(--line); cursor: default;
  /* 날짜 사이 세로줄 */
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 7) 100%;
  background-position: -1px 0;
}
.cc-week:has(.cc-day) { grid-template-rows: auto; }
.cc-day { grid-row: 1; display: flex; flex-direction: column; align-items: flex-end; padding: 6px 8px 2px; min-width: 0; }
.cc-num { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.cc-day.out { opacity: .35; }
.cc-day.red .cc-num { color: #d0453b; }
.cc-day.blue .cc-num { color: #3d6fd6; }
.cc-day.today .cc-num {
  background: var(--ink); color: #fff; border-radius: 99px; min-width: 26px; padding: 0 6px; text-align: center;
}
.cc-hol { font-size: 11px; font-weight: 700; color: #d0453b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.cc-ev {
  min-width: 0; margin: 0 3px; padding: 0 8px; border: 0; border-radius: 7px;
  background: color-mix(in srgb, var(--c) 16%, #fff); color: color-mix(in srgb, var(--c) 85%, #000);
  box-shadow: inset 3px 0 0 var(--c);
  font: inherit; font-size: 12.5px; font-weight: 700; line-height: 24px; text-align: left;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.cc-ev:not(.one) { background: color-mix(in srgb, var(--c) 82%, #fff); color: #fff; box-shadow: none; }
.cc-ev.cont-l { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cc-ev.cont-r { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cc-ev:hover { filter: brightness(.96); }

/* 일정 창 */
.cc-dlg { width: min(460px, calc(100vw - 24px)); }
.cc-form { display: flex; flex-direction: column; max-height: calc(100dvh - 40px); }
.cc-form header { display: flex; align-items: center; gap: 8px; padding: 16px 18px 8px; }
.cc-form header h3 { flex: 1; font-size: 17px; overflow-wrap: anywhere; }
.cc-dlg-body { padding: 4px 18px 14px; display: flex; flex-direction: column; gap: 12px; overflow: auto; }
.cc-dlg-foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); }
.cc-dlg-foot:empty { display: none; }
.cc-dlg-foot .spacer { flex: 1; }
.cc-dlg .field > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.cc-dlg div.field { display: flex; flex-direction: column; }
.cc-dlg textarea { min-height: 70px; }
.cc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-kind {
  border: 1.5px solid color-mix(in srgb, var(--c) 40%, #fff); background: #fff; color: var(--c);
  border-radius: 99px; padding: 5px 13px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.cc-kind.on { background: var(--c); border-color: var(--c); color: #fff; }
.cc-kind-edit {
  border: 1.5px dashed var(--line); background: none; border-radius: 99px; padding: 5px 12px;
  font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.cc-reps { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-rep {
  border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 13px;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.cc-rep.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 종류 편집 */
.cc-kd-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; align-items: center;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.cc-kd-color { width: 44px; height: 42px; min-height: 0; padding: 2px; border-radius: 10px; cursor: pointer; }
.cc-kd-palette { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.cc-kd-palette button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.cc-kd-palette button.on { box-shadow: 0 0 0 2px var(--ink); }
.cc-check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.cc-check input { width: 18px; height: 18px; min-height: 0; padding: 0; }
.cc-check small { color: var(--muted); font-weight: 500; font-size: 12px; }
.cc-view-kind { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.cc-view-kind i { width: 10px; height: 10px; border-radius: 3px; }
.cc-view-date { font-size: 16px; font-weight: 700; }
.cc-view-memo { white-space: pre-wrap; background: var(--bg); padding: 10px 12px; border-radius: 10px; overflow-wrap: anywhere; }

/* 일정 창: 🔔 알림 보내기 */
.cc-alerts { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--bg); }
.cc-al-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.cc-al-head b { font-size: 14px; }
.cc-al-count { color: var(--muted); font-size: 12px; font-weight: 600; }
.cc-al-tip { color: var(--muted); font-size: 12.5px; }
.cc-al-list { display: flex; flex-direction: column; gap: 6px; }
.cc-al-list:empty { display: none; }
.cc-al {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 10px 40px 10px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line);
}
.cc-al-when { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6px; }
.cc-al-when input { min-height: 38px; padding: 4px 8px; }
.cc-al-devs { display: flex; gap: 14px; font-size: 14px; font-weight: 700; }
.cc-al-devs label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.cc-al-devs input { width: 18px; height: 18px; min-height: 0; padding: 0; }
.cc-al.done { padding: 8px 40px 8px 10px; background: transparent; border-style: dashed; }
.cc-al-sent { color: var(--muted); font-size: 13px; font-weight: 600; }
.cc-al-x {
  position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer;
}
.cc-al-x:hover { background: var(--bg); color: var(--danger); }
.cc-al-add { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-al-text small { font-weight: 500; }

@media (max-width: 640px) {
  .panel.cc { padding: 14px 10px 10px; }
  .cc-weekdays span { text-align: right; padding: 4px 5px; }
  .cc-week { min-height: 84px; grid-auto-rows: minmax(22px, auto); row-gap: 2px; }
  .cc-rep-ic { display: none; } /* 좁은 칸에서는 반복 표시(↻)를 줄인다 */
  .cc-ev.one { padding: 0 3px; text-align: right; } /* 모든 막대를 같은 두께(한 줄)로. 긴 이름은 … 로 줄이고, 누르면 전체가 보인다 */
  .cc-day { align-items: flex-end; padding: 4px 4px 1px; }
  .cc-title { font-size: 18px; }
  .cc-pk-years .btn { padding: 0 8px; }
  .cc-num { font-size: 13.5px; }
  .cc-hol { font-size: 9.5px; }
  .cc-ev { margin: 0 1px; padding: 0 4px; font-size: 10.5px; line-height: 20px; border-radius: 5px; }
}

/* ── 업무일지 맨 위: 오늘 · 이번 주 회사 일정 ── */
.week-strip {
  display: flex; flex-direction: column; gap: 6px; margin-top: 4px; padding: 12px 16px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
}
.ws-row { display: flex; align-items: flex-start; gap: 8px; }
.ws-items { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ws-label { flex: none; width: 54px; line-height: 28px; font-size: 13px; font-weight: 800; color: var(--muted); }
.ws-none { color: var(--muted); font-size: 13px; }
.ws-item {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 99px;
  background: color-mix(in srgb, var(--c) 12%, #fff); font-size: 13.5px;
}
.ws-item i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.ws-item b { color: color-mix(in srgb, var(--c) 85%, #000); }
.ws-item small { color: var(--muted); font-size: 12px; }

/* ── 구글 캘린더 연동 ── */
.cc-gcal-btn.on { color: var(--ok); border-color: #c6e5d2; background: #eef8f2; }
.cc-gc-body p { line-height: 1.6; }
.cc-gc-ok { font-weight: 800; color: var(--ok); }
.cc-gc-tips, .cc-gc-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.55; }
.cc-gc-steps small, .cc-gc-tips small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.cc-gc-steps .btn { margin-top: 6px; }
.cc-gc-actions { display: flex; align-items: center; gap: 8px; }
.cc-gc-actions .spacer { flex: 1; }
.cc-gc-progress { font-weight: 700; color: var(--muted); }
@media (max-width: 640px) {
  .cc-gcal-btn { padding: 0 8px; }
  /* 좁은 휴대폰: 버튼이 넘치면 다음 줄로 (제목은 한 줄 그대로) */
  .cc-head { flex-wrap: wrap; row-gap: 6px; }
  .cc-head .cc-nav { width: 30px; }
}

/* ── 시간 · 장소 ── */
.cc-ev-time { font-weight: 800; opacity: .85; }
.cc-time { display: flex; flex-direction: column; gap: 8px; }
.cc-check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; cursor: pointer; }
.cc-check input { width: 18px; height: 18px; min-height: 0; padding: 0; }
.cc-place { display: flex; flex-direction: column; gap: 6px; }
.cc-place > span small, .cc-time small { color: var(--muted); font-weight: 500; }
.cc-place-act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cc-place-act small { color: var(--muted); font-size: 12px; line-height: 1.5; flex: 1; min-width: 180px; }
.cc-view-time { margin-left: 4px; color: var(--ink); }
.cc-view-place { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-weight: 700; overflow-wrap: anywhere; }
.ws-map { font-size: 12px; color: var(--muted); text-decoration: none; margin-left: 2px; white-space: nowrap; }
.ws-map:hover { text-decoration: underline; }
@media (max-width: 640px) {
  /* 좁은 하루 칸에서는 시간 대신 제목을 보여 준다 (시간은 누르면 보임) */
  .cc-ev.one .cc-ev-time { display: none; }
}

/* ── 🔍 일정 검색 ── */
.cc-search { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 6px; }
.cc-s-bar { display: flex; gap: 8px; align-items: center; }
.cc-s-bar input { flex: 1; min-width: 0; }
.cc-s-range { display: flex; flex-direction: column; gap: 8px; }
.cc-s-range .field > span { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.cc-s-count { color: var(--muted); font-size: 13px; font-weight: 700; }
.cc-s-results { display: flex; flex-direction: column; gap: 6px; }
.cc-s-results h4 { margin: 8px 0 2px; font-size: 13px; color: var(--muted); }
.cc-s-results h4 small { font-weight: 600; }
.cc-s-item {
  display: grid; grid-template-columns: 8px 112px minmax(0, 1fr); gap: 10px; align-items: start;
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
}
.cc-s-item:hover { border-color: #cfc8bd; background: var(--bg); }
.cc-s-item > i { width: 8px; height: 100%; min-height: 34px; border-radius: 4px; }
.cc-s-when { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.cc-s-when small { display: block; color: var(--muted); font-weight: 600; font-size: 11.5px; }
.cc-s-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cc-s-main b { font-size: 15px; overflow-wrap: anywhere; }
.cc-s-main small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.cc-s-main .cc-s-memo { color: var(--ink); opacity: .8; }
.cc-s-item mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.cc-search-btn { padding: 0 10px; }
@media (max-width: 640px) {
  .cc-s-item { grid-template-columns: 6px 84px minmax(0, 1fr); gap: 8px; padding: 9px 10px; }
  .cc-s-when { font-size: 12.5px; }
}

/* ── 🏖 연차 · 반차 칸 (일정 창) ── */
.cc-leave { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.cc-leave small { color: var(--muted); font-weight: 500; }
.cc-leave-body { display: flex; flex-direction: column; gap: 8px; }
.cc-leave-people { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.cc-person { font-weight: 600; }
