@charset "UTF-8";

/* Management Page Base
   차량/노선/스케줄/이력 관리 화면 공통 레이아웃
   Edit this split CSS file directly. */
.manage-section {
  height: 100%;
  border: 1px solid #364153;
  border-radius: 12px;
  background: #ffffff;
  padding: 24px;
}

.manage-section h2,
.vehicle-manage-header h2,
.section-title {

  color: #ffffff;
  font-size: 20px;
  line-height: 2;
  font-weight: 600;
}

.manage-section p,
.vehicle-manage-header p,
.section-desc {
  color: #99a1af;
  font-size: 15px;
  line-height: 20px;
}

.vehicle-manage-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  overflow: auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

/* --------------------------------------------------------------------------
   Sensor History
   센서 이력 조회 필터, 캘린더, 요약/테이블 패널
   -------------------------------------------------------------------------- */
.sensor-history-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.sensor-history-header {
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex-shrink: 0;
}

.sensor-history-toolbar {
  display: flex;
  align-items: stretch;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.sensor-history-filter-group {
  display: flex;
  align-items: stretch;
  border: 1px solid #364153;
  border-radius: 12px;
  background: #1e2939;
  overflow: hidden;
}

.sensor-history-filter {
  display: flex;
  align-items: stretch;
  /* min-width: 320px; */
}

.sensor-history-filter-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 0 18px;
  border-right: 1px solid #364153;
  background: #101828;
  color: #d1d5dc;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.sensor-history-select-wrap{
  position: relative;
  flex: 1;
}

.sensor-history-date-field {
  position: relative;
  flex: 0 0 96px;
  width: 96px;
}


.sensor-history-select-wrap {
  border-radius: 0 10px 10px 0;
  overflow: hidden;
}

.sensor-history-select,
.sensor-history-date-input {
  width: 100%;
  height: 40px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #ffffff;
  padding: 0 14px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  font-family: inherit;
}

.sensor-history-select:focus,
.sensor-history-date-input:focus {
  outline: none;
}

.sensor-history-select:focus-visible,
.sensor-history-date-input:focus-visible {
  outline: 2px solid #8db4ff;
  outline-offset: -2px;
}

.sensor-history-select {
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #9ca3af 50%),
    linear-gradient(135deg, #9ca3af 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.sensor-history-date-group {
  min-width: 330px;
  position: relative;
  overflow: visible;
  border-radius: 10px;
}

.sensor-history-date-range {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  padding: 0 80px 0 18px;
}

.sensor-history-date-divider {
  color: #d1d5dc;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  flex: 0 0 auto;
}

.sensor-history-date-trigger {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.sensor-history-date-trigger img {
  position: static;
  width: 20px;
  height: 20px;
  /* opacity: 0.85; */
  pointer-events: none;
}

.sensor-history-date-trigger:focus-visible {
  outline: 2px solid #8db4ff;
  outline-offset: 1px;
}

.sensor-history-date-input {
  border: 0;
  border-radius: 0;
  padding: 0;
  color: #ffffff;
}

.sensor-history-date-input::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.sensor-history-date-field:first-child .sensor-history-date-trigger {
  display: none;
}

.sensor-history-date-field:last-child .sensor-history-date-trigger {
  right: -40px;
}

.sensor-history-calendar {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
}

.sensor-history-calendar-panel {
  width: min(100vw - 120px, 400px);
  border: 1px solid #d9d9e0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 36, 0.2);
  overflow: hidden;
}

.sensor-history-calendar-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #eef2f7;
}

.sensor-history-calendar-nav {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #202632;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.sensor-history-calendar-nav img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
}

.sensor-history-calendar-selects {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.sensor-history-calendar-select-wrap {
  position: relative;
}

.sensor-history-calendar-select-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  background-color: #202632;
  transform: translateY(-50%);
  pointer-events: none;
  -webkit-mask: url("../img/CaretDown.svg") no-repeat center / contain;
  mask: url("../img/CaretDown.svg") no-repeat center / contain;
}

.sensor-history-calendar-select {
  min-width: 92px;
  border: 0;
  background: transparent;
  color: #202632;
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  text-align-last: center;
  appearance: none;
  padding: 0 28px 0 0;
  cursor: pointer;
}

.sensor-history-calendar-body {
  padding: 14px 16px 16px;
}

.sensor-history-calendar-weekdays,
.sensor-history-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.sensor-history-calendar-weekdays {
  margin-bottom: 6px;
}

.sensor-history-calendar-weekdays span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  color: #202632;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
}

.sensor-history-calendar-grid {
  gap: 4px 0;
}

.sensor-history-calendar-day {
  position: relative;
  width: 100%;
  height: 36px;
  border: 0;
  background: transparent;
  color: #4b5563;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  cursor: pointer;
}

.sensor-history-calendar-day::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

.sensor-history-calendar-day span {
  position: relative;
  z-index: 1;
}

.sensor-history-calendar-day.is-other-month {
  color: #c7cbd1;
}

.sensor-history-calendar-day.is-in-range::before {
  background: #dce8ff;
}

.sensor-history-calendar-day.is-range-start::before,
.sensor-history-calendar-day.is-range-end::before {
  background: #2f6ae6;
}

.sensor-history-calendar-day.is-range-start::before {
  border-radius: 999px 0 0 999px;
}

.sensor-history-calendar-day.is-range-end::before {
  border-radius: 0 999px 999px 0;
}

.sensor-history-calendar-day.is-range-start.is-range-end::before {
  border-radius: 999px;
}

.sensor-history-calendar-day.is-range-start span,
.sensor-history-calendar-day.is-range-end span {
  color: #ffffff;
}

.sensor-history-calendar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 16px 16px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

.sensor-history-calendar-btn {
  min-width: 72px;
  height: 38px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sensor-history-calendar-btn-cancel {
  border: 1px solid #202632;
  background: #ffffff;
  color: #202632;
}

.sensor-history-calendar-btn-cancel:hover,
.sensor-history-calendar-btn-cancel:focus-visible {
  border-color: #bfc6d3;
  background: #f8fafc;
  color: #111827;
}

.sensor-history-calendar-btn-confirm {
  border: 1px solid #2f6ae6;
  background: #2f6ae6;
  color: #ffffff;
}

.sensor-history-calendar-btn-confirm:hover,
.sensor-history-calendar-btn-confirm:focus-visible {
  border-color: var(--color-primary-active);
  background: var(--color-primary-active);
}

.sensor-history-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-left: auto;
  justify-content: space-between;
  flex: 1;
}

.sensor-history-action {
  min-width: 108px;
  /* height: 40px; */
  border-radius: 10px;
  border: 1px solid var(--color-primary-active);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sensor-history-action-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  
}


.sensor-history-action-primary {
  background: var(--color-primary-active);
  color: #ffffff;
}

.sensor-history-action-secondary {
  background: #1e2939;
  color: #dbeafe;
  border:var(--color-border-soft);
}

.sensor-history-action:hover,
.sensor-history-action:focus-visible {
  box-shadow: none;
  background:var(--grey-30);
  border:none;
}

.sensor-history-action-secondary:hover,
.sensor-history-action-secondary:focus-visible  {
  background: var(--grey-20)!important;
  color: #ffffff!important;
}

.sensor-history-summary-panel,
.sensor-history-table-panel {
  /* border: 1px solid #364153; */
 /*  border-radius: 14px; */
  background: #1e2939;
  overflow: hidden;
}

.sensor-history-summary-panel {
  flex-shrink: 0;
}

.sensor-history-table-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sensor-history-panel-head {
  padding: 24px 0px 12px;
}

.user-management-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sensor-history-panel-head h3 {
  color: #ffffff;
  font-size: 16px;
  line-height: 26px;
  font-weight: 700;
}

.sensor-history-summary-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  padding: 32px 28px;
  background: #F7F7F9;
  border-radius : 4px;
}

.sensor-history-summary-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid #364153;
  border-radius: 12px;
  background: #101828;
  text-align: center;
}

.sensor-history-summary-card strong {
  color: #d1d5dc;
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
}

.sensor-history-summary-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex: 0 0 auto;
}

.sensor-history-summary-card span {
  color: #ffffff;
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sensor-history-summary-card span b {
  font-weight: 500;
  font-size: 24px;
}

.sensor-history-summary-card span small {
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
}

.sensor-history-summary-card em {
  color: #8db4ff;
  font-size: 14px;
  line-height: 24px;
  font-style: normal;
  font-weight: 400;
}

.sensor-history-table-unit {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 22px;
  padding: 0 4px 8px;
  color: var(--grey-30);
  font-size: 13px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sensor-history-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 0px 20px;
  overflow-x: auto;
  overflow-y: auto;
  max-height: clamp(240px, 34vh, 420px);
}

.sensor-history-table {
  width: 100%;
  min-width: 1074px;
  border-collapse: collapse;
  table-layout: fixed;
}


.sensor-history-table thead th {
  height: 52px;
  border: 1px solid #e5e7eb;
  border-bottom: 1px solid #71717a;
  color: #ffffff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
}



.sensor-history-table tbody td {
  height: 56px;
  border: 1px solid #e5e7eb;
  background: #1e2939;
  color: #d1d5dc;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  vertical-align: middle;
  padding: 10px 12px;
}

.sensor-history-table tbody td:nth-child(-n+3) {
  background: #162235;
  color: #ffffff;
}

.sensor-history-table tbody td:last-child {
  background: #162235;
  color: #ffffff;
}

.drive-history-section {
  gap: 16px;
}

.sensor-history-main-section {
  gap: 16px;
}

.sensor-history-main-section .sensor-history-table-grid {
  display: flex;
  flex: 1 1 auto;
  min-height: clamp(320px, 42vh, 520px);
}

.sensor-history-main-section .sensor-history-table-panel {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}

.sensor-history-main-section .sensor-history-table-wrap {
  max-height: 100%;
}

.sensor-history-main-section .sensor-history-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1e2939;
}

.drive-history-chart-grid,
.drive-history-table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.drive-history-section .sensor-history-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.drive-history-chart-panel,
.drive-history-table-grid .sensor-history-table-panel {
  min-height: 0;
}

.drive-history-chart-body {
  padding: 0;
}

.drive-history-chart-canvas {
  position: relative;
  height: 360px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  margin-right: 4px;
  padding: 16px;
}



.drive-history-chart-canvas.is-chart-ready .drive-history-chart-fallback {
  display: none;
}

.drive-history-chart-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
}

.drive-history-table {
  min-width: 598px;
}

.vehicle-operation-threshold-table tbody td:nth-child(2),
.vehicle-operation-threshold-table tbody td:nth-child(3) {
  background: #ffffff;
  color: #202632;
}

.event-history-event-table tbody td:nth-child(4),
.event-history-log-table tbody td:nth-child(4) {
  background: #ffffff;
  color: #202632;
}

.boarding-history-table tbody td {
  background: #ffffff;
  color: #202632;
}

.boarding-history-table tbody td:nth-child(-n+3),
.boarding-history-table tbody td:last-child {
  background: #ffffff;
  color: #202632;
}

.boarding-history-daily-table tbody td:nth-child(3) {
  background: #ffffff;
  color: #202632;
}

.boarding-history-toolbar .sensor-history-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background-color: #6b7280;
  pointer-events: none;
  -webkit-mask: url("../img/MdDropdown.svg") no-repeat center / contain;
  mask: url("../img/MdDropdown.svg") no-repeat center / contain;
}

.run-history-toolbar .sensor-history-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background-color: #6b7280;
  pointer-events: none;
  -webkit-mask: url("../img/MdDropdown.svg") no-repeat center / contain;
  mask: url("../img/MdDropdown.svg") no-repeat center / contain;
}

.usage-access-section {
  gap: 20px;
}

.usage-access-period-group {
  flex: 0 0 240px;
}

.usage-access-period-group .sensor-history-filter,
.usage-access-dept-group .sensor-history-filter {
  min-width: 100%;
}

.usage-access-dept-group {
  flex: 0 0 240px;
}

