:root {
  --swal2-width: 38em !important;
  /* form-group 변수 정의 (common.css에서 사용하기 위해 :root에 정의) */
  --krds-form-group--message-error-text-color: var(--krds-light-color-text-danger);
  --krds-form-group--message-pc-font-size: var(--krds-pc-font-size-label-xsmall);
}

.swal2-html-container {
  font-size: 1.875em;
}

.swal2-container {
  z-index: 9998 !important;
}
.swal2-popup {
  z-index: 9999 !important;  
}

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm) {
  background-color: rgb(37, 110, 244) !important;
  border-color: rgb(37, 110, 244) !important;
  color: #fff !important;
}

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny) {
  background-color: rgb(236, 242, 254) !important;
  border-color: rgb(37, 110, 244) !important;
  color: rgb(11, 80, 208) !important;
}

.swal2-html-container {
  text-align: left !important;
}

/* 공통 모달 스타일 (payment.astro 179라인과 동일 형식) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* dialog.js 전역 알림/확인/입력 — notice-kit 로딩(z-index:99999), GPKI(9999)보다 위에 표시함 */
#global-message-modal.modal-overlay,
#global-confirm-modal.modal-overlay,
#global-input-modal.modal-overlay {
  z-index: 100000;
}

.modal-container {
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-container.global-message {
  max-width: 460px;
}

.modal-header {
  background: #007bff;  
  padding: 20px;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header.modal-header-error {
  background: rgb(253, 227, 227);
  color: #333;
}

.modal-header.modal-header-warning {
  background: rgb(255, 243, 224);
  color: #333;
}

.modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

.modal-header-error .modal-title {
  color: #333;
}

.modal-header-warning .modal-title {
  color: #333;
}

.modal-header-info .modal-title {
  color: #fff;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #ff6b6b;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background-color: rgba(255, 107, 107, 0.1);
  border-radius: 50%;
}

.modal-body {
  background: white;
  padding: 20px;
}

.modal-footer {
  background: white;
  border-top: 1px solid #e0e0e0;
  padding: 15px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 전역 메시지 모달: 화면이 좁아지면 푸터 버튼 세로 배치 */
@media (max-width: 520px) {
  #global-message-modal .modal-container.global-message .modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  #global-message-modal .modal-container.global-message .modal-footer .btn-modal-footer {
    width: 100%;
    margin: 0;
  }
}

/* Firefox는 버튼 글자 노드를 가로로 꽉 채우고, 전각 공백 너비까지 정렬에 넣어 라벨이 왼쪽으로 붙음 */
.modal-container.global-message .modal-footer .krds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

.modal-container.global-message .modal-footer .krds-btn > .btn-modal-label {
  display: block;
  flex: 0 0 auto;
  line-height: 1;
  text-align: center;
}

#global-confirm-modal .modal-footer .krds-btn {
  min-width: 8.4rem;
  box-sizing: border-box;
}

.inner-wide {
  margin: 0 auto !important;
  max-width: 100% !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.inner-medium {
  margin: 0px auto !important;
  max-width: 1600px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

footer .inner-medium {
  padding-top: 2.4rem;
  padding-bottom: 2.4rem;
}

.inner-medium .inner {
  margin: 0 !important;
  max-width: 100% !important;
  padding-left: 0px !important;
  padding-right: 0px !important;
}

.krds-main-menu .inner-medium {
  margin: 0 !important;
}

.main-vban-wrap:not(.bg) {
  margin-top: var(--main-section-first-margin-top) !important;
}

.apply-aside {
  width: 364px;
  /* height: 1050px; */
}

.apply-aside .btn-accordion {
  background: #1065b6 !important;
  color: #ffff !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  border-radius: 0px !important;
}

.apply-aside .krds-accordion {
  --krds-accordion--color-icon: #ffff; /* 원하는 색상으로 변경 */
}


.apply-aside .krds-accordion .accordion-item .btn-accordion::after {
  position: absolute;
  top: 50%;
  right: var(--krds-accordion--padding);
  transform: translateY(-50%) rotate(0deg);
}

.apply-aside .krds-accordion .accordion-item .btn-accordion.active::after {
  transform: translateY(-50%) rotate(180deg);
}

.apply-aside .krds-accordion .accordion-body {
  padding: 16px !important;
}

.apply-aside .search-condition {
  max-height: 930px !important;
}

.apply-aside .krds-form-select {
  height: 40px !important;
  font-size: var(--krds-form-check--pc-font-size-medium) !important;
}

.apply-aside .krds-input {
  height: 40px !important;
  font-size: var(--krds-form-check--pc-font-size-medium) !important;
}

.apply-aside .krds-form-check label {
  font-size: 16px !important;
}

.apply-aside .btn-ico-wrap .btn-search-text {
  right: 0.2rem !important;
}

.apply-aside .btn-ico-wrap .btn-place-search {
  right: 0.2rem !important;
}

.apply-aside .btn-ico-wrap .btn-clear-text {
  right: 2.6rem !important;
}

.apply-aside .btn-ico-wrap .btn-clear-place {
  right: 2.6rem !important;
}

.apply-aside .btn-ico-wrap .btn-remove-stopover {
  right: 2.6rem !important;
}

.tbl-apply tbody td {
  padding: 10px 10px 10px 10px !important;
}

.apply-accordion {
  padding: 0px !important;
  border-top: 0px !important;
  background-color: var(--krds-accordion--color-action-open) !important;
}

.apply-accordion.krds-accordion .accordion-item {
  padding: 0px !important;
  margin-bottom: 4px !important;
}

.apply-aside .table-simple-link-list {
  width: 100% !important;
}

.apply-aside .table-simple-link-list td {
  padding: 2px 2px 2px 2px !important;
  font-size: 14px !important;
}

.place-list {
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  width: 100%;
  height: 240px;
  background: #f2f3f5;
  scrollbar-width: auto !important; /* Firefox - 항상 표시 */
  scrollbar-color: #888 #f1f1f1 !important; /* Firefox */
  -webkit-overflow-scrolling: touch;
}

/* Webkit 브라우저용 스크롤바 스타일 */
.place-list::-webkit-scrollbar {
  width: 8px !important;
  display: block !important;
}

.place-list::-webkit-scrollbar-track {
  background: #f1f1f1 !important;
  border-radius: 4px !important;
}

.place-list::-webkit-scrollbar-thumb {
  background: #888 !important;
  border-radius: 4px !important;
}

.place-list::-webkit-scrollbar-thumb:hover {
  background: #555 !important;
}

/* Firefox 전용 스크롤바 설정 */
@supports (scrollbar-width: auto) {
  .place-list {
    scrollbar-width: auto !important;
    scrollbar-color: #888 #f1f1f1 !important;
  }

}

.place-list .path {
  overflow: hidden;
  width: 100%;
  border-top: 1px solid #e7e9ec;
  padding: 15px 15px 15px 15px !important;
  cursor: pointer;
}

.place-list .path-name {
  font-weight: 700;
}


.map-addr-pop {
  padding: 10px;
}

.map-addr-pop .title-box {
  margin-bottom: 20px;
}

/* close-info-window 클래스에 X 버튼 스타일 추가 */
.close-info-window {
  position: absolute;
  top: 2px;
  right: 0px;
  width: 20px;
  height: 20px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  color: #666;
  z-index: 10;
  transition: all 0.2s ease;
}

.close-info-window:hover {
  background: #e0e0e0;
  color: #333;
  transform: scale(1.1);
}

.close-info-window:active {
  transform: scale(0.95);
}

.map-addr-pop .title-box {
  position: relative;
  padding-right: 35px;
}

.map-addr-pop .map-addr-title {
  word-break: break-all;
  line-height: 1.4;
}

/* 맵 요소의 포커스 테두리 제거 (마우스 클릭 시만; 키보드 초점은 아래 :focus-visible로 표시) */
#map:focus:not(:focus-visible),
#map *:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

/* 네이버 지도 컨테이너의 포커스 테두리 제거 (마우스 클릭 시만) */
.naver-map-container:focus:not(:focus-visible),
.naver-map-container *:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

/* 웹 접근성(초점 표시): 지도·지도 컨트롤 키보드 초점 표시 (지도 내부 overflow에 잘리지 않도록 안쪽에 표시) */
#map:focus-visible,
#map *:focus-visible,
.naver-map-container:focus-visible,
.naver-map-container *:focus-visible {
  outline: 3px solid #0b50d0 !important;
  outline-offset: -3px !important;
  box-shadow: inset 0 0 0 5px #fff !important;
}
/* 지도 컨테이너 자체(#map, 미니맵)는 지도 타일이 테두리를 덮으므로 위에 겹친 테두리로 표시 (클릭·드래그 방해 없음) */
#map:focus-visible::after,
#minimap:focus-visible::after,
.naver-map-container:focus-visible::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  border: 3px solid #0b50d0;
  box-shadow: inset 0 0 0 2px #fff;
  border-radius: inherit;
}

.node_poi{width:28px; height: 50px; background: url(/images/map/map-marker-poi.png.png)right center no-repeat; cursor:pointer;}
.node_poi_start {width: 28px; height: 50px; background: url(/images/map/map-marker-start.png)right center no-repeat; cursor: pointer;}
.node_poi_finish {width: 28px; height: 50px; background: url(/images/map/map-marker-end.png)right center no-repeat; cursor: pointer;}
.node_poi_stopover0{width:28px; height: 50px; background: url(/images/map/map-marker-stopover1.png)right center no-repeat; cursor:pointer;}
.node_poi_stopover1{width:28px; height: 50px; background: url(/images/map/map-marker-stopover2.png)right center no-repeat; cursor:pointer;}
.node_poi_stopover2{width:28px; height: 50px; background: url(/images/map/map-marker-stopover3.png)right center no-repeat; cursor:pointer;}
.node_poi_stopover3{width:28px; height: 50px; background: url(/images/map/map-marker-stopover4.png)right center no-repeat; cursor:pointer;}
.node_poi_stopover4{width:28px; height: 50px; background: url(/images/map/map-marker-stopover5.png)right center no-repeat; cursor:pointer;}
.node_poi_stopover5{width:28px; height: 50px; background: url(/images/map/map-marker-stopover6.png)right center no-repeat; cursor:pointer;}
.node_poi_stopover6{width:28px; height: 50px; background: url(/images/map/map-marker-stopover7.png)right center no-repeat; cursor:pointer;}
.node_poi_stopover7{width:28px; height: 50px; background: url(/images/map/map-marker-stopover8.png)right center no-repeat; cursor:pointer;}
.node_poi_stopover8{width:28px; height: 50px; background: url(/images/map/map-marker-stopover9.png)right center no-repeat; cursor:pointer;}
.node_poi_stopover9{width:28px; height: 50px; background: url(/images/map/map-marker-stopover10.png)right center no-repeat; cursor:pointer;}
.node_poi_stopover10{width:28px; height: 50px; background: url(/images/map/map-marker-stopover11.png)right center no-repeat; cursor:pointer;}
.node_poi_stopover11{width:28px; height: 50px; background: url(/images/map/map-marker-stopover12.png)right center no-repeat; cursor:pointer;}
.node_poi_stopover12{width:28px; height: 50px; background: url(/images/map/map-marker-stopover13.png)right center no-repeat; cursor:pointer;}
.node_poi_stopover13{width:28px; height: 50px; background: url(/images/map/map-marker-stopover14.png)right center no-repeat; cursor:pointer;}
.node_poi_stopover14{width:28px; height: 50px; background: url(/images/map/map-marker-stopover15.png)right center no-repeat; cursor:pointer;}
.node_poi_stopover15{width:28px; height: 50px; background: url(/images/map/map-marker-stopover16.png)right center no-repeat; cursor:pointer;}
.node_poi_stopover16{width:28px; height: 50px; background: url(/images/map/map-marker-stopover17.png)right center no-repeat; cursor:pointer;}
.node_poi_stopover17{width:28px; height: 50px; background: url(/images/map/map-marker-stopover18.png)right center no-repeat; cursor:pointer;}
.node_poi_stopover18{width:28px; height: 50px; background: url(/images/map/map-marker-stopover19.png)right center no-repeat; cursor:pointer;}
.node_poi_stopover19{width:28px; height: 50px; background: url(/images/map/map-marker-stopover20.png)right center no-repeat; cursor:pointer;}


.user-apply .btn-show-link.on {
  background-color: rgb(37, 110, 244) !important;
  color: white !important;
  border: 0px !important;
}

.scrollable-table-container {
  /* 원하는 테이블의 최대 높이 */
  max-height: 500px; 
  /* 가로 스크롤이 필요할 경우 overflow-x: auto; */
  overflow-y: auto;
  border: 1px solid #ccc;
  width: 100%;
}

.scrollable-table-container table {
  width: 100%;
  border-collapse: collapse;
}

.scrollable-table-container thead {
  /* 헤더를 테이블 위에 고정 */
  position: sticky;
  top: 0;
  /* 스크롤 시 헤더가 가려지지 않도록 z-index 설정 */
  z-index: 10;
  background-color: #f2f2f2;
}

/* 셀 너비를 맞게 */
.scrollable-table-container th,
.scrollable-table-container td {
  padding: 10px;
  text-align: left;
  white-space: nowrap; /* 셀 내용이 줄바꿈되지 않도록 */
}

/* 수평 스크롤만 되는 테이블 컨테이너 */
.horizontal-scrollable-table-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #ccc;
}

.horizontal-scrollable-table-container table {
  width: 100%;
  border-collapse: collapse;
}

.horizontal-scrollable-table-container thead {
  z-index: 10;
  background-color: #f2f2f2;
}

.horizontal-scrollable-table-container th,
.horizontal-scrollable-table-container td {
  padding: 10px;
  text-align: left;
  white-space: nowrap;
}

/* 테이블 셀 줄바꿈 처리 */
.tbl-word-wrap th,
.tbl-word-wrap td {
  word-wrap: break-word;
  word-break: break-all;
  white-space: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* 테이블 셀 내용이 길 때 줄바꿈 강제 적용 */
.tbl-word-wrap th,
.tbl-word-wrap td {
  line-height: 1.4;
  vertical-align: top;
}

    
    /* 버튼 포커스 스타일 제거 (마우스 클릭 시만; 키보드 초점은 global.css :focus-visible 링 표시 - 웹 접근성) */
    .krds-btn:focus:not(:focus-visible) {
      outline: none !important;
      box-shadow: none !important;
    }
    
    /* 페이지 버튼 영역의 버튼들 포커스 제거 (마우스 클릭 시만) */
    .page-btn-wrap .krds-btn:focus:not(:focus-visible) {
      outline: none !important;
      box-shadow: none !important;
    }

    /* 단계별 요약 섹션 스타일 */
    .step-summary-section {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 1.5rem;
    }

    .step-summary-section h4 {
      color: #1e40af;
      border-bottom: 2px solid #3b82f6;
      padding-bottom: 0.5rem;
      font-size: 16px;
    }

    /* DataTables2: info 게시판 하단 .dt-info가 .dt-layout-end + margin-left:auto 로 오른쪽에만 붙어 왼쪽이 비는 현상 → 왼쪽 기준으로 표시 */
    #info-board-table_wrapper .dt-container div.dt-layout-row:not(.dt-layout-table),
    #sa-board-table_wrapper .dt-container div.dt-layout-row:not(.dt-layout-table) {
      justify-content: flex-start;
    }
    #info-board-table_wrapper .dt-container div.dt-layout-row:not(.dt-layout-table) .dt-layout-end,
    #sa-board-table_wrapper .dt-container div.dt-layout-row:not(.dt-layout-table) .dt-layout-end {
      margin-left: 0 !important;
      flex: 1 1 auto;
      width: 100%;
      justify-content: flex-start !important;
    }
    #info-board-table_wrapper .dt-container .dt-info,
    #sa-board-table_wrapper .dt-container .dt-info {
      text-align: left;
      width: 100%;
    }

    /* 지도 컨테이너 스타일 */
    .map-container {
      background: white;
      padding: 1rem;
      border-radius: 8px;
      border: 1px solid #e2e8f0;
    }

    /* 최종 확인 섹션 스타일 */
    .final-confirmation {
      background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
      border: 1px solid #93c5fd;
      border-radius: 12px;
    }

    /* 경고 알림 스타일 */
    .warning-notice {
      border-radius: 8px;
    }

    /* 신청제원: PC 2열 — 행 간격은 form-group margin(20px)만 사용 (gap-20=5rem이라 세로가 과도하게 벌어짐) */
    .apply-spec-fields > .grid.grid-cols-2 {
      align-items: start;
      row-gap: 0;
      column-gap: 20px;
    }
    .apply-spec-fields > .grid.grid-cols-2 > .form-group {
      margin-top: 20px;
    }

    /* 반응형 그리드 */
    @media (max-width: 768px) {
      .grid-cols-2 {
        grid-template-columns: 1fr;
      }
      .apply-spec-fields > .grid.grid-cols-2 {
        row-gap: 0;
        column-gap: 0;
      }
    }

    .krds-table-wrap .tbl-column-2 th {
      background-color: rgb(238, 242, 247);
    }


    .search-area {
      margin-bottom: 1rem;
      display: flex !important;
      justify-content: flex-end !important;
      width: 100% !important;
    }
    
    .search-input-group {
      display: flex;
      gap: 0.5rem;
      max-width: 500px;
      margin-left: auto !important;
      justify-content: flex-end;
    }
    
    .search-area form {
      width: 100% !important;
      display: flex !important;
      justify-content: flex-end !important;
    }
    
    .search-area .search-form {
      width: 100% !important;
      display: flex !important;
      justify-content: flex-end !important;
    }
    
    .search-area #search-form {
      width: 100% !important;
      display: flex !important;
      justify-content: flex-end !important;
    }
    
    .g-conts-area .search-area {
      text-align: right !important;
      display: flex !important;
      justify-content: flex-end !important;
    }
    
    .search-input-group .krds-input {
      flex: 1;
      height: 40px; /* 검색 버튼과 높이 일치 */
      width: 300px;
      box-sizing: border-box;
    }
    
    .search-input-group .krds-btn {
      height: 40px !important; /* 검색 입력창과 높이 일치 */
      box-sizing: border-box;
    }
    
    .loading-spinner {
      display: inline-block;
      width: 2rem;
      height: 2rem;
      border: 3px solid #f3f3f3;
      border-top: 3px solid #3498db;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    
    .krds-pagination-wrap {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0.5rem;
      margin-top: 2rem;
    }
    
    .pagination-item {
      display: inline-block;
      padding: 0.5rem 0.75rem;
      margin: 0 0.25rem;
      border: 1px solid #d1d5db;
      border-radius: 0.375rem;
      text-decoration: none;
      color: #374151;
      cursor: pointer;
    }
    
    .pagination-item:hover {
      background-color: #f3f4f6;
    }
    
    .pagination-item.active {
      background-color: #3b82f6;
      color: white;
      border-color: #3b82f6;
    }
    
    .pagination-item.disabled {
      color: #9ca3af;
      cursor: not-allowed;
      pointer-events: none;
    }
    
    .notice-row {
      cursor: pointer;
      transition: background-color 0.2s;
    }
    
    .notice-row:hover {
      background-color: #f8fafc;
    }
    
    .notice-title {
      text-align: left;
      padding-left: 1rem;
    }
    
    .notice-title a {
      color: #1f2937;
      text-decoration: none;
    }
    
    .notice-title a:hover {
      color: #3b82f6;
      text-decoration: underline;
    }


.stopover-option {
  display:none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000; 
  background: white; 
  border-radius: 8px; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.15); 
  padding: 20px; 
  min-width: 300px; 
  max-width: 400px;
}

