/* 왼쪽 사이드바 */
.tv-design-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: var(--tv-sidebar-width);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  background: #fff;
}

.tv-design-sidebar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.tv-sidebar-header {
  position: sticky;
  top: 0;
  z-index: 105;
  height: var(--tv-header-height);
  background: #fff;
}

.tv-sidebar-menu-button {
  position: absolute;
  top: 12px;
  left: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--tv-admin-text, #5d6470);
  cursor: pointer;
}

.tv-sidebar-menu-button:hover,
.tv-sidebar-menu-button:focus-visible {
  background: #eef0f2;
}

.tv-sidebar-menu-button:focus-visible {
  outline: 2px solid #00a9e8;
  outline-offset: 2px;
}

.tv-sidebar-menu-button .tv-icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.25;
}

.tv-brand {
  position: fixed;
  top: 0;
  left: 69px;
  z-index: 110;
  display: flex;
  align-items: center;
  width: 92px;
  height: var(--tv-header-height);
}

.tv-brand img {
  display: block;
  width: 92px;
  height: 45px;
  object-fit: contain;
}

.tv-primary-nav {
  padding: 8px 20px 0;
}

.tv-nav-group {
  position: relative;
}

.tv-nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  padding: 1px 0;
  border-radius: 10px;
  background-clip: content-box;
  color: #080b11;
  font-size: 15px;
  text-decoration: none;
}

.tv-nav-item:hover,
.tv-nav-item:focus-visible,
.tv-nav-item.is-active {
  background: #f2f9ff;
  color: #17191c;
}

.tv-nav-item:hover > .tv-icon,
.tv-nav-item:focus-visible > .tv-icon,
.tv-nav-item.is-active > .tv-icon {
  color: #1683ff;
}

.tv-nav-item:hover > img.tv-left-menu-image,
.tv-nav-item:focus-visible > img.tv-left-menu-image,
.tv-nav-item.is-active > img.tv-left-menu-image {
  filter: brightness(0) saturate(100%) invert(42%) sepia(97%) saturate(2043%) hue-rotate(197deg) brightness(104%) contrast(101%);
}

.tv-nav-item > .tv-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-left: 1ch;
  color: var(--tv-icon-color);
  stroke-width: 1.55;
}

.tv-left-menu-image {
  display: block;
  object-fit: contain;
}