.usage-access-dept-group[hidden],
.usage-access-date-group[hidden] {
  display: none;
}

.usage-access-period-group .sensor-history-select-wrap::after,
.usage-access-dept-group .sensor-history-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background-color: #6b7280;
  pointer-events: none;
  -webkit-mask: url("../img/MdDropdown.svg") no-repeat center / contain;
  mask: url("../img/MdDropdown.svg") no-repeat center / contain;
}

.sensor-history-section .sensor-history-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background-color: #6b7280;
  pointer-events: none;
  -webkit-mask: url("../img/MdDropdown.svg") no-repeat center / contain;
  mask: url("../img/MdDropdown.svg") no-repeat center / contain;
}

/* .usage-access-date-group {
  flex: 1 1 420px;
} */

/* .usage-access-actions {
  margin-left: auto;
} */

.usage-access-login-table tbody td,
.usage-access-menu-table tbody td {
  background: #ffffff;
  color: #202632;
}

.user-management-section {
  gap: 20px;
  height: 100%;
  overflow: hidden;
}

.user-management-toolbar {
  gap: 12px;
}

.user-management-filter-group {
  flex: 0 0 200px;
}

.user-management-filter-group .sensor-history-filter {
  width: 100%;
}

.user-management-filter-group .sensor-history-select-wrap {
  min-width: 0;
  flex: 1 1 auto;
}

.user-management-search-group {
  flex: 1 1 320px;
  min-height: 40px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: stretch;
}

.user-management-search-control {
  flex: 1;
  border: 1px solid #d9d9e0;
  border-radius: 12px 0 0 12px;
}

.user-management-search-input {
  width: 100%;
  height: 40px;
  border: 0;
  background: transparent;
  color: #111827;
  padding: 0 14px;
  font-size: 14px;
  line-height: 20px;
  font-family: inherit;
}

.user-management-search-input::placeholder {
  color: #9ca3af;
}

.user-management-search-input:focus {
  outline: none;
}

.user-management-search-button {
  min-width: 92px;
  border-radius: 0 12px 12px 0;
}

.user-management-table-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.user-management-table-panel .sensor-history-table-wrap {
  flex: 1 1 auto;
  max-height: none;
  overflow-y: auto;
}

.user-management-table tbody td,
.user-management-table tbody td:nth-child(-n+3),
.user-management-table tbody td:last-child {
  background: #ffffff;
  color: #202632;
}

.user-management-row {
  cursor: pointer;
}

.user-management-row.is-selected td {
  background: #eaf2ff;
  color: #0f172a;
}

.user-management-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding: 0 20px 20px;
  margin-top: 1.5rem;
  gap: 16px;
}

.user-management-open-button {
  min-width: 120px;
  height: 40px;
  border: 1px solid #296bff;
  border-radius: 10px;
  background: #296bff;
  color: #ffffff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  padding: 0 18px;
/*   grid-column: 3;
  justify-self: end; */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.user-management-open-button:hover,
.user-management-open-button:focus-visible {
  border-color: #1f5ae6;
  background: #1f5ae6;
}

.manage-pagination {
  grid-column: 2;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.manage-pagination-nav {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.manage-pagination-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  color: #4b5563;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  padding: 0;
}

.manage-pagination-link img {
  width: 16px;
  height: 16px;
  display: block;
  filter: brightness(0);
}

.manage-pagination-jump {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.manage-pagination-input {
  width: 36px;
  height: 36px;
  border: 1px solid #a3a3a3;
  border-radius: 10px;
  background: #ffffff;
  color: #202632;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  text-align: center;
  padding: 0;
}

.manage-pagination-input[readonly] {
  color: #202632;
  background: #ffffff;
}

.manage-pagination-total {
  color: #4b5563;
  font-size: 13px;
  line-height: 22px;
  font-weight: 500;
}

.manage-pagination-submit {
  min-width: 42px;
  height: 36px;
  border: 1px solid #296bff;
  border-radius: 10px;
  background: #eff6ff;
  color: #296bff;
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  padding: 0 14px;
}

@media (max-width: 900px) {
  .user-management-footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .manage-pagination,
  .user-management-open-button {
    grid-column: 1;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .manage-pagination-nav {
    gap: 16px;
  }

  .manage-pagination-jump {
    gap: 8px;
  }
}

/* --------------------------------------------------------------------------
   User Management
   사용자 관리 모달, 권한, 비밀번호 피드백
   -------------------------------------------------------------------------- */
.user-management-modal .manage-modal-dialog {
  width: min(100vw - 32px, 560px);
}

/* 사용자 상세 모달 스크롤 구조
   - 모달 전체가 아니라 입력 컨텐츠 영역(user-management-form)만 스크롤한다.
   - 헤더(manage-modal-head)와 하단 버튼(user-management-modal-actions)은 고정 영역으로 유지한다.
   - 고정 height 대신 max-height + flex shrink 구조를 사용해 해상도 변화에 대응한다.
*/
.manage-modal.manage-modal-light.user-management-modal .manage-modal-dialog {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  overflow: hidden !important;
  scrollbar-gutter: auto !important;
}

.manage-modal.manage-modal-light.user-management-modal .manage-modal-head,
.manage-modal.manage-modal-light.user-management-modal .user-management-modal-actions {
  flex: 0 0 auto;
}

.manage-modal.manage-modal-light.user-management-modal .user-management-form {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding-right: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.manage-modal.manage-modal-light.user-management-modal .user-management-form::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.manage-modal.manage-modal-light.user-management-modal .user-management-modal-actions {
  padding-top: 12px;
}

.user-management-form input[readonly] {
  background: #f3f4f6;
  color: #6b7280;
}

.user-management-password-feedback {
  font-size: 12px;
  line-height: 16px;
}

.user-management-password-feedback.is-success {
  color: #22c55e;
}

.user-management-password-feedback.is-error {
  color: #ef4444;
}

.user-management-role-group {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 42px;
}

.user-management-role-field {
  border: 0;
  margin: 0;
  padding: 0;
}

.user-management-role-field > legend {
  color: #374151 !important;
  font-size: 14px !important;
  line-height: 18px;
  font-weight: 600;
}

.user-management-role-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-size: 16px;
  line-height: 20px;
}

.user-management-role-option input {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}
 
/* --------------------------------------------------------------------------
   IP Management
   접근 IP 관리 목록, 선택 상태, 사용자 검색
   -------------------------------------------------------------------------- */
.ip-management-toolbar {
  gap: 12px;
}

.ip-management-search-key-group {
  flex: 0 0 250px;
}

.ip-management-search-key-group .sensor-history-filter {
  width: 100%;
}

.ip-management-search-key-group .sensor-history-select-wrap {
  min-width: 0;
  flex: 1 1 auto;
}

.ip-management-search-group {
  flex: 1 1 420px;
}

.ip-management-table tbody td,
.ip-management-table tbody td:nth-child(-n+3),
.ip-management-table tbody td:last-child {
  background: #ffffff;
  color: #202632;
}

.ip-management-row {
  cursor: pointer;
}

.ip-management-row.is-selected td {
  background: #eaf2ff;
  color: #0f172a;
}

.ip-management-open-button {
  min-width: 96px;
}

.ip-management-modal .manage-modal-dialog {
  width: min(100vw - 32px, 520px);
  transition: transform 0.24s ease;
}

/* IP 상세 모달 스크롤 구조
   - 모달 전체가 아니라 입력 컨텐츠 영역(ip-management-form)만 스크롤한다.
   - 헤더(manage-modal-head)와 하단 버튼(ip-management-modal-actions)은 고정 영역으로 유지한다.
   - 공통 모달의 scrollbar-gutter 예약 공간을 해제해 개발자 모드/일반 모드 폭 차이를 줄인다.
*/
.manage-modal.manage-modal-light.ip-management-modal .manage-modal-dialog {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  overflow: hidden !important;
  scrollbar-gutter: auto !important;
}

.manage-modal.manage-modal-light.ip-management-modal .manage-modal-head,
.manage-modal.manage-modal-light.ip-management-modal .ip-management-modal-actions {
  flex: 0 0 auto;
}

.manage-modal.manage-modal-light.ip-management-modal .ip-management-form {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.manage-modal.manage-modal-light.ip-management-modal .ip-management-form::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.manage-modal.manage-modal-light.ip-management-modal .ip-management-modal-actions {
  padding-top: 12px;
}

/* 사용자 목록 보조 팝업이 열릴 때 상세 모달을 왼쪽으로 이동해 두 창을 나란히 보여준다. */
.ip-management-modal.is-user-lookup-open .manage-modal-dialog {
  transform: translateX(-280px);
}

/* 상세 모달과 사용자 목록 보조 팝업이 함께 열릴 때도 세로 기준은 공통 모달처럼 중앙 정렬을 유지한다. */
.manage-modal.ip-management-modal.is-user-lookup-open {
  align-items: center;
}

.ip-management-form input[readonly] {
  background: #f3f4f6;
  color: #374151;
}

.ip-management-user-search-button {
  width: 100%;
  height: 44px;
  margin-bottom: 4px;
}

.ip-management-status-group {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 42px;
  flex-wrap: wrap;
}

.ip-management-status-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-size: 14px;
  line-height: 20px;
}

.ip-management-status-option input {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

/* 사용자 목록 보조 팝업
   - 별도 백드롭을 쓰지 않고 상세 모달 오른쪽에 뜨는 보조 선택 패널이다.
   - modal 컨테이너는 클릭을 통과시키고, 실제 dialog만 클릭 가능하게 둔다. */
.manage-modal.ip-user-lookup-modal {
  align-items: center;
  z-index: 60;
  pointer-events: none;
}

/* 상세 모달의 백드롭만 사용해 화면 어둡기를 유지하므로 사용자 목록 쪽 백드롭은 숨긴다. */
.ip-user-lookup-modal .manage-modal-backdrop {
  display: none;
}

/* 상세 모달과 나란히 배치하기 위해 사용자 목록 패널만 오른쪽으로 이동한다. */
.ip-user-lookup-dialog {
  width: min(100vw - 48px, 560px) !important;
  max-height: calc(100vh - 64px);
  padding: 32px 34px 30px !important;
  border-radius: 16px !important;
  overflow: auto !important;
  pointer-events: auto;
  transform: translateX(284px);
}

.ip-user-lookup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.ip-user-lookup-head h3 {
  color: #111827;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
}

.ip-user-lookup-search {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 80px;
  gap: 12px;
  margin-bottom: 24px;
}

/* 검색 기준 select의 드롭다운 아이콘은 이력조회/관리 화면에서 공통으로 쓰는 MdDropdown.svg를 재사용한다. */
.ip-user-lookup-select-wrap,
.ip-user-lookup-select,
.ip-user-lookup-input,
.ip-user-lookup-search-button {
  height: 42px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  line-height: 20px;
}

.ip-user-lookup-select-wrap {
  position: relative;
  display: block;
}

.ip-user-lookup-select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background-color: #6b7280;
  pointer-events: none;
  -webkit-mask: url("../img/MdDropdown.svg") no-repeat center / contain;
  mask: url("../img/MdDropdown.svg") no-repeat center / contain;
}

.ip-user-lookup-select {
  width: 100%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  padding: 0 46px 0 20px;
  font-weight: 600;
  -webkit-appearance: none;
  appearance: none;
}

.ip-user-lookup-select:focus {
  outline: 2px solid rgba(141, 180, 255, 0.75);
  outline-offset: 1px;
}

.ip-user-lookup-input {
  min-width: 0;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  padding: 0 16px;
}

.ip-user-lookup-input:focus {
  outline: 2px solid rgba(141, 180, 255, 0.75);
  outline-offset: 1px;
}

.ip-user-lookup-search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--color-primary-deep);
  color: #ffffff;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ip-user-lookup-search-button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.ip-user-lookup-search-button:hover,
.ip-user-lookup-search-button:focus-visible {
  background: var(--grey-30);
  }

.ip-user-lookup-table-wrap {
  max-height: 440px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.42) transparent;
}

.ip-user-lookup-table-wrap::-webkit-scrollbar {
  width: 10px;
}

.ip-user-lookup-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.ip-user-lookup-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
  background-clip: padding-box;
}

.ip-user-lookup-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(203, 213, 225, 0.6);
  background-clip: padding-box;
}