.stopover-option .drag-handle {
  cursor: move;
  padding: 10px 0;
  margin: -20px -20px 10px -20px;
  border-radius: 8px 8px 0 0;
  border-bottom: 2px solid #007bff;
}

.stopover-item {
  margin-top: 10px;
}




/* ===== PAGINATION 공통 스타일 ===== */

/* 페이징 컨테이너 가운데 정렬 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  text-align: center;
  width: 100%;
  gap: 8px;
  flex-wrap: wrap;
}

/* 이전 버튼 스타일 */
.pagination .page-navi.prev {
  padding: 0 0.8rem 0 0.4rem;
}

/* 다음 버튼 스타일 */
.pagination .page-navi.next {
  padding: 0 0.4rem 0 0.8rem;
}

/* 이전, 다음 버튼 스타일 */
.pagination .page-navi {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-width: 6.2rem;
  height: 4rem;
  color: var(--iw-gray-70);
  border-radius: 0.6rem;
  transition: 0.4s ease-in-out;
  text-decoration: none;
}

/* 비활성화된 이전, 다음 버튼 스타일 */
.pagination .page-navi.disabled {
  color: var(--iw-gray-40);
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

/* 페이지 버튼 스타일 */
.pagination .page-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0 0.8rem;
}

/* 선택된 버튼 스타일 */
.pagination .page-links a.active {
  color: #fff;
  font-weight: 700;
  background-color: #063a74;
}



