/* table */
.table__cell--thead {
  background-color: #f7f7f7;
}

.table__cell--thead:first-child {
  border-top-left-radius: 8px;
}

.table__cell--thead:last-child {
  border-top-right-radius: 8px;
}

.table__cell--btn {
  display: flex;
  justify-content: center;
  align-items: center;
}

.table__cell--xs {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 36px;
  height: 36px;
  padding: 0px 12px;
  font-size: 14px;
}

.rounded ul > .table__item:last-child {
  border-bottom: 0;
}

.cell-160 {
  width: 160px;
}

.cell-290 {
  width: 290px;
}

/* utility */
.gap-8 {
  gap: 8px;
}

.mt-4 {
  margin-top: 4px;
}

.rounded {
  border-radius: 8px;
  border: 1px solid #f7f7f7;
}

.border-r {
  border-right: 1px solid #f7f7f7;
}

/* input */
.vacation-input-box {
  display: flex;
  height: 28px;
  padding: 0px 8px;
}

.vacation-input-box .dropdown-list {
  top: 34px;
}

.input-calendar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input__guide--left {
  font-size: 12px;
  line-height: 20px;
  color: #8a8a8a;
  text-align: start;
  margin-left: 110px;
}

/* 리스트/캘린더 */
.tab-controls {
  display: flex;
  border-radius: 4px;
  padding: 4px;
  background-color: #f7f7f7;
}

.tab-controls button {
  font-size: 14px;
  line-height: 20px;
  padding: 8px 16px;
  color: #8a8a8a;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tab-controls button.active {
  font-weight: 600;
  color: #0099ff;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
}

/* 캘린더 날짜 선택*/
.vacation-calendar__selecteddate {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.vacation-calendar__selecteddate > select {
  appearance: none;
}

/* 캘린더 */
.vacation-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.vacation-calendar__header {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background-color: #f7f7f7;
}

.vacation-calendar__header-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
}

.vacation-calendar__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 120px;
  max-height: 145px;
  border-right: 1px solid #f7f7f7;
  border-bottom: 1px solid #f7f7f7;
  padding: 8px;
  gap: 4px;
  overflow: hidden;
}

.vacation-calendar__cell:nth-child(7n + 1) {
  border-left: 1px solid #f7f7f7;
}

.vacation-calendar__date {
  font-size: 14px;
}
.vacation-calendar__date.dimmed {
  color: #ccc;
}

.vacation-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  padding: 2px 4px;
  gap: 4px;
  background-color: rgba(0, 153, 255, 0.08);
  border-radius: 4px;
  cursor: pointer;
}

.vacation-entry.more {
  background-color: rgba(157, 163, 165, 0.042);
}

.vacation-entry-list {
  display: flex;
  flex-direction: column;
  overflow: auto;
  gap: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.vacation-entry-list::-webkit-scrollbar {
  display: none;
}

.vacation-entry:hover {
  background-color: rgba(0, 153, 255, 0.3);
}
.vacation-entry.more:hover {
  background-color: rgba(155, 158, 161, 0.3);
}

.vacation-entry__text {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}

.vacation-entry-more {
    display: flex;
    flex-direction: column;
    width: 200px;
    padding: 16px;
    gap: 8px;
    border-radius: 8px;
    background-color: rgb(248, 248, 248);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
}

.vacation-entry-more__title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.vacation-entry-more > ul {
  display: grid;
  gap: 4px;
}

/* 연차관리 탭 */
.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #d1d1d1;
}

.tab {
  min-width: 76px;
  padding: 8px;
  cursor: pointer;
}

.tab.active {
  position: relative;
  font-weight: 500;
}

.tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background-color: #0099ff;
}

/* 연차현황 요약 */
.info-summary_v-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  gap: 24px;
  border: 1px solid #f7f7f7;
}

.info-box_v {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  gap: 8px;
}

.info-box_v__label {
  font-size: 14px;
  line-height: 20px;
  color: #8a8a8a;
  padding-right: 8px;
}

.summary-box_v {
  display: flex;
}

.summary-item_v {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 20px;
  font-weight: 500;
  padding: 12px 20px;
  gap: 8px;
}

.summary-item_v:nth-child(2) {
  border-inline: 1px solid #d3d3d3;
}

.summary-item_v__label {
  font-size: 14px;
  line-height: 20px;
  color: #8a8a8a;
}

/* 연차발생 예시 */
.vacation-guide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}

.vacation-guide > div:nth-child(1) {
  grid-column: 1 / -1;
}

.vacation-guide > div:nth-child(4) {
  grid-column: 1 / -1;
}

.guide__title {
  font-size: 14px;
  line-height: 20px;
}

.guide__subtxt {
  font-size: 12px;
  line-height: 20px;
  color: #8a8a8a;
}

.vacation-guide__content {
  display: grid;
  grid-template-columns: auto 1fr;
  padding: 8px 12px;
  gap: 4px 16px;
  font-size: 14px;
  background-color: #f7f7f7;
}

.vacation-guide__content > span:first-child {
  grid-row: 1 / 3;
}

.vacation-calendar__date.today {
  margin-top: -5px;
  margin-left: -5px;
  padding: 5px 5px;
  width:25px;
  height:25px;
  border: 1.5px solid #0099ff;
  background: #fafdff;
  border-radius: 50%;
  color: #0099ff;
  font-weight: bold;
}