@charset "UTF-8";

/* Split CSS entrypoint.
   Edit split CSS files directly.
   `style.css` is kept only for legacy compatibility. */

/* ==========================================================================
   Dashboard Base / Global Tokens
   공통 변수, 기본 인터랙션, 레이아웃 루트
   ========================================================================== */
:root {
  --dashboard-panel-height: calc(100dvh - 42px);
  --route-cards-target-height: 360px;
  --route-panel-chrome-height: 130px;
  --left-mini-width: 63px;
  --left-panel-width: 300px;
  --right-panel-width: 279px;
  --dashboard-top-offset: 42px;
  --right-route-panel-ratio: 56%;
  --right-event-panel-ratio: 44%;
  --right-route-panel-detail-ratio: 58%;
  --right-event-panel-detail-ratio: 42%;
  --scrollbar-size: 6px;
  --scrollbar-thumb-page: rgba(54, 65, 83, 0.12);
  --scrollbar-thumb-page-hover: rgba(153, 161, 175, 0.28);
  --scrollbar-thumb-soft: rgba(153, 161, 175, 0.24);
  --scrollbar-thumb-soft-hover: rgba(209, 213, 220, 0.38);
  --scrollbar-thumb-panel: rgba(153, 161, 175, 0.28);
  --scrollbar-thumb-panel-hover: rgba(209, 213, 220, 0.42);
  --scrollbar-thumb-panel-day: rgba(107, 114, 128, 0.32);
  --scrollbar-thumb-panel-day-hover: rgba(75, 85, 99, 0.42);
}

.app-main {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

button,
input,
select {
  font-family: inherit;
}

button,
[role="button"],
.tab,
.chip,
.panel-view-toggle,
.vehicle-swiper-nav,
.camera-toggle,
.mini-item,
.sensor-btn {
  cursor: pointer;
}

button:disabled,
[role="button"][aria-disabled="true"] {
  cursor: not-allowed;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 10000;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.24);
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid #8db4ff;
  outline-offset: 2px;
}

.viewport {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  display: block;
  overflow-x: hidden;
  overflow-y: hidden;
}

body::-webkit-scrollbar,
.viewport::-webkit-scrollbar {
  width: var(--scrollbar-size);
}

body::-webkit-scrollbar:horizontal,
.viewport::-webkit-scrollbar:horizontal {
  height: 0;
}

body::-webkit-scrollbar-track,
.viewport::-webkit-scrollbar-track {
  background: transparent;
}

body::-webkit-scrollbar-track-piece,
.viewport::-webkit-scrollbar-track-piece,
body::-webkit-scrollbar-corner,
.viewport::-webkit-scrollbar-corner,
body::-webkit-scrollbar-resizer,
.viewport::-webkit-scrollbar-resizer {
  background: transparent;
}

body::-webkit-scrollbar-thumb,
.viewport::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-page);
  border-radius: 999px;
  border: 0;
}

body::-webkit-scrollbar-thumb:hover,
.viewport::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-page-hover);
}

.vehicle-panel-list {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb-panel) transparent;
}

.vehicle-panel-list::-webkit-scrollbar {
  width: var(--scrollbar-size);
}

.vehicle-panel-list::-webkit-scrollbar-track {
  background: transparent;
}

.vehicle-panel-list::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-panel);
  border-radius: 999px;
  border: 0;
}

.vehicle-panel-list::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-panel-hover);
}

.sensor-history-section,
.sensor-history-table-wrap,
.route-manage-panel-scroll,
.route-table-wrap,
.route-manage-tab-panels,
.line-manage-table-wrap {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb-soft) transparent;
}

.sensor-history-section::-webkit-scrollbar,
.sensor-history-table-wrap::-webkit-scrollbar,
.route-manage-panel-scroll::-webkit-scrollbar,
.route-table-wrap::-webkit-scrollbar,
.route-manage-tab-panels::-webkit-scrollbar,
.line-manage-table-wrap::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