.pagination .page-links a, .pagination .page-links span {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 4rem;
  height: 4rem;
  color: var(--iw-gray-70);
  border-radius: 0.6rem;
  transition: 0.4s ease-in-out;
  text-decoration: none;
}



/* 페이징 목록 안의 페이징 스타일 */
/* 상세 목록 내부의 페이징도 가운데 정렬 */
table .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  text-align: center;
  width: 100%;
  gap: 8px;
  flex-wrap: wrap;
}

/* 페이징 컨테이너가 테이블 내부에 있을 때도 가운데 정렬 */
td .pagination,
th .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  text-align: center;
  width: 100%;
  gap: 8px;
  flex-wrap: wrap;
}

/* 페이징 래퍼 스타일 */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 20px 0;
  text-align: center;
}

/* 상세 목록 내부의 페이징 래퍼 */
td .pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 20px 0;
  text-align: center;
}

/* ===== PAGINATION 공통 스타일 END ===== */

.form-inline {
    flex-direction: row !important
}

.invisible {
  display: none !important;
}

.modal-small {
  width: 500px;
}

.map-address-only {
  padding: 10px;
}

.just-validate-error-label {
  color: var(--krds-form-group--message-error-text-color) !important;
  font-size: var(--krds-form-group--message-pc-font-size) !important;
}