.ip-user-lookup-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.ip-user-lookup-table thead th {
  height: 48px;
  background: #f3f4f6;
  color: #111827;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
}

.ip-user-lookup-table tbody td {
  height: 54px;
  border-bottom: 1px solid #edf0f4;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  vertical-align: middle;
}

.ip-user-lookup-row {
  cursor: pointer;
}

.ip-user-lookup-row:hover td,
.ip-user-lookup-row:focus-visible td {
  background: #f4f8ff;
}

.ip-user-lookup-row:focus-visible {
  outline: 2px solid rgba(141, 180, 255, 0.75);
  outline-offset: -2px;
}

.ip-user-lookup-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0 0;
}

.ip-user-lookup-pages {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ip-user-lookup-page {
  min-width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111827;
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ip-user-lookup-page.is-active {
  background: #f0f1f3;
}

.ip-user-lookup-page:hover,
.ip-user-lookup-page:focus-visible {
  background: #e5e7eb;
}

@media (max-width: 720px) {
  .ip-user-lookup-dialog {
    padding: 32px 24px 28px !important;
  }

  .ip-user-lookup-search {
    grid-template-columns: 1fr;
  }

  .ip-user-lookup-footer {
    margin-top: 22px;
  }

}

/* --------------------------------------------------------------------------
   Common Code Management
   공통 코드 관리 시안 레이아웃
   -------------------------------------------------------------------------- */
.common-code-section {
  gap: 24px;
  height: 100%;
  overflow: hidden;
}

.common-code-header {
  gap: 10px;
}

.common-code-panel .sensor-history-panel-head {
  padding-right: 0;
}

.common-code-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.common-code-title img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(100%);
  flex-shrink: 0;
}

.common-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  flex: 1 1 auto;
  min-height: 0;
}

.common-code-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 12px;
}

.common-code-open-button {
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.common-code-open-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.common-code-open-symbol img {
  width: 14px;
  height: 14px;
  display: block;
  filter: brightness(0) saturate(100%) invert(100%);
}

.common-code-table-wrap {
  flex: 1 1 auto;
  min-height: 320px;
  max-height: none;
  padding: 0;
}

.common-code-row {
  cursor: pointer;
}

.common-code-row td {
  transition: background-color 0.18s ease, color 0.18s ease;
}

.common-code-row:not(.is-selected):hover td {
  background: #f4f8ff;
  color: #0f172a;
}

.common-code-row:focus-visible {
  outline: 2px solid #8db4ff;
  outline-offset: -2px;
}

.common-code-row:focus-visible td {
  background: #f4f8ff;
  color: #0f172a;
}

.common-code-row.is-selected td {
  background: rgba(41, 107, 255, 0.1);
  color: #0f172a;
}

.common-code-modal .manage-modal-dialog {
  width: min(100vw - 32px, 460px);
}

/* 코드 등록/상세 모달 스크롤 구조
   - 모달 전체가 아니라 입력 컨텐츠 영역(common-code-modal-form)만 스크롤한다.
   - 헤더(common-code-modal-head)와 하단 버튼(common-code-modal-actions)은 고정 영역으로 유지한다.
   - 공통 모달의 scrollbar-gutter 예약 공간을 해제해 개발자 모드/일반 모드 폭 차이를 줄인다.
*/
.manage-modal.manage-modal-light.common-code-modal .manage-modal-dialog {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  overflow: hidden !important;
  scrollbar-gutter: auto !important;
}

.manage-modal.manage-modal-light.common-code-modal .common-code-modal-head,
.manage-modal.manage-modal-light.common-code-modal .common-code-modal-actions {
  flex: 0 0 auto;
}

.manage-modal.manage-modal-light.common-code-modal .common-code-modal-form {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.manage-modal.manage-modal-light.common-code-modal .common-code-modal-form::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.common-code-modal .manage-modal-head {
  position: relative;
  justify-content: center;
  text-align: center;
}

.common-code-modal .manage-modal-head h3 {
  width: 100%;
  margin-bottom: 0;
}

.common-code-modal .manage-modal-close {
  position: absolute;
  top: 0;
  right: 0;
}

.common-code-modal-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.common-code-code-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.common-code-code-group-labels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}

.common-code-code-label {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.common-code-code-label.is-active {
  color: #111827;
  opacity: 1;
}

.common-code-code-label.is-disabled {
  color: #9ca3af;
  opacity: 0.9;
}

.common-code-code-group-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.common-code-code-group-fields .manage-field {
  gap: 0;
}

.common-code-modal .manage-field textarea {
  width: 100%;
  min-height: 156px;
  border: 1px solid #d9d9e0;
  border-radius: 10px;
  background: #f9fafb;
  color: #111827;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 20px;
  font-family: inherit;
  resize: none;
}

.common-code-modal .manage-field textarea:focus {
  outline: 2px solid rgba(141, 180, 255, 0.75);
  outline-offset: 1px;
  background: #ffffff;
}

.common-code-modal .manage-field input[readonly],
.common-code-modal .manage-field input:disabled {
  background: #eceff3;
  color: #9ca3af;
  cursor: not-allowed;
}

.common-code-description-field {
  margin-top: 2px;
}

.common-code-required {
  color: #ff7b7b;
  font-style: normal;
  margin-right: 4px;
}

.common-code-hidden-label {
  visibility: hidden;
}

.common-code-modal-actions {
  justify-content: center;
  margin-top: 4px;
}

.common-code-modal-actions .manage-modal-btn {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.manage-modal.manage-modal-light.common-code-modal .common-code-modal-actions .manage-modal-btn.primary:hover,
.manage-modal.manage-modal-light.common-code-modal .common-code-modal-actions .manage-modal-btn.primary:focus-visible {
  border-color: #1f5ae6 !important;
  background: #1f5ae6 !important;
  color: #ffffff !important;
}

.manage-modal.manage-modal-light.common-code-modal .common-code-modal-actions .manage-modal-btn.ghost:hover,
.manage-modal.manage-modal-light.common-code-modal .common-code-modal-actions .manage-modal-btn.ghost:focus-visible {
  border-color: #bfc6d3 !important;
  background: #f8fafc !important;
  color: #111827 !important;
}

@media (max-width: 1200px) {
  .common-code-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .common-code-modal-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Complete Dialog Mockup
   처리 완료 다이얼로그 시안 UI
   -------------------------------------------------------------------------- */
.manage-complete-modal {
  z-index: 70;
}

.manage-complete-modal .manage-modal-backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.manage-complete-dialog {
  width: min(100vw - 40px, 356px);
  padding: 0;
  border: none;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 28px 72px rgba(15, 23, 42, 0.22);
}

.manage-complete-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 28px 28px;
}

.manage-complete-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid var(--color-primary);
}

.manage-complete-icon {
  position: relative;
  width: 28px;
  height: 20px;
  transform: rotate(-45deg);
}

.manage-complete-icon::before,
.manage-complete-icon::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--color-primary);
}

.manage-complete-icon::before {
  left: 0;
  bottom: 0;
  width: 6px;
  height: 16px;
}

.manage-complete-icon::after {
  left: 0;
  bottom: 0;
  width: 30px;
  height: 6px;
}

.manage-complete-title {
  margin: 28px 0 12px;
  color: #2a2f3a;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
}

.manage-complete-desc {
  margin-bottom: 24px;
  color: #5b6475;
  font-size: 15px;
  line-height: 1.7;
  word-break: keep-all;
}

.manage-complete-button {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
}

@media (max-width: 640px) {
  .manage-complete-dialog {
    width: min(100vw - 24px, 356px);
    border-radius: 24px;
  }

  .manage-complete-body {
    padding: 28px 20px 20px;
  }

  .manage-complete-title {
    margin-top: 24px;
    font-size: 18px;
  }

  .manage-complete-desc {
    font-size: 14px;
  }

  .manage-complete-button {
    min-height: 56px;
    margin-top: 22px;
  }
}

/* ==========================================================================
   Management Header / Actions
   관리 화면 상단 헤더, 등록 버튼, 주요 액션
   ========================================================================== */
.vehicle-manage-header,
.schedule-manage-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 4px;
  padding-top: 14px;
  /* border-bottom: 1px solid #e5e7eb; */
}

.vehicle-manage-header-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vehicle-manage-header p,
.schedule-manage-header p {
  margin-bottom: 0;
}

.vehicle-manage-add-btn {
  min-width: 84px;
  height: 40px;
  border: 1px solid #296bff;
  border-radius: 10px;
  background: #296bff;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  padding: 0 16px;
}


.vehicle-manage-add-btn:hover{
  background: var(--color-primary-active);
  border:none;
}

.manage-add-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.vehicle-manage-add-btn .manage-add-icon {
  filter: none;
}

.line-manage-add .manage-add-icon {
  filter: none;
}

.vehicle-manage-section .section-title,
.schedule-manage-section .section-title,
.boarding-manage-section .section-title {
  color: #111827;
  line-height: 1.4;
}

.vehicle-manage-section .section-desc,
.schedule-manage-section .section-desc,
.boarding-manage-section .section-desc {
  color: #666666;
}

.schedule-manage-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  overflow: auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

/* --------------------------------------------------------------------------
   Schedule Management
   요일 선택, 상세 패널, 배차/차량 탭
   -------------------------------------------------------------------------- */
   
.schedule-week-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0;
  overflow:visible;
}

.schedule-day-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 14px;
  min-height: 72px;
  border: none;
  border-radius: 12px;
  background: var(--grey-10);
  color: #374151;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-s);
}

