@charset "UTF-8";

/* ===================================================
   반응형 스타일 - 용인특례시 계약정보공개시스템
   =================================================== */

/* 모바일 전용 줄바꿈: PC에서 숨김 */
.br-mo {
  display: none;
}

/* 모바일 아코디언 헤더: PC에서 숨김 */
.mega-menu__mobile-header {
  display: none;
}

/* ===================================================
   Mobile (1280px 이하)
   =================================================== */
@media (max-width: 1280px) {

  /* ----- 1. Base ----- */
  body {
    min-width: auto;
    word-break: keep-all;
  }

  html {
    scrollbar-gutter: auto;
  }

  .inner {
    width: 100%;
    padding: 0 16px;
  }


  /* ----- 2. Top Link Bar ----- */
  .top-link-bar {
    height: 32px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .top-link-bar::-webkit-scrollbar { display: none; }
  .top-link-bar { scrollbar-width: none; }

  .top-link-bar .inner {
    width: auto;
    min-width: 100%;
    padding: 0;
  }

  .top-link-bar__list {
    flex-wrap: nowrap;
  }

  .top-link-bar__item {
    flex: none;
    padding: 0 16px;
  }

  .top-link-bar__link {
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
  }

  .top-link-bar__item + .top-link-bar__item::before {
    height: 14px;
  }


  /* ----- 3. GNB Header ----- */
  .gnb {
    height: 76px;
    border-bottom: 1px solid var(--color-line2);
  }

  .gnb .inner {
    width: 100%;
    padding: 0 16px;
  }

  .gnb__logo-img {
    height: 32px;
  }

  .gnb__logo-text {
    font-size: 19px;
    line-height: 28px;
  }


  /* ----- 4. GNB Sub Navigation ----- */
  .gnb-sub {
    position: absolute;
    top: 32px;
    right: 0;
    width: auto;
    height: 76px;
    border: none;
    background: transparent;
    z-index: 10;
  }

  .gnb-sub__inner {
    height: 100%;
    justify-content: flex-end;
  }

  .gnb-sub__list {
    display: none;
  }

  .gnb-sub__menu-area {
    border: none;
    margin-right: 16px;
    width: auto;
  }


  /* ----- 5. Mega Menu (Mobile Accordion) ----- */
  .mega-menu.is-open {
    position: fixed;
    top: 108px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: block;
  }

  .mega-menu__panel {
    height: 100%;
    border-radius: 0;
    padding: 0;
    overflow-y: auto;
  }

  .mega-menu__columns {
    flex-direction: column;
    padding: 0;
    min-height: auto;
    gap: 0;
  }

  .mega-menu__divider {
    display: none;
  }

  .mega-menu__overlay {
    display: none;
  }

  .mega-menu__col {
    width: 100%;
    border-bottom: 1px solid var(--color-line);
    padding: 0;
    gap: 0;
    flex-direction: column;
  }

  /* 모바일 아코디언 헤더 (JS에서 삽입) */
  .mega-menu__mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 26px;
    font-size: 19px;
    font-weight: 500;
    line-height: 28px;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
  }

  .mega-menu__mobile-arrow {
    display: inline-block;
    width: 16px;
    height: 16px;
    position: relative;
  }

  .mega-menu__mobile-arrow::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-text);
    border-bottom: 2px solid var(--color-text);
    transform: rotate(45deg);
    transition: transform 0.2s;
  }

  .mega-menu__col.is-expanded .mega-menu__mobile-arrow::after {
    transform: rotate(-135deg);
    top: 6px;
  }

  /* 서브 링크 숨김/표시 */
  .mega-menu__col > .mega-menu__2depth,
  .mega-menu__col > .mega-menu__group {
    display: none;
  }

  .mega-menu__col.is-expanded > .mega-menu__2depth,
  .mega-menu__col.is-expanded > .mega-menu__group {
    display: flex;
  }

  .mega-menu__col.is-expanded {
    padding-bottom: 10px;
  }

  /* 서브메뉴 컨테이너 */
  .mega-menu__col > .mega-menu__2depth,
  .mega-menu__col > .mega-menu__group {
    margin-left: 36px;
    margin-right: 26px;
    width: auto;
  }

  /* 2depth 링크 */
  .mega-menu__2depth {
    height: 36px;
    padding: 0 10px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    border-radius: 8px;
  }

  .mega-menu__2depth:hover {
    background: var(--color-card-gray);
  }

  /* 3depth 링크 */
  .mega-menu__3depth {
    height: 28px;
    padding: 0 10px;
    font-size: 14px;
    line-height: 22px;
    border-radius: 8px;
    color: var(--color-text1);
  }

  .mega-menu__3depth:hover {
    background: var(--color-card-gray);
  }

  .mega-menu__group {
    padding: 0;
    gap: 0;
  }

  .mega-menu__3depth-list {
    gap: 0;
  }


  /* ----- 6. Hero Section ----- */
  .br-mo {
    display: block;
  }

  .hero {
    padding-top: 32px;
    text-align: center;
  }

  .hero__subtitle {
    font-size: 24px;
    line-height: 34px;
  }

  .hero__title {
    font-size: 34px;
    line-height: 50px;
    margin-bottom: 24px;
  }

  .hero__desc {
    font-size: 21px;
    line-height: 30px;
  }


  /* ----- 7. Search Area ----- */
  .search-area {
    margin-top: 24px;
  }

  .search-area .inner {
    width: 100%;
    padding: 0 16px;
  }

  .search-area__bar-wrap {
    position: relative;
  }

  .search-area__bar-bg {
    height: auto;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .search-area__label {
    position: static;
    transform: none;
    gap: 8px;
    margin-bottom: 8px;
  }

  .search-area__label-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .search-area__label-text {
    font-size: 24px;
    line-height: 34px;
  }

  .search-area__label-prefix {
    display: none;
  }

  .search-area__input-wrap {
    position: static;
    transform: none;
    width: 100%;
    height: auto;
    flex-direction: column;
    background: transparent;
    padding: 0;
    border-radius: 0;
    gap: 8px;
  }

  .search-area__select-wrap {
    border-right: none;
    padding-right: 0;
    background: var(--color-white);
    border-radius: 999px;
    height: 48px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    width: 100%;
  }

  .search-area__select {
    width: 100%;
    justify-content: space-between;
  }

  .search-area__select-list {
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
  }

  .search-area__input {
    flex: none;
    background: var(--color-white);
    border-radius: 999px;
    height: 48px;
    padding: 0 30px;
    width: 100%;
    font-size: 16px;
    line-height: 24px;
  }

  .search-area__search-btn {
    width: 100%;
    height: 48px;
    border-radius: 999px;
    background: #009060;
    margin-top: 8px;
  }

  .search-area__search-btn img {
    display: none;
  }

  .search-area__search-btn::after {
    content: '검색';
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    color: var(--color-white);
  }

  .search-area__qr {
    display: none;
  }


  /* ----- 8. Icon Menu ----- */
  .icon-menu {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  .icon-menu .inner {
    padding: 2px 16px 0 16px;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: space-around;
  }

  .icon-menu .inner::-webkit-scrollbar { display: none; }
  .icon-menu .inner { scrollbar-width: none; }

  .icon-menu__item {
    gap: 8px;
    flex-shrink: 0;
  }

  .icon-menu__icon {
    width: 72px;
    height: 72px;
  }

  .icon-menu__icon img {
    width: 36px;
    height: 36px;
  }

  .icon-menu__text {
    font-size: 16px;
    line-height: 24px;
  }


  /* ----- 9. Card Section ----- */
  .card-section {
    padding: 0 0 48px;
  }

  .card-section .inner {
    flex-direction: column;
    gap: 24px;
    padding: 0;
  }

  .card-section__title {
    width: 100%;
    font-size: 28px;
    line-height: 38px;
    padding-left: 16px;
  }

  .card-section__list {
    flex: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
    padding: 0 16px 0 16px;
    scrollbar-width: none;
  }

  .card-section__list::-webkit-scrollbar { display: none; }

  .card-section__card {
    min-width: 220px;
    height: 292px;
    flex: 1;
  }

  .card-section__card-bg {
    bottom: 16px;
  }

  .card-section__card-content {
    padding: 28px;
  }

  .card-section__card-name {
    font-size: 22px;
    line-height: 32px;
    margin-bottom: 8px;
  }

  .card-section__card-desc {
    font-size: 16px;
    line-height: 24px;
  }

  .card-section__card-mascot {
    top: 185px;
    width: 116px;
    height: 108px;
  }

  .card-section__card-more {
    top: 192px;
    left: 28px;
    width: 36px;
    height: 36px;
  }

  .card-section__card-more::before {
    width: 14px;
  }

  .card-section__card-more::after {
    height: 14px;
  }


  /* ----- 10. Contract Section ----- */
  .contract-section {
    padding: 40px 0 60px;
  }

  .contract-section .inner {
    position: relative;
    padding: 0;
  }

  .contract-section__title {
    font-size: 28px;
    line-height: 38px;
    margin-bottom: 24px;
    padding-left: 16px;
  }

  .contract-section__more {
    position: absolute;
    top: 10px;
    right: 16px;
    margin-left: 0;
    font-size: 14px;
    line-height: 20px;
  }

  .contract-section__more-icon {
    width: 16px;
    height: 16px;
  }

  .contract-section__nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 28px;
    flex-wrap: nowrap;
    padding: 0 16px 0 16px;
    scrollbar-width: none;
  }

  .contract-section__nav::-webkit-scrollbar { display: none; }

  .contract-section__tabs {
    gap: 8px;
    flex-shrink: 0;
  }

  .contract-section__tab {
    padding: 10px 20px;
    font-size: 16px;
    line-height: 24px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .contract-section__list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 0 16px 0 16px;
    scrollbar-width: none;
  }

  .contract-section__list::-webkit-scrollbar { display: none; }

  .contract-card {
    min-width: 323px;
    flex: 1;
  }

  .contract-card__header {
    padding: 30px 30px 20px;
    gap: 8px;
  }

  .contract-card__badge {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .contract-card__title {
    font-size: 19px;
    line-height: 28px;
    max-height: 56px;
  }

  .contract-card__body {
    padding: 20px 30px 30px 20px;
  }

  .contract-card__info-item {
    font-size: 16px;
    line-height: 24px;
  }

  .notice-card {
    width: 323px;
    height: auto;
    flex-shrink: 0;
  }

  .notice-card__header {
    padding: 30px 30px 20px;
  }

  .notice-card__title {
    font-size: 19px;
    line-height: 28px;
  }

  .notice-card__body {
    padding: 20px 30px 30px;
  }

  .notice-card__desc {
    font-size: 16px;
    line-height: 24px;
  }


  /* ----- 11. Footer Links ----- */
  .footer-links {
    height: auto;
  }

  .footer-links .inner {
    flex-direction: column;
    width: 100%;
    padding: 0;
  }

  .footer-links__item {
    flex: none;
    height: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .footer-links__item::before {
    display: none;
  }

  .footer-links__item:last-child::after {
    display: none;
  }

  .footer-links__btn {
    height: 48px;
    padding: 0 16px;
  }

  .footer-links__list {
    position: static;
    transform: none;
    width: 100%;
    max-height: 320px;
    border-radius: 0;
    border: none;
    left: auto;
    padding: 10px 16px 16px;
    background: var(--color-white);
  }

  .footer-links__list li {
    border-bottom: 1px solid var(--color-line);
  }

  .footer-links__list li:last-child {
    border-bottom: none;
  }

  .footer-links__list::-webkit-scrollbar {
    width: 8px;
  }

  .footer-links__list::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
  }


  /* ----- 12. Footer / Copyright ----- */
  .footer {
    padding: 40px 16px;
  }

  .footer .inner {
    width: 100%;
    padding: 0;
    gap: 16px;
  }

  .footer__logo {
    height: 36px;
  }

  .footer__info {
    font-size: 14px;
    line-height: 22px;
  }

  .footer__copyright {
    font-size: 14px;
    line-height: 22px;
  }


  /* ===================================================
     SUB PAGE - 서브페이지 공통 반응형
     =================================================== */

  /* ----- 13. Sub Banner ----- */
  .sub-banner {
    height: 66px;
    min-height: 66px;
    overflow: hidden;
  }

  .sub-banner__inner {
    padding: 0 16px;
    height: 66px;
    min-height: 66px;
  }

  .sub-banner__title {
    font-size: 24px;
    line-height: 34px;
    padding-top: 16px;
  }

  .sub-banner__breadcrumb {
    display: none;
  }

  .sub-banner__deco {
    background-size: contain;
  }

  .sub-banner__deco--circle1 {
    width: 120px;
    height: 54px;
    left: -50px;
    top: 0px;
        
  }

  .sub-banner__deco--circle2 {
    width: 103px;
    height: 103px;
    left: 43px;
    top: 44px;
    
  }

  .sub-banner__deco--stripe1 {
    width: 200px;
    height: 100px;
    right: -100px;
    top: 2px;
    transform: rotate(9deg);
  }

  .sub-banner__deco--stripe2 {
    width: 60px;
    height: 60px;
    left: 50px;
    top: -40px;
  }


  /* ----- 14. Sub Sidebar ----- */
  .sub-sidebar {
    display: none;
  }


  /* ----- 15. Sub Content Layout ----- */
  .sub-content {
    flex-direction: column;
    padding: 0 16px 40px;
    gap: 0;
    max-width: 100%;
    min-height: auto;
  }

  .sub-main {
    width: 100%;
    max-width: 720px;
    min-width: 0;
    padding: 0;
    margin: 0 auto;
  }


  /* ----- 16. Search Form ----- */
  .search-form {
    flex-direction: column;
    align-items: stretch;
    border: none;
    border-top: 2px solid var(--color-text);
    border-bottom: none;
    gap: 0;
    margin-top: 24px;
  }

  .search-form__fields {
    width: 100%;
    flex: none;
  }

  .search-form__row {
    flex-direction: column;
    gap: 0;
    border-bottom: none;
  }

  .search-form__group {
    flex-direction: row;
    flex: none;
    width: 100%;
    min-height: 62px;
    height: auto;
    align-items: stretch;
    border-bottom: 1px solid var(--color-line2);
  }

  .search-form__label {
    width: 106px;
    min-width: 106px;
    height: auto !important;
    align-self: stretch !important;
    background: var(--color-gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    padding: 0;
    flex-shrink: 0;
  }

  .search-form__input {
    flex: 1;
    height: 42px;
    margin: 0 0 0 10px;
    align-self: center;
    font-size: 16px;
    min-width: 0;
    border: 1px solid var(--color-line2);
    border-radius: 4px;
    padding: 0 10px;
  }

  .search-form__date-range {
    flex: 1;
    margin: 0 0 0 10px;
    gap: 6px;
    min-width: 0;
    align-self: center;
  }

  .search-form__date {
    flex: 1;
    height: 42px;
    min-width: 0;
    padding: 0 6px;
    gap: 4px;
  }

  .search-form__date .search-form__input {
    margin: 0;
    padding: 0;
    font-size: 13px;
    border: none;
    height: 100%;
    width: 100%;
    flex: 1;
    min-width: 0;
  }

  .search-form__date-text {
    font-size: 14px;
  }

  .search-form__date-sep {
    font-size: 16px;
    flex-shrink: 0;
  }

  .search-form__date-icon-btn {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .search-form__date-icon-btn img {
    width: 20px;
    height: 20px;
  }

  .search-form__btn,
  .search-form__btn--stretch {
    width: 136px;
    height: 42px;
    margin: 20px auto;
    font-size: 16px;
    align-self: center;
    border: none;
  }


  /* ----- 17. List Options ----- */
  .list-options {
    display: flex;
    flex-wrap: wrap;
    row-gap: 12px;
    padding: 16px 0;
  }

  .list-options__left {
    display: contents;
  }

  .list-options__count {
    width: 100%;
  }

  .list-options__page-size {
    display: flex;
  }

  .list-options__right {
    margin-left: auto;
  }

  /* 라디오 버튼 세로 배치 */
  .search-form__radio-group {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    align-items: flex-start;
  }

  /* 계약금액 input */
  .search-form__amount-range {
    flex: 1;
    margin: 0 0 0 10px;
    gap: 6px;
    min-width: 0;
    align-self: center;
  }

  .search-form__amount-range .search-form__input {
    max-width: none;
    margin: 0;
    padding: 0 8px;
    font-size: 14px;
    min-width: 0;
    flex: 1;
  }

  /* 셀렉트 박스 */
  .search-form__select-wrap {
    margin: 0 0 0 10px;
    align-self: center;
  }

  .search-form__select {
    font-size: 14px;
    height: 42px;
  }

  /* data-table-wrap 스크롤 제거 */
  .data-table-wrap {
    overflow-y: visible;
    max-height: none;
  }

  .list-options__btn {
    height: 32px;
    font-size: 16px;
  }

  .list-options__btn--pps {
    padding: 4px 10px;
  }

  .list-options__btn--excel {
    width: 32px;
    height: 32px;
  }


  /* ----- 18. Data Table → Card ----- */
  .data-table {
    display: block;
    border: none;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .data-table tr {
    display: flex;
    flex-wrap: wrap;
    background: var(--color-white);
    border: 1px solid var(--color-line2);
    border-radius: 16px;
    overflow: hidden;
  }

  .data-table tr:hover {
    background: var(--color-white);
  }

  .data-table td {
    display: block;
    width: 100%;
    height: auto;
    text-align: left;
    border: none;
    border-bottom: none;
    padding: 0 20px;
    font-size: 17px;
    line-height: 28px;
  }

  .data-table td.text-center {
    text-align: left;
  }

  .data-table__td--title {
    max-width: none;
    white-space: normal;
  }

  .data-table {
    table-layout: auto;
  }

  /* 번호 */
  .data-table td:nth-child(1) {
    order: 1;
    padding: 20px 20px 0;
    line-height: 22px;
  }

  /* 발주계획/협상계약 전용 라벨 (5컬럼: 번호/제목/작성자/작성일자/첨부) */
  .data-table:not(.data-table--contract):not(.data-table--defect):not(.data-table--form):not(.data-table--payment) td:nth-child(1)::before {
    content: '번호 ';
  }

  .data-table:not(.data-table--contract):not(.data-table--defect):not(.data-table--form):not(.data-table--payment) td:nth-child(2) {
    order: 2;
    padding: 4px 20px 16px;
    font-size: 17px;
    font-weight: 500;
    line-height: 28px;
    border-bottom: 1px solid var(--color-line2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
  }

  .data-table:not(.data-table--contract):not(.data-table--defect):not(.data-table--form):not(.data-table--payment) td:nth-child(3) {
    order: 3;
    padding: 16px 20px 0;
  }

  .data-table:not(.data-table--contract):not(.data-table--defect):not(.data-table--form):not(.data-table--payment) td:nth-child(3)::before {
    content: '작성자 : ';
  }

  .data-table:not(.data-table--contract):not(.data-table--defect):not(.data-table--form):not(.data-table--payment) td:nth-child(4) {
    order: 4;
    padding: 4px 20px;
  }

  .data-table:not(.data-table--contract):not(.data-table--defect):not(.data-table--form):not(.data-table--payment) td:nth-child(4)::before {
    content: '작성일자 : ';
  }

  .data-table:not(.data-table--contract):not(.data-table--defect):not(.data-table--form):not(.data-table--payment) td:nth-child(5) {
    order: 5;
    padding: 0 20px 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .data-table:not(.data-table--contract):not(.data-table--defect):not(.data-table--form):not(.data-table--payment) td:nth-child(5)::before {
    content: '첨부파일 : ';
  }

  .data-table__attach-icon {
    display: none;
  }

  .data-table__attach-name {
    display: inline;
  }



  /* ----- 19. Pagination ----- */
  .pagination {
    gap: 10px;
    padding: 24px 0;
  }

  .pagination__num {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }

  .pagination__btn {
    width: 48px;
    height: 48px;
  }

  .pagination__btn--first,
  .pagination__btn--last {
    display: none;
  }


  /* ----- 20. Bid Page (입찰정보) ----- */
  .bid-service {
    margin-top: 24px;
  }

  .bid-service__title {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 12px;
  }

  .bid-service__desc li {
    font-size: 15px;
    line-height: 24px;
  }

  .bid-category {
    flex-direction: column;
    gap: 16px;
  }

  .bid-category__card {
    width: 100%;
    height: 419px;
    padding: 40px 30px;
    border-radius: 0;
  }

  .bid-category__card:nth-child(1),
  .bid-category__card:nth-child(2) {
    margin-right: 0;
  }

  .bid-category__img {
    width: 160px;
    height: 215px;
    margin: 0 auto 24px;
  }

  .bid-category__name {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 8px;
  }

  .bid-category__text {
    font-size: 16px;
    line-height: 24px;
  }


  /* ----- 21. Contract Table Card (계약현황) ----- */
  .data-table--contract td {
    width: auto;
  }

  .data-table--contract td::before {
    content: none;
  }

  /* 구분 배지 - 상단 좌측 */
  .data-table--contract td:nth-child(2) {
    order: 1;
    width: auto;
    flex-shrink: 0;
    padding: 20px 8px 16px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-line2);
  }

  /* 계약명 - 상단 우측 */
  .data-table--contract td:nth-child(3) {
    order: 2;
    flex: 1;
    min-width: 0;
    padding: 20px 20px 16px 0;
    border-bottom: 1px solid var(--color-line2);
    font-size: 17px;
    font-weight: 500;
    line-height: 28px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-width: none;
    display: flex;
    align-items: center;
  }

  /* 계약관서명 */
  .data-table--contract td:nth-child(1) {
    order: 3;
    width: 100%;
    padding: 16px 20px 4px;
  }
  .data-table--contract td:nth-child(1)::before {
    content: '계약관서명 : ';
  }

  /* 계약금액 */
  .data-table--contract td:nth-child(4) {
    order: 4;
    width: 100%;
    padding: 4px 20px;
  }
  .data-table--contract td:nth-child(4)::before {
    content: '계약금액 : ';
  }

  /* 계약일 */
  .data-table--contract td:nth-child(5) {
    order: 5;
    width: 100%;
    padding: 4px 20px;
  }
  .data-table--contract td:nth-child(5)::before {
    content: '계약일 : ';
  }

  /* 계약대상자 */
  .data-table--contract td:nth-child(6) {
    order: 6;
    width: 100%;
    padding: 4px 20px;
  }
  .data-table--contract td:nth-child(6)::before {
    content: '계약대상자 : ';
  }

  /* 지급알림신청 */
  .data-table--contract td:nth-child(7) {
    order: 7;
    width: 100%;
    padding: 8px 20px 20px;
  }

  .data-table--contract .text-right {
    text-align: left;
  }


  /* ----- 22. Contract Modal (계약목록 팝업) ----- */
  .contract-modal {
    align-items: flex-end;
  }

  .contract-modal__panel {
    width: 100%;
    max-width: 100%;
    height: calc(100% - 60px);
    max-height: calc(100% - 60px);
    border-radius: 16px 16px 0 0;
    margin: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .contract-modal__header {
    padding: 24px 16px 16px;
    flex-shrink: 0;
  }

  .contract-modal__title {
    font-size: 24px;
  }

  .contract-modal__toolbar {
    padding: 0 16px 12px;
    flex-shrink: 0;
  }

  .contract-modal__table-wrap {
    margin: 0 16px 16px;
    padding-right: 5px;
    border: none;
    border-top: 2px solid var(--color-text);
    overflow-y: auto;
    flex: 1;
  }

  .contract-modal__table-wrap::-webkit-scrollbar {
    width: 4px;
  }

  .contract-modal__table-wrap::-webkit-scrollbar-track {
    background: transparent;
  }

  .contract-modal__table-wrap::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 4px;
  }

  .contract-modal__table {
    display: block;
  }

  .contract-modal__table thead {
    display: none;
  }

  .contract-modal__table tbody {
    display: flex;
    flex-direction: column;
  }

  .contract-modal__table tr {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-line);
  }

  .contract-modal__table tr:hover {
    background: none;
  }

  .contract-modal__table td {
    display: block;
    height: auto;
    padding: 2px 0;
    border: none;
    text-align: left;
    font-size: 15px;
    line-height: 24px;
  }

  .contract-modal__table td.text-left {
    text-align: left;
  }

  .contract-modal__table td.text-right {
    text-align: left;
  }

  /* 번호 */
  .contract-modal__table td:nth-child(1) {
    font-weight: 700;
    font-size: 16px;
    padding-bottom: 4px;
  }
  .contract-modal__table td:nth-child(1)::before {
    content: '번호 ';
  }

  /* 계약부서 */
  .contract-modal__table td:nth-child(2)::before {
    content: '계약부서 : ';
  }

  /* 계약대상자 */
  .contract-modal__table td:nth-child(3)::before {
    content: '계약대상자 : ';
  }

  /* 계약명 */
  .contract-modal__table td:nth-child(4)::before {
    content: '계약명 : ';
  }

  /* 계약종류 */
  .contract-modal__table td:nth-child(5)::before {
    content: '계약종류 : ';
  }

  /* 계약일자 */
  .contract-modal__table td:nth-child(6)::before {
    content: '계약일자 : ';
  }

  /* 최초계약금액 */
  .contract-modal__table td:nth-child(7)::before {
    content: '최초계약금액 : ';
  }

  /* 계약방법 */
  .contract-modal__table td:nth-child(8)::before {
    content: '계약방법 : ';
  }


  /* ----- 23. Defect Table Card (하자검사내역) ----- */
  /* 5컬럼: 번호/기관명/제목/검사결과/검사일자 */
  .data-table--defect td::before {
    content: none;
  }

  /* 번호 */
  .data-table--defect td:nth-child(1) {
    order: 1;
    padding: 20px 20px 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
  }
  .data-table--defect td:nth-child(1)::before {
    content: '번호 ';
  }

  /* 제목 */
  .data-table--defect td:nth-child(3) {
    order: 2;
    padding: 4px 20px 16px;
    font-size: 17px;
    font-weight: 500;
    line-height: 28px;
    border-bottom: 1px solid var(--color-line2);
    max-width: none;
    white-space: normal;
  }

  /* 기관명 */
  .data-table--defect td:nth-child(2) {
    order: 3;
    padding: 10px 20px 10px 20px;
  }
  .data-table--defect td:nth-child(2)::before {
    content: '기관명 : ';
  }

  /* 검사결과 */
  .data-table--defect td:nth-child(4) {
    order: 4;
    padding: 10px 0px 0px 20px;
  }
  .data-table--defect td:nth-child(4)::before {
    content: '검사결과 : ';
  }

  /* 검사일자 */
  .data-table--defect td:nth-child(5) {
    order: 5;
    padding: 4px 20px 15px;
  }
  .data-table--defect td:nth-child(5)::before {
    content: '검사일자 : ';
  }


  /* ----- 24. Detail Page (상세 페이지) ----- */
  .detail-section {
    margin-bottom: 32px;
  }

  .detail-section__title {
    font-size: 20px;
    line-height: 30px;
  }

  /* 계약상세정보 테이블 → 1컬럼(th-td 한 줄) */
  .detail-table {
    display: block;
    table-layout: auto;
  }

  .detail-table colgroup {
    display: none;
  }

  .detail-table tbody {
    display: block;
    border-top: 2px solid var(--color-text);
  }

  .detail-table tr {
    display: flex;
    flex-wrap: wrap;
  }

  .detail-table tr:first-child th,
  .detail-table tr:first-child td {
    border-top: none;
  }

  .detail-table th {
    width: 30%;
    font-size: 15px;
    padding: 14px 16px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--color-line2);
    display: flex;
    align-items: center;
  }

  .detail-table td {
    width: 70%;
    font-size: 15px;
    padding: 14px 16px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--color-line2);
    display: flex;
    align-items: center;
  }

  .detail-table td[colspan="3"] {
    width: 70%;
  }


  /* 하단 버튼 */
  .detail-actions {
    margin-top: 24px;
  }

  .detail-actions__btn-alarm,
  .detail-actions__btn--list {
    font-size: 15px;
    padding: 10px 20px;
  }


  /* ----- 25. Form Table Card (계약서식) ----- */
  /* 4컬럼: 작성자/제목/첨부/작성일자 */
  .data-table--form td::before {
    content: none;
  }

  .data-table--form colgroup {
    display: none;
  }

  /* 제목 - 상단 */
  .data-table--form td:nth-child(2) {
    order: 1;
    padding: 20px 20px 16px;
    font-size: 17px;
    font-weight: 500;
    line-height: 28px;
    border-bottom: 1px solid var(--color-line2);
    max-width: none;
    white-space: normal;
  }

  /* 작성자 */
  .data-table--form td:nth-child(1) {
    order: 2;
    padding: 16px 20px 0;
  }
  .data-table--form td:nth-child(1)::before {
    content: '작성자 : ';
  }

  /* 작성일자 */
  .data-table--form td:nth-child(4) {
    order: 3;
    padding: 4px 20px;
  }
  .data-table--form td:nth-child(4)::before {
    content: '작성일자 : ';
  }

  /* 첨부 - 숨김 (제목에 아이콘 포함) */
  .data-table--form td:nth-child(3) {
    order: 4;
    padding: 4px 20px 20px;
  }
  .data-table--form td:nth-child(3)::before {
    content: '첨부파일 : ';
  }


  /* 계약현황 지급알림신청 버튼 텍스트 변경 */
  .alarm-btn {
    width: auto;
    padding: 0 14px;
    font-size: 0;
    line-height: 0;
  }

  .alarm-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .alarm-btn::after {
    content: '지급알림신청';
    font-size: 14px;
    line-height: 32px;
  }

  /* ----- 26. Site Cards (관련사이트) ----- */
  .site-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 25px;
  }

  .site-card__logo {
    height: 140px;
  }

  .site-card__info {
    padding: 14px 14px 14px 16px;
  }

  .site-card__name {
    font-size: 16px;
    line-height: 24px;
  }

  .site-card__url {
    font-size: 13px;
    line-height: 20px;
  }

} /* end @media (max-width: 768px) */