.just-validate-error-field {
  border-color: var(--krds-form-group--message-error-text-color) !important;
}

.table-bottom-btn-wrap {
  z-index: 10;
  display: flex
;
  justify-content: flex-end;
  gap: var(--krds-gap-5);
  margin-top: var(--krds-gap-5);
}

.no-border {
  border: none !important;
}

/* QR 코드 가운데 정렬 */
.qrcode {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: 10px;
}

.ospermit-info-list {
  --krds-info-list--depth1-list-margin-top: 0;
  --krds-info-list--depth2-list-margin-top: var(--krds-gap-5);
  --krds-info-list--depth3-list-margin-top: var(--krds-gap-4);
  --krds-info-list--depth1-padding-left: var(--krds-number-12);
  --krds-info-list--depth2-padding-left: var(--krds-number-10);
  --krds-info-list--depth3-padding-left: var(--krds-number-9);
  --krds-info-list--gap-layout-depth1-li-li: var(--krds-gap-4);
  --krds-info-list--gap-layout-depth2-li-li: var(--krds-gap-3);
  --krds-info-list--gap-layout-depth3-li-li: var(--krds-gap-3);
  --krds-info-list--pc-text-depth1: var(--krds-pc-font-size-body-medium);
  --krds-info-list--mobile-text-depth1: var(--krds-mobile-font-size-body-medium);
  --krds-info-list--pc-text-depth2: var(--krds-pc-font-size-body-medium);
  --krds-info-list--mobile-text-depth2: var(--krds-mobile-font-size-body-medium);
  --krds-info-list--pc-text-depth3: var(--krds-pc-font-size-body-small);
  --krds-info-list--mobile-text-depth3: var(--krds-mobile-font-size-body-small);
  --krds-info-list--info-txt-margin-top: var(--krds-number-7);
  --krds-info-list--depth1-color-text: var(--krds-light-color-text-subtle);
  --krds-info-list--depth2-color-text: var(--krds-light-color-text-subtle);
  --krds-info-list--depth3-color-text: var(--krds-light-color-text-subtle);
  display: flex;
  flex-direction: column;
  margin-top: var(--krds-info-list--depth1-list-margin-top);
}

.ospermit-info-list > li {
  position: relative;
  padding-left: var(--krds-info-list--depth1-padding-left);
  color: var(--krds-info-list--depth1-color-text);
  font-size: var(--krds-info-list--pc-text-depth1);
}

.ospermit-info-list.bar > li {
  padding-left: 1.2rem;
}

.ospermit-info-list.bar > li::before {
  content: "- ";
  position: absolute;
  color: var(--krds-info-list--depth1-color-text);
  left: 0;
  top: 0;
}

.g-wrap #container .inner-wide .krds-side-navigation {
  width: 20rem !important;
}

/* ===== 글자·화면 설정 스타일 ===== */

/* 글자 크기 조절 */
body.scale-small {
  font-size: 0.875rem !important; /* 14px */
}

body.scale-small * {
  font-size: inherit;
}

body.scale-medium {
  font-size: 17px !important; /* 17px - 기본 (이전 기본값) */
}

body.scale-medium * {
  font-size: inherit;
}

body.scale-large {
  font-size: 1.125rem !important; /* 18px */
}

body.scale-large * {
  font-size: inherit;
}

body.scale-xlarge {
  font-size: 1.25rem !important; /* 20px */
}

body.scale-xlarge * {
  font-size: inherit;
}

body.scale-xxlarge {
  font-size: 1.5rem !important; /* 24px */
}

body.scale-xxlarge * {
  font-size: inherit;
}

/* 화면 표시 모드 */
body.view-mode-light,
html.view-mode-light {
  background-color: #ffffff !important;
  color: #000000 !important;
}

body.view-mode-high-contrast,
html.view-mode-high-contrast {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* 선명하게(어두운 배경): 전체 검은색 배경 + 흰색 글씨 */
body.view-mode-high-contrast a,
html.view-mode-high-contrast a {
  color: #ffffff !important;
}

body.view-mode-high-contrast .g-wrap,
body.view-mode-high-contrast #wrap,
body.view-mode-high-contrast #container,
body.view-mode-high-contrast .main,
body.view-mode-high-contrast .inner-medium,
body.view-mode-high-contrast .inner-wide,
body.view-mode-high-contrast .contents,
html.view-mode-high-contrast .g-wrap,
html.view-mode-high-contrast #wrap,
html.view-mode-high-contrast #container,
html.view-mode-high-contrast .main,
html.view-mode-high-contrast .inner-medium,
html.view-mode-high-contrast .inner-wide,
html.view-mode-high-contrast .contents {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #333333 !important;
}

body.view-mode-high-contrast .main-vban-wrap,
body.view-mode-high-contrast .main-box-responsive .in,
body.view-mode-high-contrast .main-sect,
html.view-mode-high-contrast .main-vban-wrap,
html.view-mode-high-contrast .main-box-responsive .in,
html.view-mode-high-contrast .main-sect {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #333333 !important;
}

/* 헤더 홈 드롭메뉴가 화면 밖으로 잘리지 않도록 overflow 허용 */
#krds-header .header-container,
#krds-header .header-container .inner-medium,
#krds-header .header-container .inner-wide,
#krds-header .header-branding,
#krds-header .header-actions {
  overflow: visible;
}

body.view-mode-high-contrast #krds-header,
body.view-mode-high-contrast .header-in,
body.view-mode-high-contrast .header-container,
body.view-mode-high-contrast .header-utility,
body.view-mode-high-contrast .header-branding,
body.view-mode-high-contrast .gnb-header,
body.view-mode-high-contrast .search-header,
html.view-mode-high-contrast #krds-header,
html.view-mode-high-contrast .header-in,
html.view-mode-high-contrast .header-container,
html.view-mode-high-contrast .header-utility,
html.view-mode-high-contrast .header-branding,
html.view-mode-high-contrast .gnb-header,
html.view-mode-high-contrast .search-header {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #333333 !important;
}

body.view-mode-high-contrast #krds-header a,
body.view-mode-high-contrast #krds-header span,
body.view-mode-high-contrast #krds-header .header-actions,
html.view-mode-high-contrast #krds-header a,
html.view-mode-high-contrast #krds-header span,
html.view-mode-high-contrast #krds-header .header-actions {
  color: #ffffff !important;
}

body.view-mode-high-contrast button,
html.view-mode-high-contrast button {
  background-color: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
}