.sensor-history-section::-webkit-scrollbar-track,
.sensor-history-table-wrap::-webkit-scrollbar-track,
.route-manage-panel-scroll::-webkit-scrollbar-track,
.route-table-wrap::-webkit-scrollbar-track,
.route-manage-tab-panels::-webkit-scrollbar-track,
.line-manage-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.sensor-history-section::-webkit-scrollbar-track-piece,
.sensor-history-section::-webkit-scrollbar-corner,
.sensor-history-section::-webkit-scrollbar-resizer,
.sensor-history-table-wrap::-webkit-scrollbar-track-piece,
.sensor-history-table-wrap::-webkit-scrollbar-corner,
.sensor-history-table-wrap::-webkit-scrollbar-resizer,
.route-manage-panel-scroll::-webkit-scrollbar-track-piece,
.route-manage-panel-scroll::-webkit-scrollbar-corner,
.route-manage-panel-scroll::-webkit-scrollbar-resizer,
.route-table-wrap::-webkit-scrollbar-track-piece,
.route-table-wrap::-webkit-scrollbar-corner,
.route-table-wrap::-webkit-scrollbar-resizer,
.route-manage-tab-panels::-webkit-scrollbar-track-piece,
.route-manage-tab-panels::-webkit-scrollbar-corner,
.route-manage-tab-panels::-webkit-scrollbar-resizer,
.line-manage-table-wrap::-webkit-scrollbar-track-piece,
.line-manage-table-wrap::-webkit-scrollbar-corner,
.line-manage-table-wrap::-webkit-scrollbar-resizer {
  background: transparent;
}

.sensor-history-section::-webkit-scrollbar-thumb,
.sensor-history-table-wrap::-webkit-scrollbar-thumb,
.route-manage-panel-scroll::-webkit-scrollbar-thumb,
.route-table-wrap::-webkit-scrollbar-thumb,
.route-manage-tab-panels::-webkit-scrollbar-thumb,
.line-manage-table-wrap::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-soft);
  border-radius: 999px;
  border: 0;
}

.sensor-history-section::-webkit-scrollbar-thumb:hover,
.sensor-history-table-wrap::-webkit-scrollbar-thumb:hover,
.route-manage-panel-scroll::-webkit-scrollbar-thumb:hover,
.route-table-wrap::-webkit-scrollbar-thumb:hover,
.route-manage-tab-panels::-webkit-scrollbar-thumb:hover,
.line-manage-table-wrap::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-soft-hover);
}

.bus-schedule-panel-body,
.waypoint_box,
.route-cards,
.event-list,
.road-status-empty,
.stage.add #leftPanel.view-detail .vehicle-panel.add .vehicle-image-area,
.schedule-manage-section,
.schedule-tab-panels,
.schedule-manage-modal .cs-list,
.boarding-calendar-card,
.boarding-entry-panel,
.boarding-table-card {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb-panel) transparent;
}

.bus-schedule-panel-body::-webkit-scrollbar,
.waypoint_box::-webkit-scrollbar,
.route-cards::-webkit-scrollbar,
.event-list::-webkit-scrollbar,
.road-status-empty::-webkit-scrollbar,
.stage.add #leftPanel.view-detail .vehicle-panel.add .vehicle-image-area::-webkit-scrollbar,
.schedule-manage-section::-webkit-scrollbar,
.schedule-tab-panels::-webkit-scrollbar,
.schedule-manage-modal .cs-list::-webkit-scrollbar,
.boarding-calendar-card::-webkit-scrollbar,
.boarding-entry-panel::-webkit-scrollbar,
.boarding-table-card::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

.bus-schedule-panel-body::-webkit-scrollbar-track,
.waypoint_box::-webkit-scrollbar-track,
.route-cards::-webkit-scrollbar-track,
.event-list::-webkit-scrollbar-track,
.road-status-empty::-webkit-scrollbar-track,
.stage.add #leftPanel.view-detail .vehicle-panel.add .vehicle-image-area::-webkit-scrollbar-track,
.schedule-manage-section::-webkit-scrollbar-track,
.schedule-tab-panels::-webkit-scrollbar-track,
.schedule-manage-modal .cs-list::-webkit-scrollbar-track,
.boarding-calendar-card::-webkit-scrollbar-track,
.boarding-entry-panel::-webkit-scrollbar-track,
.boarding-table-card::-webkit-scrollbar-track {
  background: transparent;
}