.tv-nav-item > span {
  min-width: 0;
  margin-left: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-nav-item:hover > span,
.tv-nav-item:focus-visible > span,
.tv-nav-item.is-active > span {
  color: #17191c;
  font-weight: 500;
}

.tv-subnav {
  display: none;
  padding: 4px 16px 7px 70px;
  background: #fafbfc;
}

.tv-nav-group:hover .tv-subnav,
.tv-nav-group:focus-within .tv-subnav {
  display: block;
}

.tv-subnav a {
  display: block;
  overflow: hidden;
  padding: 6px 0;
  color: #697180;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-subnav a:hover,
.tv-subnav a:focus-visible {
  color: #17191c;
}

.tv-sidebar-divider {
  width: 211px;
  height: 1px;
  margin: 19px 0 0 20px;
  background: #eceef0;
}

.tv-download-divider {
  margin-top: 12px;
}

.tv-download-nav {
  padding: 8px 20px 0;
}

/* 일정표 영역 */
.tv-schedule-section {
  padding: 14px 20px 0;
}

.tv-schedule-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding: 0 10px 10px 10px;
}

.tv-schedule-title-group {
  display: flex;
  align-items: center;
  gap: 5px;
}

.tv-schedule-title-group h2 {
  margin: 0;
  color: #080b11;
  font-size: 15px;
  font-weight: 500;
  line-height: 21px;
}

.tv-schedule-refresh {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a1a7b0;
  cursor: pointer;
}

.tv-schedule-refresh:focus-visible {
  outline: 2px solid #00a9e8;
  outline-offset: 1px;
}

.tv-schedule-refresh .tv-icon {
  width: 15px;
  height: 15px;
  stroke-width: 1.6;
}

.tv-schedule-title-group time {
  color: #969daa;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}

.tv-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.tv-schedule-item {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 10px 4px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.tv-schedule-item:hover,
.tv-schedule-item:focus-visible,
.tv-schedule-item.is-preview-active {
  background: #f2f3f5;
}

.tv-schedule-item:focus-visible {
  outline: 2px solid #00a9e8;
  outline-offset: -2px;
}

.tv-schedule-placeholder {
  display: block;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid #c8cdd4;
  border-radius: 50%;
  background: #e5e7ea;
  box-shadow: inset 0 0 0 4px #f3f4f6;
}

.tv-schedule-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  margin-left: 10px;
  line-height: 1.2;
}

.tv-schedule-copy strong {
  overflow: hidden;
  max-width: 112px;
  color: #17191c;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-schedule-copy span {
  overflow: hidden;
  max-width: 112px;
  margin-top: 3px;
  color: #818997;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-schedule-item > time {
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 5px;
  color: #8d95a2;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}

.tv-schedule-more {
    display: flex;
    align-items: center;
    width: 100%;
    height: 38px;
    margin: 4px 0 0;
    padding: 0 0 0 10px;
    border: 0;
    background: transparent;
    color: #58606d;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.tv-schedule-more:hover {
  background: transparent;
}

.tv-schedule-more:focus-visible {
  background: transparent;
  outline: 2px solid #00a9e8;
  outline-offset: -2px;
}

.tv-schedule-more .tv-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-right: 18px;
  stroke-width: 1.6;
}

.tv-schedule-more.is-expanded .tv-icon {
  transform: rotate(180deg);
}

/* 사이드바 overflow 바깥으로 표시되는 일정 상세 팝오버 */
.tv-schedule-preview,
.tv-schedule-preview * {
  box-sizing: border-box;
}

.tv-schedule-preview {
  position: fixed;
  z-index: 1000;
  width: 196px;
  padding: 8px;
  border: 1px solid #e0e3e7;
  border-radius: 15px;
  background: #fff;
  color: #17191c;
  box-shadow: 0 5px 16px rgba(25, 31, 40, 0.2);
  font-family: Arial, "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.tv-schedule-preview-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 98px;
  border-radius: 11px;
  background: #dfe2e6;
  color: #8a919c;
  font-size: 11px;
}

.tv-schedule-preview-body {
  padding: 9px 4px 3px;
}

.tv-schedule-preview-body > strong {
  display: block;
  overflow: hidden;
  color: #17191c;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-schedule-preview-body p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0 0;
  color: #7d8592;
  font-size: 11px;
  line-height: 15px;
}

.tv-schedule-preview-body p span {
  flex: 0 0 auto;
}

.tv-schedule-preview-body p em,
.tv-schedule-preview-body p time {
  overflow: hidden;
  color: #4d5562;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tv-schedule-preview-status {
  display: inline-flex;
  align-items: center;
  height: 21px;
  margin-top: 8px;
  padding: 0 8px;
  border-radius: 11px;
  background: #f1f3f5;
  color: #59616d;
  font-size: 10px;
}

/* 햄버거 버튼으로 전환되는 아이콘 전용 사이드바 */
.tv-design-app.is-sidebar-collapsed .tv-nav-item {
  flex-direction: column;
  justify-content: center;
  height: 62px;
  font-size: 11px;
  line-height: 1;
}

.tv-design-app.is-sidebar-collapsed .tv-nav-item > .tv-icon {
  margin-left: 0;
}

.tv-design-app.is-sidebar-collapsed .tv-nav-item > span {
  display: block;
  max-width: 72px;
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 13px;
  text-align: center;
}

.tv-design-app.is-sidebar-collapsed .tv-nav-item:hover > span,
.tv-design-app.is-sidebar-collapsed .tv-nav-item:focus-visible > span,
.tv-design-app.is-sidebar-collapsed .tv-nav-item.is-active > span {
  color: #1683ff;
}

.tv-design-app.is-sidebar-collapsed .tv-subnav {
  display: none;
}

.tv-design-app.is-sidebar-collapsed .tv-sidebar-divider {
  width: 60px;
  margin: 15px auto 0;
}

.tv-design-app.is-sidebar-collapsed .tv-schedule-section {
  display: block;
  padding: 13px 20px 0;
}

.tv-design-app.is-sidebar-collapsed .tv-schedule-heading {
  display: none;
}

.tv-design-app.is-sidebar-collapsed .tv-schedule-list {
  gap: 0;
  margin-top: 0;
}

.tv-design-app.is-sidebar-collapsed .tv-schedule-item {
  min-height: 44px;
  padding: 5px 0;
}

.tv-design-app.is-sidebar-collapsed .tv-schedule-placeholder {
  flex-basis: 30px;
  width: 30px;
  height: 30px;
  margin: 0 auto;
}

.tv-design-app.is-sidebar-collapsed .tv-schedule-copy,
.tv-design-app.is-sidebar-collapsed .tv-schedule-item > time {
  display: none;
}

.tv-design-app.is-sidebar-collapsed .tv-schedule-more {
  justify-content: center;
  padding: 0;
}

.tv-design-app.is-sidebar-collapsed .tv-schedule-more .tv-icon {
  margin-right: 0;
}

.tv-design-app.is-sidebar-collapsed .tv-schedule-more span {
  display: none;
}

/* SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_SIDEBAR_NETWORK_PADDING_ */