body.view-mode-high-contrast input,
body.view-mode-high-contrast select,
body.view-mode-high-contrast textarea,
html.view-mode-high-contrast input,
html.view-mode-high-contrast select,
html.view-mode-high-contrast textarea {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

/* 선명하게(어두운 배경) 모드 가독성 개선 - 사이드 메뉴, 콘텐츠 박스, 브레드크럼 등 */
body.view-mode-high-contrast .krds-side-navigation,
html.view-mode-high-contrast .krds-side-navigation {
  background-color: #000000 !important;
  border-color: #333333 !important;
}

body.view-mode-high-contrast .krds-side-navigation .lnb-tit,
body.view-mode-high-contrast .krds-side-navigation .lnb-btn,
body.view-mode-high-contrast .krds-side-navigation .lnb-link,
html.view-mode-high-contrast .krds-side-navigation .lnb-tit,
html.view-mode-high-contrast .krds-side-navigation .lnb-btn,
html.view-mode-high-contrast .krds-side-navigation .lnb-link {
  color: #ffffff !important;
  background-color: transparent !important;
  border-color: #333333 !important;
}

body.view-mode-high-contrast .krds-side-navigation .lnb-btn.lnb-link.active.selected,
body.view-mode-high-contrast .krds-side-navigation .lnb-btn.lnb-link.selected,
html.view-mode-high-contrast .krds-side-navigation .lnb-btn.lnb-link.active.selected,
html.view-mode-high-contrast .krds-side-navigation .lnb-btn.lnb-link.selected {
  background-color: #1a1a1a !important;
  color: #ffffff !important;
  border-color: #333333 !important;
}

body.view-mode-high-contrast .g-info-box,
body.view-mode-high-contrast .conts-area,
body.view-mode-high-contrast .g-conts-area,
html.view-mode-high-contrast .g-info-box,
html.view-mode-high-contrast .conts-area,
html.view-mode-high-contrast .g-conts-area {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #333333 !important;
}

body.view-mode-high-contrast .g-info-box p,
body.view-mode-high-contrast .g-info-box li,
body.view-mode-high-contrast .g-info-box .krds-info-list li,
body.view-mode-high-contrast .conts-area p,
body.view-mode-high-contrast .conts-area li,
body.view-mode-high-contrast .g-conts-area p,
body.view-mode-high-contrast .g-conts-area li,
html.view-mode-high-contrast .g-info-box p,
html.view-mode-high-contrast .g-info-box li,
html.view-mode-high-contrast .g-info-box .krds-info-list li,
html.view-mode-high-contrast .conts-area p,
html.view-mode-high-contrast .conts-area li,
html.view-mode-high-contrast .g-conts-area p,
html.view-mode-high-contrast .g-conts-area li {
  color: #ffffff !important;
}

body.view-mode-high-contrast .krds-breadcrumb-wrap,
body.view-mode-high-contrast .krds-breadcrumb-wrap .breadcrumb,
body.view-mode-high-contrast .krds-breadcrumb-wrap .breadcrumb li,
html.view-mode-high-contrast .krds-breadcrumb-wrap,
html.view-mode-high-contrast .krds-breadcrumb-wrap .breadcrumb,
html.view-mode-high-contrast .krds-breadcrumb-wrap .breadcrumb li {
  color: #ffffff !important;
}

body.view-mode-high-contrast .h-tit,
body.view-mode-high-contrast .sec-tit,
body.view-mode-high-contrast .page-title-wrap,
html.view-mode-high-contrast .h-tit,
html.view-mode-high-contrast .sec-tit,
html.view-mode-high-contrast .page-title-wrap {
  color: #ffffff !important;
}

body.view-mode-high-contrast .contents p,
body.view-mode-high-contrast .contents li,
body.view-mode-high-contrast .contents span,
body.view-mode-high-contrast .krds-info-list li,
body.view-mode-high-contrast .ospermit-info-list li,
html.view-mode-high-contrast .contents p,
html.view-mode-high-contrast .contents li,
html.view-mode-high-contrast .contents span,
html.view-mode-high-contrast .krds-info-list li,
html.view-mode-high-contrast .ospermit-info-list li {
  color: #ffffff !important;
}

body.view-mode-high-contrast .page-nav-label,
html.view-mode-high-contrast .page-nav-label {
  color: #ffffff !important;
}

body.view-mode-high-contrast .page-nav-link:not(.page-nav-link-disabled),
html.view-mode-high-contrast .page-nav-link:not(.page-nav-link-disabled) {
  color: #ffffff !important;
}

body.view-mode-high-contrast .page-nav-link-disabled,
html.view-mode-high-contrast .page-nav-link-disabled {
  color: #999999 !important;
}

body.view-mode-high-contrast footer,
html.view-mode-high-contrast footer {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #333333 !important;
}

body.view-mode-high-contrast .footer-banner,
html.view-mode-high-contrast .footer-banner {
  background-color: #000000 !important;
  color: #ffffff !important;
}

body.view-mode-high-contrast .footer-banner .krds-btn.link,
body.view-mode-high-contrast footer a,
html.view-mode-high-contrast .footer-banner .krds-btn.link,
html.view-mode-high-contrast footer a {
  color: #ffffff !important;
}

body.view-mode-high-contrast .f-btm-text,
body.view-mode-high-contrast #krds-footer .f-btm,
body.view-mode-high-contrast #krds-footer .f-btm-text,
html.view-mode-high-contrast .f-btm-text,
html.view-mode-high-contrast #krds-footer .f-btm,
html.view-mode-high-contrast #krds-footer .f-btm-text {
  color: #ffffff !important;
}

body.view-mode-theme,
html.view-mode-theme {
  /* 시스템 테마에 따라 자동 적용 */
}

/* 다크 모드 감지 시 */
@media (prefers-color-scheme: dark) {
  body.view-mode-theme,
  html.view-mode-theme {
    background-color: #000000 !important;
    color: #ffffff !important;
  }
  
  body.view-mode-theme a,
  html.view-mode-theme a {
    color: #ffff00 !important;
  }
}

/* 모달이 열렸을 때 모달 내부 요소들이 클릭 가능하도록 설정 */
#modal_adjust_display.in,
#modal_adjust_display.shown {
  pointer-events: auto !important;
}

#modal_adjust_display.in *,
#modal_adjust_display.shown * {
  pointer-events: auto !important;
}

/* 모달 내부 label과 input 요소들이 클릭 가능하도록 설정 */
#modal_adjust_display.in label,
#modal_adjust_display.shown label,
#modal_adjust_display.in input,
#modal_adjust_display.shown input,
#modal_adjust_display.in button,
#modal_adjust_display.shown button {
  pointer-events: auto !important;
}

/* ===== 글자·화면 설정 스타일 END ===== */

.tab.full.small-tab .btn-tab {
  height: var(--krds-tab--button-size-height) !important;
  padding: 0;
  font-size: var(--krds-tab--button-pc-font-size) !important;
}

.main-box-responsive .in.news-tab {
  padding-top: 20px;
}

.main-sect .news-tbl-list {
  gap: 0.9rem !important;
}

.main-sect {
  margin-top: var(--krds-gap-5) !important;
}