.schedule-manage-section::-webkit-scrollbar-track-piece,
.schedule-manage-section::-webkit-scrollbar-corner,
.schedule-manage-section::-webkit-scrollbar-resizer,
.schedule-tab-panels::-webkit-scrollbar-track-piece,
.schedule-tab-panels::-webkit-scrollbar-corner,
.schedule-tab-panels::-webkit-scrollbar-resizer,
.schedule-manage-modal .cs-list::-webkit-scrollbar-track-piece,
.schedule-manage-modal .cs-list::-webkit-scrollbar-corner,
.schedule-manage-modal .cs-list::-webkit-scrollbar-resizer,
.boarding-calendar-card::-webkit-scrollbar-track-piece,
.boarding-calendar-card::-webkit-scrollbar-corner,
.boarding-calendar-card::-webkit-scrollbar-resizer,
.boarding-entry-panel::-webkit-scrollbar-track-piece,
.boarding-entry-panel::-webkit-scrollbar-corner,
.boarding-entry-panel::-webkit-scrollbar-resizer,
.boarding-table-card::-webkit-scrollbar-track-piece,
.boarding-table-card::-webkit-scrollbar-corner,
.boarding-table-card::-webkit-scrollbar-resizer {
  background: transparent;
}

.bus-schedule-panel-body::-webkit-scrollbar-thumb,
.waypoint_box::-webkit-scrollbar-thumb,
.route-cards::-webkit-scrollbar-thumb,
.event-list::-webkit-scrollbar-thumb,
.road-status-empty::-webkit-scrollbar-thumb,
.stage.add #leftPanel.view-detail .vehicle-panel.add .vehicle-image-area::-webkit-scrollbar-thumb,
.schedule-manage-section::-webkit-scrollbar-thumb,
.schedule-tab-panels::-webkit-scrollbar-thumb,
.schedule-manage-modal .cs-list::-webkit-scrollbar-thumb,
.boarding-calendar-card::-webkit-scrollbar-thumb,
.boarding-entry-panel::-webkit-scrollbar-thumb,
.boarding-table-card::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-panel);
  border-radius: 999px;
  border: 0;
}

.bus-schedule-panel-body::-webkit-scrollbar-thumb:hover,
.waypoint_box::-webkit-scrollbar-thumb:hover,
.route-cards::-webkit-scrollbar-thumb:hover,
.event-list::-webkit-scrollbar-thumb:hover,
.road-status-empty::-webkit-scrollbar-thumb:hover,
.stage.add #leftPanel.view-detail .vehicle-panel.add .vehicle-image-area::-webkit-scrollbar-thumb:hover,
.schedule-manage-section::-webkit-scrollbar-thumb:hover,
.schedule-tab-panels::-webkit-scrollbar-thumb:hover,
.schedule-manage-modal .cs-list::-webkit-scrollbar-thumb:hover,
.boarding-calendar-card::-webkit-scrollbar-thumb:hover,
.boarding-entry-panel::-webkit-scrollbar-thumb:hover,
.boarding-table-card::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-panel-hover);
}

.stage.day-mode .bus-schedule-panel-body,
.stage.day-mode .waypoint_box,
.stage.day-mode .route-cards,
.stage.day-mode .event-list,
.stage.day-mode .road-status-empty,
.stage.day-mode .vehicle-panel-list,
.stage.day-mode.add #leftPanel.view-detail .vehicle-panel.add .vehicle-image-area,
.stage.day-mode .sensor-history-section,
.stage.day-mode .schedule-manage-section,
.stage.day-mode .schedule-tab-panels,
.stage.day-mode .schedule-manage-modal .cs-list,
.stage.day-mode .boarding-calendar-card,
.stage.day-mode .boarding-entry-panel,
.stage.day-mode .boarding-table-card {
  scrollbar-color: var(--scrollbar-thumb-panel-day) transparent;
}