.schedule-day-row strong {
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

.schedule-day-row.is-selected,
.schedule-day-row[aria-pressed='true'] {
  border-color: none;
  background: var(--color-primary-active);
  color: #ffffff;
  font-weight: 700;
}

.schedule-day-row:hover {
  border-color: none;
  background: var(--color-primary-active);
  color: #ffffff;;
}

.schedule-day-row:focus-visible {
  outline: 2px solid #8db4ff;
  outline-offset: 2px;
}

.schedule-detail-section {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.schedule-detail-section.is-open {
  display: flex;
}

.schedule-detail-head h3 {
  color: #111827;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
}

.schedule-detail-head p {
  margin-top: 4px;
  color: #6b7280;
  font-size: 13px;
  line-height: 18px;
}

.schedule-tabs {
  width: 100%;
  max-width: 280px;
}

.schedule-tab-panels {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.schedule-tab-panel {
  display: none;
  min-height: 0;
}

.schedule-tab-panel.is-active {
  display: block;
  min-height: 0;
}

.schedule-table-card,
.schedule-vehicle-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.schedule-table-card {
  min-height: 0;
  max-height: clamp(320px, 48vh, 560px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.schedule-table-row {
  display: grid;
  /* grid-template-columns: repeat(5, minmax(0, 1fr)); */
  grid-template-columns: 80px 150px 300px auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #efefef;
  border-radius: 10px;
  background: #ffffff;
  color: #374151;
  font-size: 15px;
  line-height: 18px;
  box-shadow: var(--shadow-s);
  text-align: center;
}

.schedule-table-row:not(.schedule-table-row-head) {
  font-size: 14px;
  /* gap: 24px;
  padding-left: 0; */
}

.schedule-table-row .schedule-table-station {
  grid-column: 4 / 6;
}

.schedule-table-row .schedule-table-empty {
  grid-column: 1 / -1;
}

.schedule-table-row-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 600;
  box-shadow: var(--shadow-s);
}

.schedule-vehicle-card {
  padding: 16px;
  border: 1px solid #efefef;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-s);
}

.schedule-vehicle-card strong {
  display: block;
  color: #111827;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}

.schedule-vehicle-card p {
  margin-top: 6px;
  color: #6b7280;
  font-size: 13px;
  line-height: 18px;
}

/* --------------------------------------------------------------------------
   Moved From scheduleMgmtMain.jsp
   스케줄 관리 커스텀 셀렉트, 검증 상태, 차량 배차 카드 보조 스타일
   -------------------------------------------------------------------------- */
.cs-wrap {
  position: relative;
  width: 100%;
  display: block;
}

.cs-trigger {
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  border: 1px solid #364153;
  border-radius: 10px;
  background-color: #1e2939;
  background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%),
    linear-gradient(135deg, #9ca3af 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 0 34px 0 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  box-sizing: border-box;
  user-select: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-wrap.open .cs-trigger {
  border-radius: 10px 10px 0 0;
  outline: 2px solid #8db4ff;
  outline-offset: 1px;
}

.cs-list {
  display: none;
  position: fixed;
  width: auto;
  background: #1e2939;
  border: 1px solid #364153;
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow-y: auto;
  list-style: none;
  margin-top: 1px;
  padding: 4px 0;
  z-index: 999;
  box-sizing: border-box;
}

.cs-wrap.open .cs-list {
  display: block;
}

.cs-list li {
  padding: 0 14px;
  height: 36px;
  line-height: 36px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-list li:hover{
  background: var(--info-10);
}
.cs-list li.cs-selected {
  background: var(--info-80);
  color: #ffffff;
}

.cs-wrap.is-error .cs-trigger {
  border-color: #f87171;
}

.cs-wrap.is-error.open .cs-trigger {
  outline-color: #f87171;
}

.stage.day-mode .cs-trigger {
  background-color: #f9fafb;
  border-color: #d9d9e0;
  color: #111827;
  background-image: linear-gradient(45deg, transparent 50%, #6b7280 50%),
    linear-gradient(135deg, #6b7280 50%, transparent 50%);
}

.stage.day-mode .cs-list {
  background: #f9fafb;
  border-color: #d9d9e0;
}

.stage.day-mode .cs-list li {
  color: #111827;
}

.stage.day-mode .cs-list li:hover,
.stage.day-mode .cs-list li.cs-selected {
  color: #ffffff;
}

.schedule-manage-modal .cs-trigger {
  background-color: #f9fafb;
  border-color: #d9d9e0;
  color:#000000;
  background-image: linear-gradient(45deg, transparent 50%, #4b5563 50%),
    linear-gradient(135deg, #4b5563 50%, transparent 50%);
}

.schedule-manage-modal .cs-wrap.open .cs-trigger {
  outline-color: rgba(141, 180, 255, 0.75);
}

.schedule-manage-modal .cs-wrap.is-error.open .cs-trigger {
  outline-color: #f87171;
}

.schedule-manage-modal .cs-list {
  background: #f9fafb;
  border-color: #d9d9e0;
}

.schedule-manage-modal .cs-list li {
  color: #111827;
}

.schedule-manage-modal .cs-list li:hover,
.schedule-manage-modal .cs-list li.cs-selected {
  color: #ffffff;
}

.schedule-day-toggle-warn {
  margin-top: 6px;
  font-size: 12px;
  color: #f87171;
  white-space: pre-line;
}

.schedule-day-toggle.is-day-error,
.schedule-day-toggle.is-day-error.is-active,
.schedule-day-toggle.is-day-error[aria-pressed='true'] {
  border-color: #f87171 !important;
  background-color: rgba(248, 113, 113, 0.12) !important;
  color: #f87171 !important;
}

/* --------------------------------------------------------------------------
   Schedule Modal Controls
   스케줄 관리 모달 전용 요일/시간 입력 컴포넌트
   -------------------------------------------------------------------------- */
.schedule-modal-dialog {
  width: 560px;
}

.schedule-manage-form {
  gap: 18px;
}

.schedule-form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-time-field {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.schedule-form-subtitle {
  color: #d1d5dc;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.schedule-day-toggle-group {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.schedule-day-toggle {
  height: 40px;
  border: 1px solid #364153;
  border-radius: 10px;
  background: #1e2939;
  color: #d1d5dc;
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.schedule-day-toggle.is-active,
.schedule-day-toggle[aria-pressed='true'] {
  border-color: #296bff;
  background: #1b3566;
  color: #ffffff;
  transform: translateY(-1px);
}

.schedule-day-toggle:focus-visible {
  outline: 2px solid #8db4ff;
  outline-offset: 2px;
}

.schedule-manage-actions {
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Boarding Management
   승하차 관리 달력/입력 레이아웃
   -------------------------------------------------------------------------- */
.boarding-manage-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.boarding-filter-bar {
  display: flex;
  align-items: stretch;
  width: min(456px, 100%);
  flex-shrink: 0;
}

.boarding-filter-label {
  min-width: 82px;
}

.boarding-filter-field {
  min-width: 0;
  flex: 1;
}

.boarding-manage-section .boarding-filter-bar {
  border-color: #d9d9e0;
  background: #ffffff;
  border-radius: 12px;
}

.boarding-manage-section .boarding-filter-label {
  border-right-color: #d9d9e0;
  background: #f3f4f6;
  color: #111827;
  border-radius: 10px 0 0 10px;
}

.boarding-manage-section .boarding-filter-bar .sensor-history-select {
  color: #111827;
  background-image: none;
  padding-right: 36px;
}

.boarding-manage-section .boarding-filter-field::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  background-color: #6b7280;
  pointer-events: none;
  -webkit-mask: url("../img/MdDropdown.svg") no-repeat center / contain;
  mask: url("../img/MdDropdown.svg") no-repeat center / contain;
}

.boarding-manage-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  background: var(--grey-5);
  border-radius: 4px;
  padding: 20px;
}

.boarding-calendar-card,
.boarding-entry-panel {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-l);
  background: #ffffff;
  box-shadow: var(--shadow-l);
  min-height: 0;
}

.boarding-calendar-card {
  padding: 32px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.boarding-calendar-toolbar {
  display: flex;
  align-items: center;
  flex-direction: column-reverse;
}

.boarding-calendar-nav {
  width: 100%;
  display: flex;
  flex: 1;
  justify-content: space-between;
  flex-direction: row-reverse;
  margin-bottom: 8px;
 
}

.boarding-calendar-nav-group,
.boarding-calendar-action-group {
  display: flex;
  align-items: center;
}

.boarding-calendar-nav-group {
  gap: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-s);
}

.boarding-calendar-nav-btn,
.boarding-calendar-today-btn {
  height: 36px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
}

.boarding-calendar-nav-btn {
  width: 42px;
  background: #25364d;
  color: #ffffff;
  border-radius: 0;
  transition: background-color 0.2s ease;
}

.boarding-calendar-nav-btn:hover:not(:disabled),
.boarding-calendar-nav-btn:focus-visible:not(:disabled) {
  background: var(--grey-40);
  }

.boarding-calendar-nav-btn img {
  width: 16px;
  height: 16px;
  display: block;
  margin: 0 auto;
}

.boarding-calendar-nav-btn img.is-prev {
  transform: rotate(180deg);
}

.boarding-calendar-nav-group .boarding-calendar-nav-btn + .boarding-calendar-nav-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.boarding-calendar-nav-group .boarding-calendar-nav-btn:first-child {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.boarding-calendar-nav-group .boarding-calendar-nav-btn:last-child {
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.boarding-calendar-nav-btn:disabled {
  opacity: 0.56;
  cursor: default;
}

.boarding-calendar-today-btn {
  min-width: 80px;
  padding: 0 16px;
  background: var(--color-primary-active);
  color: #ffffff;
  text-transform: lowercase;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.boarding-calendar-today-btn:hover,
.boarding-calendar-today-btn:focus-visible {
  background: var(--grey-40);
}

.boarding-calendar-heading {
  flex: 1;
  text-align: center;
}

.boarding-calendar-heading h3 {
  color: #111827;
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
}

.boarding-calendar-heading p {
  margin-top: 4px;
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.boarding-calendar-weekdays,
.boarding-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.boarding-calendar-weekdays {
  border: 1px solid #e5e7eb;
  border-bottom: 0;
}

.boarding-calendar-weekdays span {
  padding: 14px 8px;
  text-align: center;
  color: #374151;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  background: #ffffff;
}

.boarding-calendar-grid {
  border-top: 1px solid #e5e7eb;
  grid-template-rows: repeat(6, minmax(80px, auto));
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  align-content: start;
}

.boarding-calendar-day {
  max-height: 80px;
  padding: 10px 10px 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: left;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.boarding-calendar-day:not(:disabled) {
  cursor: pointer;
}

.boarding-calendar-day:hover:not(:disabled),
.boarding-calendar-day.is-selected {
  background: #f8fbff;
}

.boarding-calendar-day.is-selected {
  box-shadow: inset 0 0 0 2px rgba(41, 107, 255, 0.24);
}

.boarding-calendar-day.is-today .boarding-calendar-date {
  background: #eef4ff;
  color: #296bff;
}

.boarding-calendar-day.is-outside-month {
  background: #fafafa;
}

.boarding-calendar-day.is-outside-month .boarding-calendar-date {
  color: #c7cbd4;
}

.boarding-calendar-date {
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
}

.boarding-calendar-events {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.boarding-calendar-event,
.boarding-calendar-more {
  display: block;
  width: 100%;
  border-radius: 8px;
  padding: 4px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.boarding-calendar-event {
  background: #3b82f6;
  /* background: var(--color-success); */
  color: #ffffff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.boarding-calendar-event strong {
  font-weight: 700;
}

.boarding-calendar-more {
  color: #6b7280;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.boarding-entry-panel {
  padding: 26px 22px 22px;
  overflow: auto;
  height: 100%;
}

.boarding-entry-head {
    margin-bottom: 16px;
}

.boarding-entry-head h3 {
  color: #111827;
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  text-align: center;
}

.boarding-entry-head p {
  margin-top: 6px;
  color: #6b7280;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

div#boardingEntryRows {
    gap: 8px;
    display: flex;
    flex-direction: column;
}

.boarding-table-card {
  gap: 12px;
  overflow: auto;
  margin-bottom: 24px;
  max-height: 70%;
  height: 100%;
}

.boarding-table-card [data-role="boarding-entry-rows"] {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.boarding-table-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  padding: 12px 14px;
  text-align: left;
}

.boarding-table-row-head {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f3f4f6;
  text-align: center;
  box-shadow: var(--shadow-s);
}

.boarding-table-row-head span {
  color: var(--color-text-body);
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.boarding-table-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

/* 입력 행 편집 토글: 헤더 우측에 임시 연필 아이콘을 두고 삭제 모드를 켠다. */
.boarding-edit-rows-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #dc2626;
  border-radius: 50%;
  background: #dc2626;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.boarding-edit-rows-btn:hover {
  background: #b91c1c;
  color: #ffffff;
}

.boarding-edit-rows-btn.is-active {
  background: #b91c1c;
  color: #ffffff;
}

.boarding-edit-rows-btn img {
  width: 16px;
  height: 16px;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}

.boarding-edit-rows-btn:hover img,
.boarding-edit-rows-btn.is-active img {
  filter: brightness(0) invert(1);
}

.boarding-time-field,
.boarding-passenger-field {
  gap: 0;
}

.boarding-time-field input,
.boarding-passenger-field input {
  height: 74px;
  border-radius: 16px;
  background: #ffffff;
  color: #111827;
  border: 1px solid #d9d9e0;
  font-size: 18px;
  font-weight: 700;
}

.boarding-time-field input {
  background: #eef4ff;
  border-color: #d8e4ff;
  color: #296bff;
  text-align: center;
  padding: 0 14px;
}

.boarding-time-field input::-webkit-calendar-picker-indicator {
  opacity: 0.78;
  cursor: pointer;
}

.boarding-passenger-control {
  display: block;
}

.boarding-passenger-control input {
  padding-right: 56px;
  text-align: center;
  color: #111827;
  -moz-appearance: textfield;
}

.boarding-passenger-control input::-webkit-outer-spin-button,
.boarding-passenger-control input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.boarding-passenger-control input::placeholder {
  color: #c7cdd8;
}

.boarding-passenger-control .manage-field-unit {
  right: 18px;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
}

.boarding-remove-row-btn {
  width: 30px;
  height: 30px;
  align-self: center;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
}

.boarding-remove-row-btn img {
  width: 14px;
  height: 14px;
  display: block;
  filter: invert(23%) sepia(83%) saturate(2794%) hue-rotate(337deg) brightness(96%) contrast(91%);
  transition: filter 0.2s ease;
}

.boarding-remove-row-btn:hover img {
  filter: invert(42%) sepia(8%) saturate(438%) hue-rotate(182deg) brightness(92%) contrast(88%);
}

.boarding-table-card:not(.is-editing) #boardingEntryRows .boarding-remove-row-btn {
  display: none;
}

.boarding-table-card.is-editing .boarding-table-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 24px;
}

.boarding-table-card.is-editing #boardingEntryRows .boarding-remove-row-btn {
  display: inline-flex;
}

.boarding-add-row-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #296bff;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 34px;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.boarding-add-row-btn:hover {
  background: #1f5ae6;
}

.boarding-add-row-btn img {
  width: 16px;
  height: 16px;
  display: block;
  margin: 0 auto;
}

.boarding-manage-actions {
  margin-top: auto;
  justify-content: flex-end;
  padding-top: 4px;
}

.boarding-manage-actions .manage-modal-btn {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.boarding-manage-actions .manage-modal-btn.ghost:hover {
  border-color: #bfc6d3;
  background: #f8fafc;
  color: #111827;
}

.boarding-manage-actions .manage-modal-btn.primary:hover {
  border-color: #1f5ae6;
  background: #1f5ae6;
}

.boarding-manage-actions .manage-modal-btn.danger:hover {
  border-color: #e36a80;
  background: #fff1f4;
  color: #b4233b;
}

/* 하단 액션 영역: 저장/취소 버튼을 입력 카드의 맨 아래에 정렬한다. */
/* 월 이동 보조 UI: 제목 클릭 시 월 선택 팝오버를 띄우고, 시간 입력은 커스텀 선택기로 맞춘다. */
.boarding-calendar-heading { position: relative; }
        #boardingCalendarTitle { cursor: pointer; user-select: none; }
        #boardingCalendarTitle:hover { opacity: .75; }
        #boardingMonthPicker {
            position: absolute; top: calc(100% + 6px); left: 50%;
            transform: translateX(-50%);
            background: #fff; border: 1px solid #e5e7eb;
            border-radius: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.12);
            padding: 14px 12px; z-index: 200; min-width: 196px;
        }
        .boarding-picker-year-row {
            display: flex; align-items: center; justify-content: space-between;
            margin-bottom: 10px;
        }
        .boarding-picker-year-btn {
            background: none; border: none; cursor: pointer;
            padding: 4px 10px; font-size: 16px; color: #374151;
            border-radius: 6px; line-height: 1;
        }
        .boarding-picker-year-btn:hover { background: #f3f4f6; }
        .boarding-picker-year-label { font-weight: 600; font-size: 14px; color: #111827; }
        .boarding-picker-month-grid {
            display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
        }
        .boarding-picker-month-btn {
            background: none; border: none; cursor: pointer;
            padding: 7px 2px; font-size: 13px; border-radius: 6px; color: #374151;
        }
        .boarding-picker-month-btn:hover { background: #f3f4f6; }
        .boarding-picker-month-btn.is-current { 
         background: #2563eb;
         color: #fff; }
        .boarding-time-field { position: relative; }
        .boarding-time-display {
            display: block; 
            box-sizing: border-box;
            height: 36px; 
            border-radius: 8px;
            background: #eef4ff; 
            border: 1px solid #d8e4ff;
            color: #296bff; 
            text-align: center;
            padding: 0 14px; 
            font-size: 16px; 
            font-weight: 500;
            font-family: inherit; 
            cursor: pointer;
        }
        .boarding-time-display:focus { 
        outline: 2px solid #8db4ff; 
        outline-offset: 1px; 
        }
        
        .boarding-time-picker {
            position: absolute;
            background: #fff; 
            border: 1px solid #e5e7eb;
            border-radius: 8px; 
            box-shadow: 0 4px 12px rgba(0,0,0,.12);
            display: flex; 
            align-items: center;
            justify-content: center;
            gap: 2px;
            padding: 6px; 
            z-index: 300;
            top: 0;
            left:0;
            width : 100%;  
            transform: translate(0, 22%);
            
        }
        .boarding-time-picker[hidden] { display: none !important; }
        .boarding-time-col {
            list-style: none; margin: 0; padding: 0;
            max-height: 150px; overflow-y: auto; width: 42px;
            scrollbar-width: thin;
        }
        .boarding-time-col li {
            padding: 5px 0; text-align: center; cursor: pointer;
            border-radius: 4px; font-size: 13px; color: #374151;
        }
        .boarding-time-col li:hover { background: #f3f4f6; }
        .boarding-time-col li.is-selected { background: #2563eb; color: #fff; }
        .boarding-time-col-sep { font-size: 14px; color: #6b7280; font-weight: 600; padding: 0 2px; }
        
        .boarding-calendar-weekdays span:first-child { color: #e53935; }
        .boarding-calendar-weekdays span:last-child  { color: #0040ff; }
        .boarding-calendar-day.is-sunday:not(.is-outside-month)   .boarding-calendar-date { color: #e53935; }
        .boarding-calendar-day.is-saturday:not(.is-outside-month) .boarding-calendar-date { color: #0040ff; }
        
        
        /* 승차 관리 - 기상 관련 */
         .boarding-calendar-day-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
        }
        .boarding-calendar-weather {
            display: flex;
            align-items: center;
            gap: 4px;
            /* border: 1px solid #dbdbdb; */
    		padding: 4px;	
    		border-radius: 50px;
    		box-shadow: var(--shadow-m);
        }
        .boarding-calendar-weather-icon {
            width: 22px;
            height: 22px;
            flex-shrink: 0;
        }
        .boarding-calendar-weather-temp {
            font-size: 12px;
            color: rgba(0, 0, 0, 0.75);
            line-height: 1;
        }
        
         .boarding-calendar-weather-temp > strong {
         font-weight: 700;
         color: #000000;
         font-size: 15px;
         }

/* 반응형 대응: 데스크톱 2단 구조를 화면 폭에 따라 1단으로 전환한다. */
@media (max-width: 1600px) {
  .boarding-manage-shell {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

@media (max-width: 1280px) {
  .boarding-manage-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .boarding-calendar-card,
  .boarding-entry-panel {
    border-radius: 28px;
  }
}

@media (max-width: 860px) {
  .boarding-filter-bar {
    width: 100%;
  }

  .boarding-calendar-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .boarding-calendar-heading {
    text-align: left;
  }

  .boarding-calendar-day {
    padding: 8px;
  }

  .boarding-table-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.schedule-manage-modal .schedule-form-subtitle {
  color: #374151;
}

.schedule-manage-modal .schedule-day-toggle {
  border-color: #d9d9e0;
  background: #ffffff;
  color: #374151;
}

.schedule-manage-modal .schedule-day-toggle.is-active,
.schedule-manage-modal .schedule-day-toggle[aria-pressed='true'],
.schedule-manage-modal .schedule-day-toggle:hover {
  border-color: #296bff;
  background: #eef4ff;
  color: #0f458a;
}

.manage-modal.manage-modal-light.schedule-manage-modal .schedule-manage-actions .manage-modal-btn {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.manage-modal.manage-modal-light.schedule-manage-modal .schedule-manage-actions .manage-modal-btn.primary:hover,
.manage-modal.manage-modal-light.schedule-manage-modal .schedule-manage-actions .manage-modal-btn.primary:focus-visible {
  border-color: #1f5ae6 !important;
  background: #1f5ae6 !important;
  color: #ffffff !important;
}

.manage-modal.manage-modal-light.schedule-manage-modal .schedule-manage-actions .manage-modal-btn.ghost:hover,
.manage-modal.manage-modal-light.schedule-manage-modal .schedule-manage-actions .manage-modal-btn.ghost:focus-visible {
  border-color: #bfc6d3 !important;
  background: #f8fafc !important;
  color: #111827 !important;
}

.manage-modal.manage-modal-light.schedule-manage-modal .schedule-manage-actions .manage-modal-btn.danger:hover,
.manage-modal.manage-modal-light.schedule-manage-modal .schedule-manage-actions .manage-modal-btn.danger:focus-visible {
  border-color: #e36a80 !important;
  background: #fff1f4 !important;
  color: #b4233b !important;
}

.schedule-vehicle-card-head {
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid #f0f0f4;
}

.schedule-vehicle-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.schedule-vehicle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 8px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s;
}

.schedule-vehicle-row:hover {
  background: #f3f4f6;
}

.schedule-vehicle-time,
.schedule-table-time {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: #296bff;
  background: rgba(41, 107, 255, 0.1);
  border-radius: 5px;
  padding: 2px 8px;
  min-width: 60px;
  text-align: center;
  letter-spacing: 0.3px;
}

.schedule-table-time {
  font-size: 14px;
  background:none;
  text-align:center;
  position: relative;
}

.schedule-table-time:before{
  content: '';
  top: 50%;
  left : 50%;
  background: rgba(41, 107, 255, 0.1);
  width: 50px;
  height: 100%;
  padding: 2px 4px;
  border-radius: 5px;
  position: absolute;
  transform: translate(-50%, -50%);
  
}

.schedule-vehicle-route {
  flex: 1;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-vehicle-stn {
  flex-shrink: 0;
  font-size: 14px;
  color: #666666;
}

.stage.day-mode .schedule-vehicle-card-head {
  border-bottom-color: #e9eaec;
}

.stage.day-mode .schedule-vehicle-row:hover {
  background: #eef2ff;
}

.stage.day-mode .schedule-vehicle-time,
.stage.day-mode .schedule-table-time {
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.08);
}

.stage.day-mode .schedule-vehicle-route {
  color: #111827;
}

/* --------------------------------------------------------------------------
   Route Management
   노선 관리 화면 레이아웃, 목록, 상세
   -------------------------------------------------------------------------- */
   
.route-manage-section {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.route-manage-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 18px;
  background: #ffffff;
}

.route-manage-header-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.route-manage-header .section-title {
  color: #111827;
  line-height: 1.4;
}

.route-manage-header .section-desc {
  margin-top: 0;
  color: #666666;
}

.route-manage-map {
  position: relative;
  width: 100%;
  height: 540px;
  overflow: hidden;
  background: #e9edf1;
  /* border-bottom: 1px solid #d9d9d9; */
}

.route-manage-section.is-panel-collapsed .route-manage-map,
.route-manage-section.is-panel-expanding .route-manage-map {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

.route-manage-map-bg {
  position: absolute;
  left: -1116px;
  top: -259px;
  width: 3461px;
  height: 1644px;
  object-fit: cover;
}

.route-manage-panel {
  display: flex;
  flex: 0 0 auto;
  min-height: 0;
  flex-direction: column;
  position: relative;
  z-index: 2;
  margin-top: -220px;
  background: #ffffff;
  overflow: visible;
  transform: translateY(0);
  will-change: transform, margin-top, bottom, opacity;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    bottom 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s ease,
    border-radius 0.28s ease,
    flex-basis 0.28s ease,
    height 0.28s ease,
    max-height 0.28s ease;
}

.route-manage-panel:not(.is-expanded):not(.is-line-tab-active) {
  margin-top: 0;
  transform: translateY(calc(100% + 44px));
}

.route-manage-section .route-manage-panel:not(.is-expanded):not(.is-line-tab-active) {
  flex: 1 1 auto;
}

.route-manage-section.is-panel-collapsed .route-manage-panel:not(.is-expanded):not(.is-line-tab-active),
.route-manage-section.is-panel-expanding .route-manage-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22%;
  width: 100%;
}

.route-manage-section.is-panel-collapsed .route-manage-panel-scroll,
.route-manage-section.is-panel-collapsed .route-manage-toolbar {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
}

.route-manage-panel.is-expanded {
  flex: 1 1 auto;
  margin-top: 0;
  transform: translateY(0);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.16);
}

.route-manage-panel.is-line-tab-active {
  flex: 1 1 auto;
  margin-top: -640px;
  transform: translateY(0);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.16);
}

.route-manage-panel.is-line-tab-active .route-panel-toggle {
  display: none;
}

.route-manage-panel-scroll {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  background: #ffffff;
  padding: 24px;
  overflow: hidden;
  max-height: 100%;
  opacity: 1;
  transform: translateY(0);
  will-change: transform, opacity;
  transition:
    opacity 0.22s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.route-manage-panel-scroll::-webkit-scrollbar:horizontal {
  height: 0;
}

.route-panel-toggle {
  position: absolute;
  top: -17px;
  right: 50%;
  width: 42px;
  height: 34px;
  border: 1px solid #d9d9e0;
  border-radius: 50px;
  background: #ffffff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  z-index: 3;
  box-shadow: var(--shadow-m);
  transform: translate(50%, 0);
  transition: border-color 0.2s ease, color 0.2s ease;
}



.route-panel-toggle-text {
  display: none;
}

.route-panel-toggle-icon {
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-135deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.route-manage-panel.is-expanded .route-panel-toggle-icon {
  transform: rotate(45deg) translateY(-1px);
}

.route-panel-toggle:hover,
.route-panel-toggle:focus-visible {
  border-color: #93c5fd;
  color: #0f458a;
}

.route-manage-toolbar {
  position: absolute;
  left: 24px;
  top: -44px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 16px;
  background: #ffffff;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.1);
  overflow: visible; 
  z-index: 4;
  opacity: 1;
  transform: translateY(0);
  will-change: transform, opacity;
  transition:
    opacity 0.22s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.route-manage-toolbar[hidden] {
  display: none;
}


.route-manage-back {
  min-width: 92px;
  height: 44px;
  border: 0;
  border-right: 1px solid #d1d5db;
  background: #ffffff;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  padding: 0 16px;
  border-top-left-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.route-manage-header-back {
  min-width: auto;
  height: 40px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  border-right: 1px solid #d1d5db;
  box-shadow: none;
  flex-shrink: 0;
}

.route-manage-back-icon {
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: 1px;
}

.route-manage-tabs {
  display: flex;
  align-items: stretch;
  padding-left: 0;
  border-bottom: 2px solid #d1d5db;
}

.route-manage-tab {
  min-width: 108px;
  height: 44px;
  border: 0;
  border-bottom: 2px solid #d1d5db;
  margin-bottom: -2px;
  background: #ffffff;
  color: #666666;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.route-manage-tab + .route-manage-tab {
  margin-left: 0;
}

.route-manage-tab:first-child {
  border-top-left-radius: 8px;
}

.route-manage-tab:last-child {
  border-top-right-radius: 8px;
}

.route-manage-tab-label {
  display: block;
}

.route-manage-tab.active {
  background: #ffffff;
  color: #0f458a;
  border-bottom: 4px solid #0f458a;
}

.route-manage-tab:hover:not(:disabled):not(.active) {
  background: #eef3f9;
  color: #666666;
}

.route-manage-tab:active:not(:disabled):not(.active) {
  background: #cfd9e7;
  color: #666666;
}

.route-manage-tab:disabled,
.route-manage-tab[aria-disabled="true"] {
  background: #ffffff;
  color: #999999;
  border-bottom-color: #d1d5db;
  cursor: not-allowed;
}

.route-manage-save {
  min-width: 84px;
  height: 40px;
  border: 1px solid #296bff;
  border-radius: 10px;
  background: #296bff;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 0 16px;
}

.route-manage-save-inline {
  margin-left: auto;
}

.route-manage-tab-panels {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.route-manage-tab-panel {
  flex: 0 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.route-manage-tab-panel[hidden] {
  display: none;
}


.route-detail-line-fields {
  padding: 14px 14px 20px;
  background: #fafafa;
  border-radius: 8px;
  opacity: 1;
  transform: translateY(0);
  will-change: transform, opacity;
  transition:
    opacity 0.22s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

.line-manage-panel {
  flex: 1;
  min-height: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.line-manage-header h3 {
  color: #111111;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}

.line-manage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 14px 24px;
}

.line-manage-header-copy {
  min-width: 0;
}

.line-manage-header p {
  margin-top: 8px;
  color: #555555;
  font-size: 14px;
  line-height: 24px;
}

.line-manage-controls {
  display: none;
}

.line-manage-fields {
  display: flex;
  align-items: center;
  gap: 38px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Moved From routeMgmtMain.jsp
   경로 관리 인라인 편집, 드래그 상태, 지도 상호작용 보조 스타일
   -------------------------------------------------------------------------- */
   
.field-input-wrap {
  position: relative;
  display: inline-flex;
}

.field-error {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: -2px;
  color: #e53e3e !important;
  font-size: 11px !important;
  white-space: nowrap;
}

.field-error.is-visible {
  display: block;
}

input.is-field-error {
  border-color: #e53e3e !important;
}

input.is-field-error:focus {
  outline-color: #e53e3e !important;
}

.route-table-edit-input {
  width: 100%;
  box-sizing: border-box;
  padding: 2px 4px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: inherit;
  text-align: center;
}

tr[data-editing] {
  background-color: #fff8e1;
}

tr.drag-over {
  outline: 2px dashed #4a90d9;
  outline-offset: -2px;
}

tr.is-dragging {
  opacity: 0.4;
}

.route-table-action-move {
  cursor: grab;
}

.line-manage-fields {
  gap: 8px;
}

.line-button-group {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.route-manage-section .line-button-group .manage-modal-btn.danger {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.route-manage-section .line-button-group .manage-modal-btn.danger:hover,
.route-manage-section .line-button-group .manage-modal-btn.danger:focus-visible {
  border-color: #e36a80;
  background: #fff1f4;
  color: #b4233b;
}

#map,
#map * {
  cursor: default !important;
}

#map.is-dragging,
#map.is-dragging * {
  cursor: grabbing !important;
}

#map.is-station-mode,
#map.is-station-mode * {
  cursor: crosshair !important;
}

#map.is-station-mode.is-dragging,
#map.is-station-mode.is-dragging * {
  cursor: grabbing !important;
}

.map-station-hint {
  opacity: 0;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

#map.is-station-mode .map-station-hint {
  opacity: 1;
}

.route-manage-section .route-manage-panel.is-expanded .route-table-title,
.route-manage-section .route-manage-panel.is-expanded .route-table-wrap {
  display: block;
}

.route-manage-section .route-manage-panel.is-expanded .route-table-wrap {
  max-height: 700px;
  overflow-y: auto;
}

.line-field {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.line-field > label,
.line-radio-label {
  color: #111111;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  white-space: nowrap;
}

.line-field input {
  width: 170px;
  height: 46px;
  border: 1px solid #a3a3a3;
  border-radius: 8px;
  background: #ffffff;
  color: #222222;
  padding: 0 12px;
  font-size: 15px;
}

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

.line-radio-group {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.line-radio-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #444444;
  font-size: 15px;
}

.line-radio-option input {
  width: 18px;
  height: 18px;
  accent-color: #296bff;
}

.line-manage-add {
  min-width: 84px;
  height: 40px;
  border: 1px solid #296bff;
  border-radius: 10px;
  background: #296bff;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 0 16px;
}

.line-manage-table-wrap {
  background: #ffffff;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  position: relative;
}

.line-manage-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 316px;
  background: rgba(255, 255, 255, 0.94);
}

.line-manage-loading-inner {
  width: 100%;
  max-width: 280px;
  text-align: center;
}

.spinner-wrap {
  display: flex;
  justify-content: center;
}

.krds-spinner {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.krds-spinner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(
      from -90deg,
      #256ef4 0deg,
      #256ef4 130deg,
      rgba(148, 163, 184, 0.12) 130deg,
      rgba(148, 163, 184, 0.12) 360deg
    );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
}

.loading-title {
  margin: 22px 0 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #464c53;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.line-manage-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.line-manage-table thead th {
  height: 48px;
  border-bottom: 1px solid #71717a;
  background: #f3f4f6;
  color: #1f2937;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  position: sticky;
  top: 0;
  z-index: 2;
}

.line-manage-table tbody td {
  height: 58px;
  border-bottom: 1px solid #e5e7eb;
  color: #222222;
  font-size: 14px;
  text-align: center;
  vertical-align: middle;
}


.route-manage-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 14px 24px;
  background: #ffffff;
  opacity: 1;
  transform: translateY(0);
  will-change: transform, opacity;
  transition:
    opacity 0.22s ease,
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}

/* 접힘 상태 최종 보정: 상단 탭/상세/컨트롤만 남기고 패널이 하단으로 내려가도록 고정 */
.route-manage-panel.is-collapsed-preview {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 420px !important;
  max-height: 420px !important;
  min-height: 420px !important;
  flex: 0 0 420px !important;
  margin-top: 0 !important;
  transform: none !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -18px 40px rgba(15, 23, 42, 0.16);
}

.route-manage-panel.is-collapsed-preview .route-manage-toolbar {
  display: flex !important;
  position: absolute !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.route-manage-panel.is-collapsed-preview .route-manage-panel-scroll {
  display: flex !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
  padding: 24px !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

.route-manage-panel.is-collapsed-preview .route-manage-tab-panels {
  display: flex !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.route-manage-panel.is-collapsed-preview .route-manage-tab-panel:not([hidden]) {
  display: flex !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  flex-direction: column !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.route-manage-panel.is-collapsed-preview .route-manage-tab-panel[hidden] {
  display: none !important;
}

.route-manage-panel.is-collapsed-preview .route-detail-line-fields {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.route-manage-panel.is-collapsed-preview .route-manage-controls {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* .route-manage-panel.is-collapsed-preview .route-table-title,
.route-manage-panel.is-collapsed-preview .route-table-wrap {
  display: none !important;
} */

.route-manage-fields {
  display: flex;
  align-items: center;
  gap:24px 12px;
  flex-wrap: wrap;
}

.route-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.route-field > label,
.route-color-picker span {
  color: #111111;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.route-field input {
  width: 202px;
  height: 40px;
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  background: #ffffff;
  color: #222222;
  padding: 0 12px;
  font-size: 14px;
  line-height: 20px;
}

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

.route-manage-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.route-btn {
  min-width: 84px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  padding: 0 16px;
  border: 1px solid #d9d9e0;
}

.route-btn img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.route-btn-add {
  background: #eef4ff;
  border-color: #4f86ff;
  color: #296bff;
}

.route-btn-add img {
  filter: brightness(0) saturate(100%) invert(33%) sepia(98%) saturate(1983%) hue-rotate(211deg) brightness(102%) contrast(101%);
}


.route-btn-reset {
  background: transparent;
  color: #374151;
}

.route-btn-reset img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(10%) saturate(437%) hue-rotate(182deg) brightness(94%) contrast(86%);
}

.route-manage-save:hover,
.route-manage-save:focus-visible {
  background: var(--color-primary-active);
  border: none;
}

.route-btn-add:hover,
.route-btn-add:focus-visible {
  background: #dce9ff;
}

.route-btn-reset:hover,
.route-btn-reset:focus-visible {
  background: #f9fafb;
}

.route-color-picker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.route-color-picker input[type="color"] {
  width: 36px;
  height: 32px;
  border: 1px solid #bdbdbd;
  border-radius: 4px;
  background: #ffffff;
  padding: 3px;
  cursor: pointer;
}

.route-table-title {
  margin: 4px 14px 12px;
  color: #111111;
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}

.route-table-wrap {
  flex: 1;
  min-height: 0;
  max-height: 0;
  background: #ffffff;
  border-top: 1px solid #d9d9d9;
  overflow-y: scroll;
  overflow-x: hidden;
}

.route-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.route-table thead th {
  height: 38px;
  border-right: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
  background: #f6f6f6;
  color: #111111;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
}

.route-table thead th:last-child {
  border-right: 0;
}

.route-table tbody td {
  height: 54px;
  border-right: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
  background: #ffffff;
  padding: 12px 14px;
  color: #111111;
  font-size: 14px;
  text-align: center;
  vertical-align: middle;
}

.route-table tbody td:last-child {
  border-right: 0;
}

.route-table-empty {
  height: 316px !important;
  color: #9ca3af;
}

.route-table-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.route-table-action {
  min-width: 56px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.route-table-action-edit {
  border-color: #93c5fd;
  color: #0f458a;
  background: #eff6ff;
}

.route-table-action-delete {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fef2f2;
}

.route-table-action-move {
  border-color: #cbd5e1;
  color: #334155;
  background: #f8fafc;
}

.route-table-action-edit:hover,
.route-table-action-edit:focus-visible {
  border-color: #60a5fa;
  background: #dbeafe;
  color: #0b3b78;
}

.route-table-action-delete:hover,
.route-table-action-delete:focus-visible {
  border-color: #fda4af;
  background: #ffe4e6;
  color: #9f1239;
}

.route-table-action-move:hover,
.route-table-action-move:focus-visible {
  border-color: #94a3b8;
  background: #e2e8f0;
  color: #1f2937;
}

.route-tab-empty-state {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #374151;
}

.route-tab-empty-state strong {
  font-size: 22px;
  line-height: 1.3;
}

.route-tab-empty-state p {
  font-size: 15px;
  color: #6b7280;
}

.vehicle-manage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 32px;
  background: var(--grey-5);
  border-radius: 4px;
}

.bus-card {
  min-height: 250px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-m);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.bus-card:hover,
.bus-card:focus-visible,
.bus-card.is-selected {
  border-color: #296bff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
  background: #f8fbff;
  transform: translateY(-2px);
}

.bus-card:focus-visible {
  outline: 2px solid #8db4ff;
  outline-offset: 2px;
}

.bus-card.is-hidden {
  display: none;
}

.bus-card-badge {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 8px;
  background: #7c3aed;
  color: #ffffff;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  padding: 2px 8px;
}

.bus-card-figure {
  min-height: 82px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}

.bus-card-figure img {
  width: 80px;
  height: 80px;
  filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(2707%) hue-rotate(214deg) brightness(100%) contrast(101%);
}

.bus-card-accent .bus-card-figure img {
  filter: brightness(0) saturate(100%) invert(50%) sepia(92%) saturate(1337%) hue-rotate(238deg) brightness(100%) contrast(102%);
}

.bus-card-color-blue .bus-card-figure img {
  filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(2707%) hue-rotate(214deg) brightness(100%) contrast(101%);
}

.bus-card-color-white .bus-card-figure img {
  filter: brightness(0) saturate(100%) invert(95%) sepia(6%) saturate(319%) hue-rotate(180deg) brightness(108%) contrast(98%);
}

.bus-card-color-silver .bus-card-figure img {
  filter: brightness(0) saturate(100%) invert(78%) sepia(8%) saturate(359%) hue-rotate(176deg) brightness(90%) contrast(90%);
}

.bus-card-color-navy .bus-card-figure img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(37%) saturate(1184%) hue-rotate(190deg) brightness(92%) contrast(95%);
}

.bus-card-color-green .bus-card-figure img {
  filter: brightness(0) saturate(100%) invert(42%) sepia(40%) saturate(868%) hue-rotate(100deg) brightness(94%) contrast(92%);
}

.bus-card-color-red .bus-card-figure img {
  filter: brightness(0) saturate(100%) invert(34%) sepia(82%) saturate(1502%) hue-rotate(333deg) brightness(94%) contrast(89%);
}

.bus-card-info {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.bus-card-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  color: #111827;
  font-size: 14px;
  line-height: 1.4;
}

.bus-card-row span {
  flex: 0 0 76px;
  color: #6b7280;
  font-weight: 500;
  font-size: 14px;
}

.bus-card-row strong {
  flex: 1 1 140px;
  color: #111827;
  font-weight: 600;
  text-align:end;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 15px;
}

@media (max-width: 640px) {
  .bus-card-row {
    flex-wrap: wrap;
  }
}

@media (max-width: 1440px) {
  .vehicle-manage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bus-card {
    width: auto;
  }
}

@media (max-width: 1024px) {
  .vehicle-manage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bus-card {
    width: auto;
  }
}

.vehicle-manage-pagination {
  flex-shrink: 0;
  padding-top: 0;
  margin-top: auto;
}

.vehicle-manage-pagination.manage-pagination {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #6b7280;
  align-self: center;
}

.manage-pagination .manage-pagination-link[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.vehicle-manage-pagination .manage-pagination-input {
  background: #ffffff;
}

.vehicle-manage-pagination .manage-pagination-submit {
  background: #eff6ff;
}

/* --------------------------------------------------------------------------
   Management Modal Base
   기존 style.css 의 관리 화면 공통 모달/필드/버튼 정의 이관
   -------------------------------------------------------------------------- */
.manage-field .field-error {
  display: none;
  color: #e53e3e !important;
  font-size: 11px !important;
  font-weight: normal !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  margin-top: -4px;
}

.manage-field .field-error.is-visible {
  display: block;
  color: var(--color-danger) !important;
}

.manage-field input.is-field-error,
.manage-field select.is-field-error {
  border-color: #e53e3e !important;
}

.manage-field input.is-field-error:focus,
.manage-field select.is-field-error:focus {
  outline-color: #e53e3e !important;
}

.manage-modal {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.manage-modal.is-open {
  display: flex;
}

.manage-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 20, 0.68);
}

.manage-modal-dialog {
  position: relative;
  width: 440px;
  max-height: calc(100vh - 48px);
  border-radius: 16px;
/*   border: 1px solid #364153;
  background: #101828; */
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  padding: 32px 32px 24px;
  /* overflow-y: scroll; */
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.manage-modal-dialog,
.manage-modal .manage-field textarea,
.manage-modal .cs-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.42) transparent;
}

.manage-modal-dialog::-webkit-scrollbar,
.manage-modal .manage-field textarea::-webkit-scrollbar,
.manage-modal .cs-list::-webkit-scrollbar {
  width: 10px;
}

.manage-modal-dialog::-webkit-scrollbar-track,
.manage-modal .manage-field textarea::-webkit-scrollbar-track,
.manage-modal .cs-list::-webkit-scrollbar-track {
  background: transparent;
}

.manage-modal-dialog::-webkit-scrollbar-thumb,
.manage-modal .manage-field textarea::-webkit-scrollbar-thumb,
.manage-modal .cs-list::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.42);
  background-clip: padding-box;
}

.manage-modal-dialog::-webkit-scrollbar-thumb:hover,
.manage-modal .manage-field textarea::-webkit-scrollbar-thumb:hover,
.manage-modal .cs-list::-webkit-scrollbar-thumb:hover {
  background: rgba(203, 213, 225, 0.6);
  background-clip: padding-box;
}

.manage-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.manage-modal-head h3 {
  color: #ffffff;
  font-size: 22px;
  line-height: 30px;
  font-weight: 500;
  margin-bottom: 6px;
}

.manage-modal-head p {
  color: #99a1af;
  font-size: 14px;
  line-height: 20px;
}

.manage-modal-close {
  width: 32px;
  height: 32px;
  border: 1px solid #4a5565;
  border-radius: 8px;
  background: transparent;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.manage-modal-close:hover {
  background: #000000;
  border-color: transparent;
}

.manage-modal-close::before,
.manage-modal-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: #d1d5dc;
}

.manage-modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.manage-modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.manage-modal-close:hover::before,
.manage-modal-close:hover::after {
  background: #ffffff;
}

.manage-modal-form {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 14px 16px;
}

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

.manage-field-control {
  position: relative;
  display: block;
}

.manage-field span {
  font-size: 15px;
  line-height: 18px;
  font-weight: 600;
}

.manage-field input,
.manage-field select {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: #296bff1a;
  color: #296bff;
  padding: 0 14px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  font-family: inherit;
}

.manage-field-control .manage-field-unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  pointer-events: none;
}

.manage-field-control-percent input {
  padding-right: 52px;
}

.manage-field-control-speed input {
  padding-right: 64px;
}

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

.boarding-manage-section .boarding-passenger-control input {
  background: #fafafa;
  color: #111827;
}

/* 승차인원 필드 placeholder는 공통 input보다 더 옅게 보이도록 이 화면에서만 덮어쓴다. */
.boarding-manage-section .boarding-passenger-control input::placeholder {
  color: #c7cdd8;
}

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

.manage-field select {
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #9ca3af 50%),
    linear-gradient(135deg, #9ca3af 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.manage-field select option {
  font-size: 13px;
  line-height: 18px;
}

.manage-field-full {
  grid-column: 1 / -1;
}

.manage-field-inline {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.bus-threshold-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  margin-left: 8px;
}

.bus-threshold-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bus-threshold-check-box {
  width: 16px;
  height: 16px;
  border: 1px solid #d9d9e0;
  border-radius: 4px;
  background: #ffffff;
  box-sizing: border-box;
  position: relative;
  flex: 0 0 16px;
}

.bus-threshold-check input:checked + .bus-threshold-check-box {
  border-color: #296bff;
  background: #296bff;
}

.bus-threshold-check input:checked + .bus-threshold-check-box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

.bus-threshold-check input:focus-visible + .bus-threshold-check-box {
  outline: 2px solid rgba(141, 180, 255, 0.75);
  outline-offset: 2px;
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.color-swatch {
  position: relative;
  display: block;
}

.color-swatch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.color-swatch-chip {
  display: block;
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid #364153;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.color-swatch input:checked + .color-swatch-chip {
  border-color: #dbeafe;
  box-shadow: 0 0 0 2px rgba(41, 107, 255, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  transform: translateY(-1px) scale(1.03);
  filter: saturate(1.08) brightness(1.04);
}

.color-swatch input:focus-visible + .color-swatch-chip {
  outline: 2px solid #8db4ff;
  outline-offset: 2px;
}

.color-swatch input:checked + .color-swatch-chip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 5px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: translate(-50%, -58%) rotate(-45deg);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.22));
}

.color-swatch-blue { background: #2f6fed; }
.color-swatch-white { background: #f5f7fa; }
.color-swatch-silver { background: #a8b2c1; }
.color-swatch-navy { background: #203a72; }
.color-swatch-green { background: #2a9d6f; }
.color-swatch-red { background: #d94b58; }

.manage-modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

/* 사용자 상세 모달 : 승인 버튼을 왼쪽 끝으로 배치 */
.user-management-approve-button {
  order: -1;
  margin-right: auto;
}

.bus-threshold-check-text {
  display: inline-block;
  line-height: 16px;
  color: #666666;
}

.manage-modal-btn {
  min-width: 84px;
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 0 16px;
}

.manage-modal-btn.ghost {
  border: 1px solid #4a5565;
  background: transparent;
  color: #d1d5dc;
}

.manage-modal-btn.primary {
  border: 1px solid #296bff;
  background: #296bff;
  color: #ffffff;
}

.manage-modal-btn.danger {
  border: 1px solid #d4183d;
  background: transparent;
  color: #ff8ea0;
}

.manage-modal-btn.is-hidden {
  display: none;
}

/* --------------------------------------------------------------------------
   Management Modal Theme Overrides
   bus / schedule / user / ip 화이트 모달 스킨
   -------------------------------------------------------------------------- */
.manage-modal.manage-modal-light .manage-modal-dialog {
  border: 1px solid #e5e7eb !important;
  background: #ffffff !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
  padding: 32px !important;
  overflow: scroll;
}

.manage-modal.manage-modal-light .manage-modal-head {
  margin-bottom: 28px !important;
}

.manage-modal.manage-modal-light .manage-modal-head h3 {
  color: #111827 !important;
  font-size: 20px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  margin-bottom: 4px !important;
}

.manage-modal.manage-modal-light .manage-modal-head p,
.manage-modal.manage-modal-light .manage-field > span,
.manage-modal.manage-modal-light .manage-field-control .manage-field-unit {
  color: #374151 !important;
}

button#ip_search_btn {
    background: var(--color-primary-active) !important;
    border: unset !important;
    color: #ffffff !important;
}

button#ip_search_btn:hover {
	background: var(--grey-40)!important;
}

.manage-modal.manage-modal-light .manage-field {
  gap: 10px !important;
}

.manage-modal.manage-modal-light .manage-field > span {
  font-size: 13px !important;
  line-height: 18px !important;
  font-weight: 600 !important;
}

.manage-modal.bus-manage-modal .manage-field > span {
  font-size: 14px !important;
}

.manage-modal.bus-manage-modal .manage-field > legend {
  color: #374151 !important;
  font-size: 14px !important;
  line-height: 18px;
  font-weight: 600;
}

.manage-modal.manage-modal-light .manage-field input,
.manage-modal.manage-modal-light .manage-field select {
  height: 46px !important;
  border: 1px solid #d9d9e0 !important;
  background: #f9fafb !important;
  color: var(--color-text-strong)!important;
  padding: 0 16px !important;
  font-size: 14px !important;
  line-height: 20px !important;
}

.manage-modal.manage-modal-light .manage-field input::placeholder {
  color: #9ca3af !important;
}

.manage-modal.manage-modal-light .manage-field input:focus,
.manage-modal.manage-modal-light .manage-field select:focus {
  outline: 2px solid rgba(141, 180, 255, 0.75) !important;
  outline-offset: 1px !important;
  background: #ffffff !important;
}

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

.manage-modal.manage-modal-light .manage-modal-close {
  border: 1px solid #e5e7eb !important;
  background: #f9fafb !important;
}

.manage-modal.manage-modal-light .manage-modal-close:hover {
  background: #000000 !important;
  border-color: transparent !important;
}

.manage-modal.manage-modal-light .manage-modal-close::before,
.manage-modal.manage-modal-light .manage-modal-close::after {
  background: #4b5563 !important;
}

.manage-modal.manage-modal-light .manage-modal-close:hover::before,
.manage-modal.manage-modal-light .manage-modal-close:hover::after {
  background: #efefef !important;
}

.manage-modal.manage-modal-light .manage-modal-btn {
  height: 46px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 0 18px !important;
}

.manage-modal.manage-modal-light .manage-modal-btn.ghost {
  border: 1px solid #d9d9e0 !important;
  background: #ffffff !important;
  color: #374151 !important;
}

.manage-modal.manage-modal-light .manage-modal-btn.primary {
  border: 1px solid #296bff !important;
  background: none !important;
  color: #296bff !important;
}

.manage-modal.manage-modal-light .manage-modal-btn.danger {
  border: 1px solid #f3c1c8 !important;
  background: #ffffff !important;
  color: #c24157 !important;
}

.manage-modal.manage-modal-light .manage-modal-btn {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

.manage-modal.manage-modal-light .manage-modal-btn.primary:hover,
.manage-modal.manage-modal-light .manage-modal-btn.primary:focus-visible {
  border-color: #1f5ae6 !important;
  background: #1f5ae6 !important;
  color: #ffffff !important;
}

.manage-modal.manage-modal-light .manage-modal-btn.ghost:hover,
.manage-modal.manage-modal-light .manage-modal-btn.ghost:focus-visible {
  border-color: #bfc6d3 !important;
  background: #f8fafc !important;
  color: #111827 !important;
}

.manage-modal.manage-modal-light .manage-modal-btn.danger:hover,
.manage-modal.manage-modal-light .manage-modal-btn.danger:focus-visible {
  border-color: #e36a80 !important;
  background: #fff1f4 !important;
  color: #b4233b !important;
}

.manage-modal.bus-manage-modal .manage-modal-actions,
.manage-modal.schedule-manage-modal .manage-modal-actions {
  margin-top: 12px !important;
  padding-top: 16px;
}

/* 차량 상세 모달 스크롤 구조
   - bus-manage-modal은 여러 팝업에서 공유하므로 vehicle-management-modal 범위에만 적용한다.
   - 모달 전체가 아니라 입력 컨텐츠 영역(busManageForm)만 스크롤한다.
   - 공통 모달의 scrollbar-gutter 예약 공간을 해제해 개발자 모드/일반 모드 폭 차이를 줄인다.
*/
.manage-modal.manage-modal-light.vehicle-management-modal .manage-modal-dialog {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  overflow: hidden !important;
  scrollbar-gutter: auto !important;
}

.manage-modal.manage-modal-light.vehicle-management-modal .manage-modal-head,
.manage-modal.manage-modal-light.vehicle-management-modal .vehicle-management-modal-actions {
  flex: 0 0 auto;
}

.manage-modal.manage-modal-light.vehicle-management-modal #busManageForm {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding:4px;
}

.manage-modal.manage-modal-light.vehicle-management-modal #busManageForm::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* 스케줄 상세정보 모달 스크롤 구조
   - 모달 전체가 아니라 입력 컨텐츠 영역(schedule-manage-form)만 스크롤한다.
   - 헤더(manage-modal-head)와 하단 버튼(schedule-manage-actions)은 고정 영역으로 유지한다.
   - 공통 모달의 scrollbar-gutter 예약 공간을 해제해 개발자 모드/일반 모드 폭 차이를 줄인다.
*/

.manage-modal.manage-modal-light.schedule-manage-modal .schedule-modal-dialog {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  overflow: hidden !important;
  scrollbar-gutter: auto !important;
}

.manage-modal.manage-modal-light.schedule-manage-modal .manage-modal-head,
.manage-modal.manage-modal-light.schedule-manage-modal .schedule-manage-actions {
  flex: 0 0 auto;
}

.manage-modal.manage-modal-light.schedule-manage-modal .schedule-manage-form {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.manage-modal.manage-modal-light.schedule-manage-modal .schedule-manage-form::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.manage-modal.manage-modal-light.schedule-manage-modal .schedule-manage-actions {
  padding-top: 12px;
}

.bus-manage-modal .manage-field-control-percent .manage-field-unit,
.bus-manage-modal .manage-field-control-speed .manage-field-unit {
  right: 34px;
}

.bus-manage-modal .manage-field-control-percent input {
  padding-right: 72px;
}

.bus-manage-modal .manage-field-control-speed input {
  padding-right: 88px;
}

.bus-manage-modal .color-swatch-chip {
  border-color: #d9d9e0;
  box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.04);
}

.bus-manage-modal .color-swatch input:checked + .color-swatch-chip {
  border-color: #93c5fd;
}

.manage-field > span.field-error.is-visible,
.manage-modal .manage-field > span.field-error.is-visible,
.stage.day-mode .manage-field > span.field-error.is-visible {
  color: var(--danger-40) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}

.manage-field input.is-field-error,
.manage-field select.is-field-error,
.manage-modal .manage-field input.is-field-error,
.manage-modal .manage-field select.is-field-error,
.stage.day-mode .manage-field input.is-field-error,
.stage.day-mode .manage-field select.is-field-error {
  border: 2px solid var(--danger-40) !important;
}

.manage-modal.bus-manage-modal .manage-field > .field-error {
  display: none !important;
  width: 100% !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  margin-top: -4px !important;
  color: var(--danger-40) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  align-self: flex-start !important;
}

.manage-modal.bus-manage-modal .manage-field > .field-error.is-visible {
  display: block !important;
}

/* --------------------------------------------------------------------------
   Route Dialog Variants
   노선 관리 확인/에러 다이얼로그 스킨
   -------------------------------------------------------------------------- */
.manage-modal.route-confirm-demo-modal .manage-modal-backdrop {
  background: rgba(3, 10, 20, 0.68);
}

.manage-modal.route-confirm-demo-modal .manage-modal-dialog {
  border: 1px solid #b8c4cf !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16) !important;
  display: flex;
  flex-direction: column;
  padding: 32px 32px 28px !important;
}

.manage-modal.route-confirm-demo-modal .manage-modal-head {
  align-items: flex-start;
}

.manage-modal.route-confirm-demo-modal .manage-modal-head h3 {
  margin-bottom: 20px !important;
}

.manage-modal.route-confirm-demo-modal .manage-modal-head p {
  max-width: 860px;
  margin: 0;
  word-break: keep-all;
}

.manage-modal.route-confirm-demo-modal .manage-modal-close {
  width: 24px;
  height: 24px;
  border: none !important;
  background: transparent !important;
  border-radius: 0;
  flex: 0 0 auto;
}

.manage-modal.route-confirm-demo-modal .manage-modal-close:hover {
  background: transparent !important;
  border-color: transparent !important;
}

.manage-modal.route-confirm-demo-modal .manage-modal-close::before,
.manage-modal.route-confirm-demo-modal .manage-modal-close::after {
  width: 20px;
  height: 2px;
  background: #22262b !important;
}

.route-confirm-demo-copy {
  flex: 1;
}

.manage-modal.route-confirm-demo-modal .manage-modal-actions {
  margin-top: auto !important;
}

.manage-modal.route-error-demo-modal .manage-modal-backdrop {
  background: rgba(3, 10, 20, 0.68);
}

.manage-modal.route-error-demo-modal .manage-modal-dialog {
  width: 440px;
  min-height: auto;
  border: 1px solid #b8c4cf !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 32px 28px !important;
}

.manage-modal.route-error-demo-modal .manage-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 24px;
  height: 24px;
  border: none !important;
  background: transparent !important;
  border-radius: 0;
  flex: 0 0 auto;
}

.manage-modal.route-error-demo-modal .manage-modal-close:hover {
  background: transparent !important;
  border-color: transparent !important;
}

.manage-modal.route-error-demo-modal .manage-modal-close::before,
.manage-modal.route-error-demo-modal .manage-modal-close::after {
  width: 24px;
  height: 2px;
  background: #4b5563 !important;
}

.route-error-demo-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
  padding-top: 12px;
}

.route-error-demo-icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #ed4552;
}

.route-error-demo-icon span {
  position: absolute;
  left: 50%;
  border-radius: 999px;
  background: #ed4552;
}

.route-error-demo-icon span:first-child {
  top: 15px;
  width: 8px;
  height: 28px;
  transform: translateX(-50%);
}

.route-error-demo-icon span:last-child {
  top: 48px;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
}

.manage-modal.route-error-demo-modal h3 {
  margin: 22px 0 10px !important;
  color: #ed4552 !important;
  font-size: 20px !important;
  line-height: 1.4 !important;
  font-weight: 700 !important;
  text-align: center;
}

.manage-modal.route-error-demo-modal p {
  margin: 0;
  color: #6b7280 !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  text-align: center;
  word-break: keep-all;
}

.manage-modal.route-error-demo-modal .manage-modal-actions {
  justify-content: center !important;
  width: 100%;
  margin-top: 24px !important;
}

.manage-modal.bus-manage-modal.route-error-demo-modal .manage-modal-btn.primary.route-error-demo-button {
  width: 100%;
  border: 1px solid #ed4552 !important;
  background: #ed4552 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.route-error-demo-trigger {
  background: #fff1f3 !important;
  border-color: #fecdd3 !important;
  color: #c24157 !important;
}

.route-error-demo-trigger:hover {
  background: #ffe3e7 !important;
}

@media (max-width: 960px) {
  .manage-modal.route-confirm-demo-modal .manage-modal-dialog {
    width: calc(100vw - 32px);
    min-height: 280px;
  }

  .manage-modal.route-confirm-demo-modal .manage-modal-head p {
    max-width: none;
  }

  .manage-modal.route-error-demo-modal .manage-modal-dialog {
    width: calc(100vw - 32px);
    padding: 28px 24px 24px !important;
  }

  .route-error-demo-icon {
    width: 84px;
    height: 84px;
  }

  .route-error-demo-icon span {
    left: 50%;
  }

  .route-error-demo-icon span:first-child {
    top: 20px;
  }

  .route-error-demo-icon span:last-child {
    top: 62px;
  }

  .line-manage-header-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
}
/* ========================================================================== */