/* 상단 타이틀 영역: 타이틀 왼쪽, 목록 버튼 화면 오른쪽 끝에 고정 */
.page-title-wrap.page-title-with-list {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.page-title-wrap.page-title-with-list .h-tit {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-title-wrap.page-title-with-list .btn-back-to-list-top,
.page-title-wrap.page-title-with-list .btn-back-to-list {
  flex-shrink: 0;
  margin-left: auto;
}

/* === 인증차량 · 구조 SVG 배지 (공통) === */
.vhcl-structure-img-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
}

.crtfc-vhcl-badge-overlay {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  left: auto;
  bottom: auto;
  z-index: 2;
  width: min(42%, 52rem);
  max-width: 42%;
  pointer-events: none;
}

.crtfc-vhcl-view-badge {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(31, 95, 224, 0.18));
}

.crtfc-vhcl-badge {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0b5cab;
  background: #e8f2fb;
  border: 1px solid #9fc4e8;
  border-radius: 0.25rem;
  vertical-align: middle;
}

/* 차량 등록/수정 — 구조 카드 목록 내 오버레이 */
.vhcl-structure-list .vhcl-structure-img-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.vhcl-structure-list .crtfc-vhcl-badge-overlay {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: min(42%, 52rem);
  pointer-events: none;
}

.vhcl-structure-list .crtfc-vhcl-view-badge {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 2px 6px rgba(31, 95, 224, 0.18));
}

/* KRDS card-body flex 해제 — img-wrap 내부 오버레이 기준점 유지 */
.krds-structured-list .card-body.vhcl-structure-img {
  display: block;
  gap: 0;
}

@media (max-width: 767px) {
  .crtfc-vhcl-badge-overlay,
  .vhcl-structure-list .crtfc-vhcl-badge-overlay {
    width: min(48%, 24rem);
    max-width: 48%;
    top: 0.35rem;
    right: 0.35rem;
  }
}

/* 거리/축중량 표: 가로 스크롤 대신 세로(스택) 전환 */
.vhcl-structure-dims-table-wrap,
.vhcl-axle-loads-table-wrap {
  width: 100%;
  min-width: 0;
  max-height: none;
  overflow: hidden;
}

/* apply-car / apply/spec 공통: 안내·축중량 텍스트 배치 */
.vhcl-structure-dims-summary {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: stretch;
  margin-top: 12px;
  margin-bottom: 8px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #374151;
  line-height: 1.5;
  font-size: var(--krds-pc-font-size-label-xsmall, 1.3rem);
  word-break: keep-all;
}

.vhcl-structure-dims-summary-line {
  margin: 0;
}

.vhcl-structure-dims-summary-guide {
  font-weight: 500;
}

.vhcl-axle-load-limit-note {
  margin: 0 0 8px;
  font-weight: 500;
  color: #374151;
  line-height: 1.5;
  font-size: var(--krds-pc-font-size-label-xsmall, 1.3rem);
  word-break: keep-all;
}

.vhcl-structure-dims-summary-range {
  color: #374151;
}

/* 안내(summary)와 축중량 사이 — 거리 조정 미리보기 전용 패널 */
.vhcl-offset-preview-panel {
  margin-top: 40px;
  margin-bottom: 0;
  padding: 14px 16px;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  background: #eff6ff;
}

.vhcl-offset-preview-panel-title {
  margin: 0 0 6px;
  font-weight: 600;
  color: #1e3a8a;
  font-size: var(--krds-pc-font-size-label-xsmall, 1.3rem);
}

.vhcl-offset-preview-panel > .vhcl-offset-preview-hint {
  margin: 0 0 6px;
}

.vhcl-offset-preview-panel > .vhcl-offset-preview-effect {
  margin: 0 0 6px;
}

.vhcl-offset-preview-panel > .vhcl-offset-preview-adjusted {
  margin: 0 0 12px;
  color: #b45309;
  font-weight: 500;
}

.vhcl-offset-preview-row {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #bfdbfe;
}

.vhcl-offset-preview-row:last-child {
  margin-bottom: 0;
}

.vhcl-offset-preview-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: inherit;
  color: #1e40af;
}

.vhcl-offset-preview-control {
  display: grid;
  grid-template-columns: auto minmax(140px, 1fr) auto auto;
  grid-template-areas:
    "end-left . . end-right"
    "min slider value max";
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
}

.vhcl-offset-preview-end-left {
  grid-area: end-left;
  text-align: center;
}

.vhcl-offset-preview-end-right {
  grid-area: end-right;
  text-align: center;
}

.vhcl-offset-preview-bound-min {
  grid-area: min;
}

.vhcl-offset-preview-slider {
  grid-area: slider;
  width: 100%;
  min-width: 140px;
  accent-color: #2563eb;
  cursor: pointer;
}

.vhcl-offset-preview-value {
  grid-area: value;
  min-width: 4.8em;
  font-weight: 600;
  color: #1d4ed8;
  text-align: center;
}

.vhcl-offset-preview-bound-max {
  grid-area: max;
}

.vhcl-offset-preview-bound {
  font-size: 0.92em;
  color: #6b7280;
  min-width: 2.6em;
  text-align: center;
}

.vhcl-offset-preview-end {
  font-size: 0.92em;
  font-weight: 600;
  color: #1e40af;
  white-space: nowrap;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .vhcl-offset-preview-control {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "end-left . end-right"
      "min slider max"
      ". value .";
  }
}

.vhcl-offset-preview-hint {
  margin: 0;
  font-size: 0.92em;
  color: #64748b;
  line-height: 1.4;
}

/* 미리보기 패널 바로 아래 축중량이 이어지도록 상단 여백을 맞춤 */
.vhcl-offset-preview-panel + .vhcl-axle-loads {
  margin-top: 12px;
}

.vhcl-structure-dims-title,
.vhcl-axle-loads-title {
  font-weight: 600;
  margin: 0 0 8px;
}