.stage.day-mode .bus-schedule-panel-body::-webkit-scrollbar-thumb,
.stage.day-mode .waypoint_box::-webkit-scrollbar-thumb,
.stage.day-mode .route-cards::-webkit-scrollbar-thumb,
.stage.day-mode .event-list::-webkit-scrollbar-thumb,
.stage.day-mode .road-status-empty::-webkit-scrollbar-thumb,
.stage.day-mode .vehicle-panel-list::-webkit-scrollbar-thumb,
.stage.day-mode.add #leftPanel.view-detail .vehicle-panel.add .vehicle-image-area::-webkit-scrollbar-thumb,
.stage.day-mode .sensor-history-section::-webkit-scrollbar-thumb,
.stage.day-mode .schedule-manage-section::-webkit-scrollbar-thumb,
.stage.day-mode .schedule-tab-panels::-webkit-scrollbar-thumb,
.stage.day-mode .schedule-manage-modal .cs-list::-webkit-scrollbar-thumb,
.stage.day-mode .boarding-calendar-card::-webkit-scrollbar-thumb,
.stage.day-mode .boarding-entry-panel::-webkit-scrollbar-thumb,
.stage.day-mode .boarding-table-card::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-panel-day);
}

.stage.day-mode .bus-schedule-panel-body::-webkit-scrollbar-thumb:hover,
.stage.day-mode .waypoint_box::-webkit-scrollbar-thumb:hover,
.stage.day-mode .route-cards::-webkit-scrollbar-thumb:hover,
.stage.day-mode .event-list::-webkit-scrollbar-thumb:hover,
.stage.day-mode .road-status-empty::-webkit-scrollbar-thumb:hover,
.stage.day-mode .vehicle-panel-list::-webkit-scrollbar-thumb:hover,
.stage.day-mode.add #leftPanel.view-detail .vehicle-panel.add .vehicle-image-area::-webkit-scrollbar-thumb:hover,
.stage.day-mode .sensor-history-section::-webkit-scrollbar-thumb:hover,
.stage.day-mode .schedule-manage-section::-webkit-scrollbar-thumb:hover,
.stage.day-mode .schedule-tab-panels::-webkit-scrollbar-thumb:hover,
.stage.day-mode .schedule-manage-modal .cs-list::-webkit-scrollbar-thumb:hover,
.stage.day-mode .boarding-calendar-card::-webkit-scrollbar-thumb:hover,
.stage.day-mode .boarding-entry-panel::-webkit-scrollbar-thumb:hover,
.stage.day-mode .boarding-table-card::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-panel-day-hover);
}

.stage {
  width: 100%;
  height: 100%;
  min-height: 100%;
  position: relative;
  overflow: hidden;
  background: #101828;
}

.stage,
.topbar,
.left-mini,
.left-panel,
.right-panel,
.vehicle-panel,
.tabs,
.tab,
.tab.active,
.panel-total-label,
.selected-asset-title > span:first-child,
.selected-asset-title > span:first-child::before,
.camera-toggle,
.camera-toggle::before,
.metric,
.sensor-btn,
.sensor-name,
.sensor-icon,
.sensor-icon::after,
.asset-card,
.route-card,
.event-list,
.event-list article,
.map-info,
.grid-row,
.station,
.station.pink,
.progress div {
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

/* ==========================================================================
   Dashboard Top Bar
   상단 상태바, 시계, 테마 토글
   ========================================================================== */
   
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 42px;
  background: #1e2939;
  border-bottom: 1px solid #364153;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
}

.top-left,
.top-mid,
.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title {
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  margin-right: 7px;
}

.signal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  line-height: 14px;
}

.signal i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00a63e;
  display: inline-block;
}

.top-right .signal {
  display: none;
}