.vhcl-axle-loads {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.vhcl-axle-loads-title {
  margin-top: 0;
}

.vhcl-axle-load-calc-warn,
.vhcl-axle-loads .vhcl-axle-load-calc-warn.form-hint {
  color: #dc2626 !important;
  font-weight: 500;
  margin: 12px 0 14px;
}

.vhcl-axle-loads-hint {
  margin: 0 0 10px;
}

/* form-group 밖(apply/spec)에서도 apply-car form-hint 와 동일하게 표시함 */
.vhcl-axle-loads-hint.form-hint {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: row;
  gap: var(--krds-gap-2, 0.4rem);
  width: 100%;
  font-size: var(--krds-form-group--message-pc-font-size, var(--krds-pc-font-size-label-xsmall, 1.3rem));
  color: var(--krds-form-group--message-text-color, var(--krds-light-color-text-subtle, #58616a));
  word-break: keep-all;
  line-height: 1.45;
}

.vhcl-axle-loads-hint.form-hint::before {
  content: "";
  display: inline-flex;
  flex: 0 0 var(--krds-icon--size-small, 1.6rem);
  width: var(--krds-icon--size-small, 1.6rem);
  height: var(--krds-icon--size-small, 1.6rem);
  background-color: var(--krds-light-color-text-basic, #1e2124);
  forced-color-adjust: none;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center center;
  mask-size: contain;
  -webkit-mask-image: url(/resources/img/component/icon/ico_information.svg);
  mask-image: url(/resources/img/component/icon/ico_information.svg);
}

@media (max-width: 767px) {
  .vhcl-axle-loads-hint.form-hint {
    font-size: var(--krds-form-group--message-mobile-font-size, var(--krds-mobile-font-size-label-xsmall, 1.2rem));
  }
}

.vhcl-axle-loads-grid {
  width: 100%;
  min-width: 0;
}

.vhcl-offset-range {
  margin-top: 12px;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: none;
  border-radius: 6px;
  background: #f8fafc;
  color: #374151;
  line-height: 1.5;
}

/* 축중량(자동계산)·오프셋 안내와 첨부 사진 구간 구분 */
#weight-permit-section .weight-permit-photos-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.vhcl-offset-range.is-warn {
  background: #fffbeb;
}

.vhcl-offset-range.is-adjusted {
  background: #eff8ff;
}

.vhcl-offset-range-line.is-adjusted-msg {
  font-weight: 600;
  color: #175cd3;
}

.krds-input.weight-axle-distance.is-offset-adjusted,
.krds-input.weight-axle-distance.is-offset-adjusted[readonly],
.krds-input.vhcl-dim-auto-input.is-offset-adjusted,
.krds-input.vhcl-dim-auto-input.is-offset-adjusted[readonly] {
  background-color: #eff8ff;
  color: #175cd3;
  font-weight: 600;
}

.vhcl-offset-range-title,
.vhcl-structure-dims-summary-title {
  margin: 0 0 6px;
  font-weight: 500;
  font-size: var(--krds-pc-font-size-label-xsmall, 1.3rem);
}

.weight-axle-dim-th {
  vertical-align: middle;
  line-height: 1.35;
}

.weight-axle-dim-inner {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.weight-axle-dim-primary {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.weight-axle-dim-name {
  display: inline-block;
}

.weight-axle-dim-flags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 0;
  justify-content: center;
  align-items: center;
}

.weight-axle-dim-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78em;
  line-height: 1.4;
  white-space: nowrap;
}

.weight-axle-dim-flag.is-auto {
  background: #e5e7eb;
  color: #111827;
}

.weight-axle-dim-adjusted-mark {
  display: inline-block;
  color: #175cd3;
  font-weight: 700;
  font-size: 1em;
  line-height: 1;
  vertical-align: super;
}

.weight-axle-dim-adjusted-notes {
  margin: 8px 0 0;
}

.weight-axle-dim-adjusted-note {
  margin: 0;
  color: #175cd3;
  font-size: var(--krds-pc-font-size-label-xsmall, 1.3rem);
  font-weight: 600;
  line-height: 1.4;
  word-break: keep-all;
}

.weight-axle-dim-adjusted-note + .weight-axle-dim-adjusted-note {
  margin-top: 4px;
}

.weight-axle-dim-adjusted-note.is-detail {
  font-weight: 500;
  padding-left: 0.75em;
}

.weight-axle-dim-stacked-label {
  display: none;
}

.vhcl-offset-range-fixed {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.vhcl-offset-range-dynamic {
  margin-top: 0;
}

.vhcl-offset-range-line {
  margin: 0 0 4px;
  font-size: var(--krds-pc-font-size-label-xsmall, 1.3rem);
}

.vhcl-offset-range-line:last-child {
  margin-bottom: 0;
}

.vhcl-offset-range-line.is-over {
  color: #b42318;
  font-weight: 600;
}

.krds-input.vhcl-axle-load-input.is-axle-over,
.krds-input.vhcl-axle-load-input.is-axle-over[readonly] {
  background-color: #fef3f2;
  color: #b42318;
  border-color: #f97066;
  font-weight: 600;
}

/* 자동계산/축중량 입력: apply-car 와 동일한 배경 (krds readonly 보다 우선) */
.krds-input.vhcl-dim-auto-input,
.krds-input.vhcl-dim-auto-input[readonly],
.krds-input.vhcl-axle-load-input,
.krds-input.vhcl-axle-load-input[readonly] {
  background-color: var(--krds-color-light-gray-5, #f4f6f8);
  color: #374151;
  cursor: default;
}

.vhcl-structure-dims-table-wrap.is-stacked,
.vhcl-axle-loads-table-wrap.is-stacked {
  max-height: none;
  overflow: hidden;
  border: 1px solid #ccc;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.vhcl-structure-dims-table-wrap.is-stacked .vhcl-structure-dims-table,
.vhcl-axle-loads-table-wrap.is-stacked .vhcl-axle-loads-table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed;
}

.vhcl-structure-dims-table-wrap.is-stacked .vhcl-structure-dims-table,
.vhcl-axle-loads-table-wrap.is-stacked .vhcl-axle-loads-table,
.vhcl-structure-dims-table-wrap.is-stacked .vhcl-structure-dims-table > colgroup,
.vhcl-axle-loads-table-wrap.is-stacked .vhcl-axle-loads-table > colgroup,
.vhcl-structure-dims-table-wrap.is-stacked .vhcl-structure-dims-table > thead,
.vhcl-axle-loads-table-wrap.is-stacked .vhcl-axle-loads-table > thead,
.vhcl-structure-dims-table-wrap.is-stacked .vhcl-structure-dims-table > tbody,
.vhcl-axle-loads-table-wrap.is-stacked .vhcl-axle-loads-table > tbody,
.vhcl-structure-dims-table-wrap.is-stacked .vhcl-structure-dims-table > tbody > tr,
.vhcl-axle-loads-table-wrap.is-stacked .vhcl-axle-loads-table > tbody > tr {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.vhcl-structure-dims-table-wrap.is-stacked .vhcl-structure-dims-table > thead,
.vhcl-axle-loads-table-wrap.is-stacked .vhcl-axle-loads-table > thead,
.vhcl-structure-dims-table-wrap.is-stacked .vhcl-structure-dims-table > colgroup,
.vhcl-axle-loads-table-wrap.is-stacked .vhcl-axle-loads-table > colgroup {
  display: none;
}

.vhcl-structure-dims-table-wrap.is-stacked .vhcl-structure-dims-table > tbody > tr > td,
.vhcl-axle-loads-table-wrap.is-stacked .vhcl-axle-loads-table > tbody > tr > td {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 !important;
  text-align: left !important;
  background: transparent !important;
  border-bottom: 1px solid #e5e7eb;
}

.vhcl-structure-dims-table-wrap.is-stacked .vhcl-structure-dims-table > tbody > tr > td:last-child,
.vhcl-axle-loads-table-wrap.is-stacked .vhcl-axle-loads-table > tbody > tr > td:last-child {
  border-bottom: none;
}

.vhcl-structure-dims-table-wrap.is-stacked .vhcl-structure-dims-table > tbody > tr > td::before,
.vhcl-axle-loads-table-wrap.is-stacked .vhcl-axle-loads-table > tbody > tr > td::before {
  content: attr(data-label);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100px;
  min-height: 100%;
  padding: 10px;
  box-sizing: border-box;
  background-color: #eff4f7;
  font-weight: 700;
  color: #374151;
  word-break: keep-all;
}

/* 거리표 모바일: th와 동일한 라벨·플래그(굵게) 구조를 표시함 */
.vhcl-structure-dims-table-wrap.is-stacked .weight-axle-distance-table > tbody > tr > td::before {
  display: none;
  content: none;
}

.vhcl-structure-dims-table-wrap.is-stacked .weight-axle-distance-table > tbody > tr > td {
  grid-template-columns: minmax(100px, 120px) minmax(0, 1fr);
}

.vhcl-structure-dims-table-wrap.is-stacked .weight-axle-dim-stacked-label {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 100%;
  padding: 10px;
  box-sizing: border-box;
  background-color: #eff4f7;
  color: #374151;
  line-height: 1.35;
  word-break: keep-all;
}

.vhcl-structure-dims-table-wrap.is-stacked .weight-axle-dim-stacked-label .weight-axle-dim-inner,
.vhcl-structure-dims-table-wrap.is-stacked .weight-axle-dim-stacked-label .weight-axle-dim-primary {
  justify-content: flex-start;
}

.vhcl-structure-dims-table-wrap.is-stacked .weight-axle-dim-stacked-label .weight-axle-dim-name {
  font-weight: 700;
}

.vhcl-structure-dims-table-wrap.is-stacked .weight-axle-dim-stacked-label .weight-axle-dim-flags {
  justify-content: flex-start;
  margin-top: 0;
}

.vhcl-structure-dims-table-wrap.is-stacked .vhcl-dim-input-group,
.vhcl-axle-loads-table-wrap.is-stacked .vhcl-dim-input-group {
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 8px 10px;
  background: var(--krds-color-light-gray-5, #f4f6f8);
  box-sizing: border-box;
}

.vhcl-structure-dims-table-wrap.is-stacked .vhcl-dim-input-group .krds-input,
.vhcl-axle-loads-table-wrap.is-stacked .vhcl-dim-input-group .krds-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* 중량허가 첨부사진 라이트박스 — 담당자 상세 확인용 대형 뷰 */
.weight-photo-preview--zoomable {
  cursor: zoom-in;
}

.weight-photo-preview--zoomable:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

body.weight-photo-lightbox-open {
  overflow: hidden;
}

.weight-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  box-sizing: border-box;
}

.weight-photo-lightbox[hidden] {
  display: none !important;
}

.weight-photo-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.80);
}

.weight-photo-lightbox__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
}

.weight-photo-lightbox__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  opacity: 1;
}

.weight-photo-lightbox__title {
  margin: 0;
  color: #f8fafc;
  font-size: 1.6rem;
  font-weight: 600;
  word-break: keep-all;
}

.weight-photo-lightbox__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.weight-photo-lightbox__bg-remove {
  display: flex;
  align-items: center;
  height: 40px;
  margin-right: 4px;
  white-space: nowrap;
}

.weight-photo-lightbox__bg-remove[hidden] {
  display: none !important;
}

.weight-photo-lightbox__bg-remove .krds-form-check {
  display: flex;
  align-items: center;
  height: 40px;
  margin: 0;
}

.weight-photo-lightbox__bg-remove .krds-form-check input[type=checkbox] ~ label {
  display: flex;
  color: #cbd5e1;
  font-weight: 400;
  line-height: 1;
  align-items: center;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.weight-photo-lightbox__bg-remove .krds-form-check input[type=checkbox]:focus ~ label,
.weight-photo-lightbox__bg-remove .krds-form-check input[type=checkbox]:focus-visible ~ label {
  box-shadow: none;
  outline: none;
}

.weight-photo-lightbox__bg-remove .krds-form-check input[type=checkbox] ~ label:before {
  background-color: rgba(248, 250, 252, 0.12);
  border-color: #94a3b8;
  margin-top: 0.2rem;
  align-self: center;
}

.weight-photo-lightbox__bg-remove .krds-form-check input[type=checkbox] ~ label:after {
  top: calc((var(--krds-form-check--button-size-medium) - var(--krds-form-check--checkbox-check-size-medium)) / 2 + 0.2rem);
}

.weight-photo-lightbox__bg-remove .krds-form-check input[type=checkbox]:checked ~ label:before {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.weight-photo-lightbox__bg-remove .krds-form-check input[type=checkbox]:checked ~ label:after {
  background-color: #f8fafc;
}

.weight-photo-lightbox__bg-remove.is-processing {
  opacity: 0.7;
  pointer-events: none;
}

.weight-photo-lightbox--bg-removed .weight-photo-lightbox__image.is-bg-removed-blend {
  mix-blend-mode: multiply;
  background: transparent;
}

.weight-photo-lightbox__opacity {
  display: flex;
  align-items: center;
  height: 40px;
  gap: 8px;
  margin-right: 4px;
  color: #cbd5e1;
  font-size: 1.3rem;
  white-space: nowrap;
}

.weight-photo-lightbox__opacity[hidden] {
  display: none !important;
}

.weight-photo-lightbox__opacity-slider {
  width: 120px;
  height: 16px;
  margin: 0;
  accent-color: #93c5fd;
  cursor: pointer;
}

.weight-photo-lightbox__opacity-value {
  min-width: 4.2rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.weight-photo-lightbox--overlay .weight-photo-lightbox__image {
  background: transparent;
}

.weight-photo-lightbox__zoom-btn,
.weight-photo-lightbox__close {
  flex: 0 0 auto;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.12);
  color: #f8fafc;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.weight-photo-lightbox__close {
  width: 40px;
  font-size: 2.4rem;
  border-radius: 999px;
}

.weight-photo-lightbox__zoom-btn:hover,
.weight-photo-lightbox__zoom-btn:focus,
.weight-photo-lightbox__close:hover,
.weight-photo-lightbox__close:focus {
  background: rgba(248, 250, 252, 0.28);
  outline: none;
}

.weight-photo-lightbox__zoom-label {
  min-width: 4.8rem;
  margin: 0;
  color: #cbd5e1;
  font-size: 1.3rem;
  text-align: center;
}

.weight-photo-lightbox__stage {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.weight-photo-lightbox__stage.is-dragging {
  cursor: grabbing;
}

.weight-photo-lightbox__image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  transform-origin: center center;
  will-change: transform;
}

.weight-photo-lightbox__image {
  display: block;
  max-width: calc(100vw - 96px);
  max-height: calc(100vh - 96px);
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  background: #000;
}

.weight-photo-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  opacity: 1;
}

.weight-photo-lightbox__nav:hover,
.weight-photo-lightbox__nav:focus {
  background: rgba(15, 23, 42, 0.96);
  outline: none;
}

.weight-photo-lightbox__nav--prev {
  left: 12px;
}

.weight-photo-lightbox__nav--next {
  right: 12px;
}

.weight-photo-lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 1.3rem;
  pointer-events: none;
  opacity: 1;
}

.weight-photo-lightbox__nav,
.weight-photo-lightbox__counter {
  background: rgba(15, 23, 42, 0.88);
}

@media (max-width: 767px) {
  .weight-photo-lightbox__toolbar {
    flex-wrap: wrap;
    min-height: auto;
    padding: 8px;
  }

  .weight-photo-lightbox__opacity-slider {
    width: 84px;
  }

  .weight-photo-lightbox__image {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 120px);
  }

  .weight-photo-lightbox__nav {
    width: 44px;
    height: 44px;
  }

  .weight-photo-lightbox__nav--prev {
    left: 6px;
  }

  .weight-photo-lightbox__nav--next {
    right: 6px;
  }
}

.vhcl-structure-dims-head,
.vhcl-view-dims-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0 0 0.75rem;
}

.vhcl-structure-dims-head .vhcl-structure-dims-title,
.vhcl-view-dims-head .vhcl-view-dims-title {
  margin: 0;
}

.vhcl-extdrw-btn {
  flex-shrink: 0;
}