.top-right {
  justify-content: flex-end;
  gap: 10px;
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.weather-summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-right .clock {
  width: auto;
  min-width: 0;
}

.weather-slot {
  width: 28px;
  height: 28px;
  border: 1px solid #364153;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.weather-icon {
  width: 16px;
  height: 16px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.weather-icon.WD_Sky_Sun {
  background-image: url("../img/WD_Sky_Sun.svg");
}

.weather-icon.WD_Sky_Clouds {
  background-image: url("../img/WD_Sky_Clouds.svg");
}

.weather-icon.WD_Sky_Cloud {
  background-image: url("../img/WD_Sky_Cloud.svg");
}

.weather-icon.WD_PTY_Rain {
  background-image: url("../img/WD_PTY_Rain.svg");
}

.weather-icon.WD_PTY_RaindropSnowy {
  background-image: url("../img/WD_PTY_RaindropSnowy.svg");
}

.weather-icon.WD_PTY_Snow {
  background-image: url("../img/WD_PTY_Snow.svg");
}

.weather-icon.WD_PTY_RainDrop {
  background-image: url("../img/WD_PTY_RainDrop.svg");
}

.weather-icon.WD_PTY_RainSnow {
  background-image: url("../img/WD_PTY_RainSnow.svg");
}

.weather-icon.WD_PTY_Snowy {
  background-image: url("../img/WD_PTY_Snowy.svg");
}

.weather-temp {
  font-size: 12px;
  line-height: 16px;
  color: #e5e7eb;
  letter-spacing: -0.01em;
  font-weight:300;
}

.weather-temp strong {
  font-weight: 500;
  font-size: 14px
}

.badge {
  border-radius: 50px;
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  flex-shrink: 0
}

.badge-green { background: #00a63e; color: #fff; }
.badge-light { background: var(--grey-10); color: #0a0a0a; }
.badge-amber { background: var(--iw-warning); color: #fff; }
.badge-red { background: #d4183d; color: #fff; }

.desc {
  color: #d1d5dc;
  font-size: 10px;
  line-height: 14px;
}

.clock {
  text-align: right;
  line-height: 1.2;
  width: 80px;
}

.topbar-theme-toggle {
  width: 32px;
  height: 16px;
  padding: 1px 0;
  background: transparent;
  border: 0.75px solid #364153;
  border-radius: 999px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

/* 헤더 주간야간/토글버튼 */
.top-right .topbar-theme-toggle {
  height: 30px;
  padding: 0;
  width: unset;
  min-width: 80px;
  border-radius: 50px;
  margin: 0;
  display: none;
}

.topbar-theme-toggle .tab {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  min-width: 0;
  font-size: 0;
  line-height: 1;
  color: #6b7280;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar-theme-toggle .tab.active {
  color: #ffffff;
}

.theme-toggle-icon {
  width: 12px;
  height: 12px;
  display: block;
  opacity: 0.6;
  filter: grayscale(1) brightness(0.85);
}

.time-text {
  font-size: 12px;
  line-height: 17px;
}

.date-text {
  font-size: 10px;
  line-height: 14px;
  color: #99a1af;
}

/* ==========================================================================
   Left Mini Navigation
   좌측 축소 메뉴 및 로그인 상태 아이콘
   ========================================================================== */
.left-mini {
  position: fixed;
  left: 0;
  top: 42px;
  bottom: 0;
  width: 63px;
  min-height: 0;
  background: #1e2939;
  border-right: 1px solid #364153;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 6px 24px;
  z-index: 20;
  overflow: hidden;
}

.left-mini-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.left-mini-group-login {
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #364153;
}

.mini-item {
  width: 50px;
  min-height: 50px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background-color 0.24s ease, color 0.24s ease, box-shadow 0.24s ease;
}

.road-info-panel .road-status-line[data-field="road-crosswalk"] {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-item img {
  width: 12px;
  height: 12px;
  transition: filter 0.24s ease;
}

.mini-item span {
  font-size: 12px;
  line-height: 14px;
  letter-spacing: -0.25px;
  color: #ffffff4d;
  font-weight: 600;
}



.mini-item-login img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(79%) sepia(20%) saturate(1080%) hue-rotate(183deg) brightness(103%) contrast(101%);
}

.mini-item-login.is-logged-in {
  position: relative;
}

/* 로그인 On 표시 */
.mini-item-login.is-logged-in::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00a63e;
  /* border: 1.5px solid #1e2939; */
  box-shadow: 0 0 0 3px rgba(0, 166, 62, 0.12);
  display:none;
}

.mini-item-login.active img,
.mini-item-login:hover img,
.mini-item-login:focus-visible img,
.stage.day-mode .mini-item-login img,
.stage.day-mode .mini-item-login.active img,
.stage.day-mode .mini-item-login:hover img,
.stage.day-mode .mini-item-login:focus-visible img {
  filter: brightness(0) saturate(100%) invert(79%) sepia(20%) saturate(1080%) hue-rotate(183deg) brightness(103%) contrast(101%);
}

.stage:not(.day-mode) .mini-item-login img,
.stage:not(.day-mode) .mini-item-login.active img,
.stage:not(.day-mode) .mini-item-login:hover img,
.stage:not(.day-mode) .mini-item-login:focus-visible img {
  filter: brightness(0) saturate(100%) invert(100%);
}

.stage.day-mode .mini-item-login.is-logged-in::after {
  border-color: #f5f5f5;
}

.mini-item.active {
  background: #296bff;
  color: #ffffff;
}

.mini-item:hover,
.mini-item:focus-visible {
  background: #296bff;
  color: #ffffff;
}

.mini-item.active span{
  color: #ffffff;
  font-weight: 500;
}

.mini-item span:hover{
  color:#ffffff;
}

.mini-item:focus-visible {
  outline: 2px solid #8db4ff;
  outline-offset: 1px;
}

/* ==========================================================================
   Left Side Shell
   좌측 대시보드 패널과 관리 메뉴 공통 골격
   ========================================================================== */
.left-panel {
  position: absolute;
  left: var(--left-mini-width);
  top: var(--dashboard-top-offset);
  width: var(--left-panel-width);
  height: var(--dashboard-panel-height);
  background: #1e2939;
  border-right: 1px solid #364153;
  z-index: 10;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-l);
}

.manage-menu {
  position: absolute;
  left: var(--left-mini-width);
  top: var(--dashboard-top-offset);
  width: var(--left-panel-width);
  height: var(--dashboard-panel-height);
  background: #1e2939;
  border-right: 1px solid #364153;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 16px;
  z-index: 10;
}

.manage-menu-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.manage-menu-title img {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(100%);
}

.manage-menu-item {
  width: 100%;
  min-height: 52px;
  border: 1px solid #364153;
  border-radius: 8px;
  background: #243244;
  color: #d1d5dc;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  text-align: left;
  padding: 0 18px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.manage-menu-item img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(87%) sepia(7%) saturate(204%) hue-rotate(176deg) brightness(93%) contrast(90%);
}

.manage-menu-label {
  flex: 1;
}

.manage-menu-item:hover,
.manage-menu-item:focus-visible,
.manage-menu-item.active {
  background: #296bff;
  border-color: #296bff;
  color: #ffffff;
}

.manage-menu-item:hover img,
.manage-menu-item:focus-visible img,
.manage-menu-item.active img {
  filter: brightness(0) saturate(100%) invert(100%);
}

.manage-menu-item:focus-visible {
  outline: 2px solid #8db4ff;
  outline-offset: 1px;
}

.manage-main {
  position: absolute;
  top: var(--dashboard-top-offset);
  left: calc(var(--left-mini-width) + var(--left-panel-width));
  width: calc(100% - (var(--left-mini-width) + var(--left-panel-width)));
  height: var(--dashboard-panel-height);
  padding: 12px;
}

.login-main {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  padding: 24px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
}

.login-panel {
  width: 420px;
  border-radius: 18px;
  border: 1px solid #364153;
  background: #101828;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  padding: 28px;
}

.login-panel-head {
  margin-bottom: 24px;
}

.login-panel-eyebrow {
  color: #8db4ff;
  font-size: 16px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: center;
}

.login-panel h2 {
  color: #ffffff;
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.login-panel-desc {
  color: #99a1af;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-field span {
  color: #d1d5dc;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  display: none;
}

.login-field input {
  width: 100%;
  height: 46px;
  border: 1px solid #364153;
  border-radius: 12px;
  background: #1e2939;
  color: #ffffff;
  padding: 0 16px;
  font-size: 14px;
  line-height: 20px;
}

.login-field input::placeholder {
  color: #6b7280;
}

.login-field input:focus {
  outline: 2px solid #8db4ff;
  outline-offset: 1px;
}

.login-submit {
  width: 100%;
  height: 48px;
  border: 1px solid #296bff;
  border-radius: 12px;
  background: #296bff;
  color: #ffffff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  margin-top: 8px;
}

.login-signup-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(54, 65, 83, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.login-signup-text {
  color: #99a1af;
  font-size: 13px;
  line-height: 18px;
}

.login-signup-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--grey-50);
  background: transparent;
  color: #dbe7ff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 50px;
}

span.login-signup-button-span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* 관리자 로그인 전용 화면
   - loginMgrMain.jsp의 admin-login-* 클래스에서만 동작하도록 범위를 제한한다.
   - 로그인 기능/입력 구조는 기존 login-form을 그대로 사용하고, 배경/카드/버튼 톤만 관리자용으로 덮어쓴다.
*/
.admin-login-page {
  background: #e9edf3;
}

.admin-login-viewport {
  background: #e9edf3;
}

.admin-login-stage {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0%, rgba(233, 237, 243, 0) 44%),
    #e9edf3;
}

.admin-login-main {
  padding: 32px 20px;
}

.admin-login-panel {
  position: relative;
  width: min(100%, 440px);
  border-radius: 4px;
  border: 1px solid #c9ced8;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(31, 41, 55, 0.12);
  padding: 44px 44px 38px;
}

.admin-login-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: #111827;
}

.admin-login-panel .login-panel-head {
  margin-bottom: 30px;
}

.admin-login-panel .login-panel-eyebrow {
  color: #6b7280;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}

.admin-login-panel .login-panel h2,
.admin-login-panel h2 {
  color: #111827;
  font-size: 26px;
  line-height: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-login-panel .login-panel-desc {
  color: #6b7280;
  font-size: 13px;
  line-height: 20px;
}

.admin-login-panel .login-form {
  gap: 14px;
}

.admin-login-panel .login-field span {
  display: block;
  color: #374151;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
}

.admin-login-panel .login-field input {
  height: 48px;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  background: #f9fafb;
  color: #111827;
  padding: 0 14px;
}

.admin-login-panel .login-field input::placeholder {
  color: #9ca3af;
}

.admin-login-panel .login-field input:hover {
  border-color: #9ca3af;
}

.admin-login-panel .login-field input:focus {
  border-color: #111827;
  background: #ffffff;
  outline: 2px solid rgba(17, 24, 39, 0.18);
  outline-offset: 1px;
}

.admin-login-panel .login-submit {
  height: 48px;
  border-color: #111827;
  border-radius: 3px;
  background: #111827;
  color: #ffffff;
  margin-top: 10px;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.admin-login-panel .login-submit:hover,
.admin-login-panel .login-submit:focus-visible {
  border-color: #374151;
  background: #374151;
}

.admin-login-panel .login-submit:active {
  transform: translateY(1px);
}

@media (max-width: 520px) {
  .admin-login-panel {
    padding: 36px 24px 30px;
  }
}

.login-signup-arrow {
  font-size: 15px;
  line-height: 1;
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Account Request
   계정 신청/승인 요청 화면
   ========================================================================== */
.account-request-main {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}

.account-request-panel {
  width: min(1180px, 100%);
  height: 100%;
  max-height: calc(var(--dashboard-panel-height) - 48px);
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  padding: 28px 32px 32px;
  overflow: auto;
}

.account-request-header {
  margin-bottom: 28px;
}

.account-request-title {
  color: #111827;
  font-size: 30px;
  line-height: 1.3;
  font-weight: 600;
  text-align: center;
}

.account-request-form {
  width: min(360px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-request-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-request-label {
  color: #374151;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.account-request-label i {
  color: #ff7b7b;
  font-style: normal;
}

.account-request-field input,
.account-request-field select {
  width: 100%;
  height: 46px;
  border: 1px solid #d9d9e0;
  border-radius: 10px;
  background: #f9fafb;
  color: #111827;
  padding: 0 16px;
  font-size: 14px;
  line-height: 20px;
}

.account-request-field input::placeholder {
  color: #9ca3af;
}

.account-request-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #4b5563 50%), linear-gradient(135deg, #4b5563 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 1px), calc(100% - 15px) calc(50% - 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.account-request-field input:focus,
.account-request-field select:focus {
  outline: 2px solid rgba(141, 180, 255, 0.75);
  outline-offset: 1px;
}

.account-request-hint {
  font-size: 11px;
  line-height: 15px;
  margin-top: -4px;
}

.account-request-hint.is-error {
  color: #dc2626;
}

.account-request-submit {
  width: 100%;
  height: 48px;
  border: 1px solid #296bff;
  border-radius: 12px;
  background: #296bff;
  color: #ffffff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  margin-top: 10px;
}


/* ========================================================================== */
