/* ============================================
   신청기관 확인 - 반응형 CSS
   PC / Tablet / Mobile 완벽 대응
   ============================================ */

/* --- 기본 리셋 & 컨테이너 --- */
.sub0101 {
    width: 100%;
    box-sizing: border-box;
}

.sub0101 *,
.sub0101 *::before,
.sub0101 *::after {
    box-sizing: border-box;
}

.app-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 섹션 헤더 --- */
.app-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 2px solid #333;
    margin-bottom: 0;
}

.app-section-header img {
    flex-shrink: 0;
}

/* --- 테이블 래퍼 --- */
.app-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- 테이블 (PC 기본) --- */
.app-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 0;
}

.app-table thead th {
    background-color: #f8f9fa;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #ddd;
    white-space: nowrap;
}

.app-table tbody td {
    font-size: 14px;
    color: #444;
    padding: 12px 8px;
    text-align: center;
    border: 1px solid #ddd;
    vertical-align: middle;
    word-break: keep-all;
}

/* 컬럼 너비 (PC) */
.col-no      { width: 6%; }
.col-org     { width: 16%; }
.col-title   { width: 22%; text-align: left !important; }
.col-period  { width: 20%; }
.col-status  { width: 8%; }
.col-detail  { width: 10%; }
.col-apply   { width: 10%; }
.col-doc     { width: 8%; }

/* 제목 셀 좌측 정렬 */
.app-table tbody td.col-title {
    text-align: left;
}

/* 인턴기간 줄바꿈 */
.period-weeks {
    display: inline;
    color: #888;
    font-size: 13px;
}

/* --- 상태 뱃지 --- */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.badge-default {
    background-color: #e9ecef;
    color: #495057;
}

.badge-approved {
    background-color: #2e5c9b;
    color: #1d4ed8;
}

.badge-complete {
    background-color: #FF9800;
    color: #FF5722;
}

.badge-cancel {
    background-color: #f3f4f6;
    color: #9ca3af;
    text-decoration: line-through;
}

.badge-giveup {
    background-color: #fef3c7;
    color: #b45309;
}

.badge-reject {
    background-color: #fee2e2;
    color: #dc2626;
    text-decoration: none;
    cursor: pointer;
}

/* --- 미승인 툴팁 --- */
.reject-tooltip-wrap {
    position: relative;
    display: inline-block;
}

.reject-tooltip {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 8px;
    min-width: 240px;
    max-width: 320px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #6699ff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-size: 13px;
    color: #333;
    text-align: left;
    z-index: 100;
    word-break: keep-all;
}

/* --- 버튼 & 링크 --- */
.btn-link {
    display: inline-block;
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 0;
    transition: color 0.2s;
}

.btn-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.btn-go {
    display: inline-block;
    background-color: #2563eb;
    color: #fff !important;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background-color 0.2s;
}

.btn-go:hover {
    background-color: #1d4ed8;
}

.btn-action {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid;
}

.btn-cancel-app {
    color: #dc2626;
    border-color: #dc2626;
    background-color: #fff;
}

.btn-cancel-app:hover {
    background-color: #dc2626;
    color: #fff;
}

.btn-giveup-app {
    color: #b45309;
    border-color: #b45309;
    background-color: #fff;
}

.btn-giveup-app:hover {
    background-color: #b45309;
    color: #fff;
}

/* --- 안내문구 --- */
.app-notice {
    margin-top: 20px;
    padding: 14px 18px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    text-align: center;
    line-height: 1.7;
    word-break: keep-all;
}

/* --- 하단 버튼 영역 --- */
.app-btn-area {
    margin-top: 24px;
    margin-bottom: 40px;
    text-align: center;
}

.btn-other-org {
    display: inline-block;
    padding: 12px 32px;
    background-color: #fff;
    color: #333;
    border: 1px solid #999;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-other-org:hover {
    background-color: #333;
    color: #fff;
    border-color: #333;
}


/* ============================================
   태블릿 (768px ~ 1024px)
   ============================================ */
@media screen and (max-width: 1024px) {
    .app-content {
        padding: 0 16px;
    }

    .app-table {
        min-width: 760px;
    }

    .app-table thead th,
    .app-table tbody td {
        font-size: 13px;
        padding: 10px 6px;
    }

    .col-no      { width: 5%; }
    .col-org     { width: 15%; }
    .col-title   { width: 22%; }
    .col-period  { width: 18%; }
    .col-status  { width: 8%; }
    .col-detail  { width: 12%; }
    .col-apply   { width: 12%; }
    .col-doc     { width: 8%; }
}


/* ============================================
   모바일 (767px 이하) - 카드형 레이아웃
   ============================================ */
@media screen and (max-width: 767px) {
    .app-content {
        padding: 0 12px;
    }

    .app-section-header {
        font-size: 15px;
        padding: 14px 0;
    }

    /* 테이블 → 카드 변환 */
    .app-table-wrap {
        overflow-x: visible;
    }

    .app-table {
        min-width: 0;
    }

    .app-table thead {
        display: none;
    }

    .app-table tbody {
        display: block;
    }

    .app-table tbody tr.app-row {
        display: block;
        background: #fff;
        border: 1px solid #e2e5e9;
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 16px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    }

    .app-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        border: none;
        padding: 6px 0;
        font-size: 14px;
    }

    .app-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #666;
        font-size: 13px;
        text-align: left;
        flex-shrink: 0;
        margin-right: 12px;
    }

    /* 번호 숨기기 (모바일에서 불필요) */
    .app-table tbody td.col-no {
        display: none;
    }

    /* 제목 전체폭 */
    .app-table tbody td.col-title {
        text-align: right;
    }

    /* 인턴기간 */
    .app-table tbody td.col-period {
        font-size: 13px;
    }

    /* 상태 행 */
    .app-table tbody td.col-status {
        padding-top: 10px;
        border-top: 1px solid #f0f0f0;
        margin-top: 4px;
    }

    /* 하단 액션 버튼 그룹 */
    .app-table tbody td.col-detail,
    .app-table tbody td.col-apply,
    .app-table tbody td.col-doc {
        display: inline-flex;
        padding: 4px 0;
    }

    /* 칼럼 너비 리셋 */
    .col-no, .col-org, .col-title, .col-period,
    .col-status, .col-detail, .col-apply, .col-doc {
        width: auto;
    }

    /* 안내문구 */
    .app-notice {
        font-size: 13px;
        padding: 12px 14px;
    }

    /* 하단 버튼 */
    .btn-other-org {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 15px;
    }

    /* 미승인 툴팁 모바일 조정 */
    .reject-tooltip {
        left: auto;
        right: 0;
        transform: none;
        min-width: 200px;
        max-width: calc(100vw - 60px);
    }
}


/* ============================================
   소형 모바일 (374px 이하)
   ============================================ */
@media screen and (max-width: 374px) {
    .app-content {
        padding: 0 8px;
    }

    .app-table tbody td {
        font-size: 13px;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .app-table tbody td::before {
        margin-right: 0;
        margin-bottom: 2px;
        font-size: 12px;
    }

    .app-section-header {
        font-size: 14px;
    }

    .badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    .btn-action {
        font-size: 11px;
        padding: 4px 10px;
    }
}


/* ============================================
   행 호버 효과 (PC/태블릿)
   ============================================ */
@media screen and (min-width: 768px) {
    .app-table tbody tr:hover {
        background-color: #f8fafc;
        transition: background-color 0.15s;
    }

    .app-table tbody tr:nth-child(even) {
        background-color: #fafbfc;
    }

    .app-table tbody tr:nth-child(even):hover {
        background-color: #f0f4f8;
    }
}


/* ============================================
   출결관리 페이지 추가 CSS
   list_app_responsive.css 에 추가하거나 별도 로드
   ============================================ */

/* --- 컨테이너 --- */
.att-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* --- 섹션 헤더 (app-section-header와 동일) --- */
.att-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 2px solid #333;
    margin-bottom: 0;
}

.att-section-header img {
    flex-shrink: 0;
}

/* --- 주차 표시 --- */
.att-weeks {
    color: #888;
    font-size: 13px;
}


/* ============================================
   나의 매칭 정보 (info grid)
   ============================================ */
.att-info-wrap {
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.att-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    padding: 0;
}

.att-info-item {
    display: flex;
    border-bottom: 1px solid #eee;
}

.att-info-item:last-child,
.att-info-item:nth-last-child(2):nth-child(odd) {
    border-bottom: none;
}

.att-info-item dt {
    flex-shrink: 0;
    width: 120px;
    padding: 12px 16px;
    background-color: #f8f9fa;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    border-right: 1px solid #eee;
}

.att-info-item dd {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    word-break: keep-all;
}


/* ============================================
   달력 월 네비게이션
   ============================================ */
.cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 20px 0;
}

.cal-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.cal-nav-btn:hover {
    background-color: #f0f0f0;
}

.cal-nav-btn img {
    display: block;
    height: 30px;
    width: auto;
}

.cal-nav-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    min-width: 160px;
    text-align: center;
}


/* ============================================
   달력 테이블 (PC 기본)
   ============================================ */
.cal-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cal-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 0;
}

.cal-table thead th {
    background-color: #f8f9fa;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 4px;
    text-align: center;
    border: 1px solid #ddd;
}

.cal-table thead th.sun {
    color: #dc2626;
}

.cal-table thead th.sat {
    color: #2563eb;
}

/* --- 달력 셀 --- */
.cal-cell {
    border: 1px solid #ddd;
    vertical-align: top;
    padding: 0;
    height: 120px;
}

.cal-cell.cal-empty {
    background-color: #fafafa;
}

.cal-cell.cal-intern {
    background-color: #f8f9fb;
}

/* 날짜 숫자 */
.cal-day-num {
    padding: 6px 8px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-align: left;
}

.cal-cell.sun .cal-day-num {
    color: #dc2626;
}

.cal-cell.sat .cal-day-num {
    color: #2563eb;
}

/* 셀 본문 */
.cal-day-body {
    padding: 4px 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cal-attend {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-report {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 달력 내 버튼 --- */
.cal-btn {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    line-height: 1.4;
}

.cal-btn-attend {
    background-color: #f97316;
    color: #fff;
}

.cal-btn-attend:hover {
    background-color: #ea580c;
}

.cal-btn-view {
    background-color: #fff;
    color: #555;
    border: 1px solid #bbb;
}

.cal-btn-view:hover {
    background-color: #f3f4f6;
    border-color: #888;
}

.cal-btn-write {
    background-color: #2563eb;
    color: #fff;
}

.cal-btn-write:hover {
    background-color: #1d4ed8;
}


/* ============================================
   태블릿 (768px ~ 1024px)
   ============================================ */
@media screen and (max-width: 1024px) {
    .att-content {
        padding: 0 16px 40px;
    }

    .cal-table {
        min-width: 700px;
    }

    .cal-cell {
        height: 110px;
    }

    .cal-btn {
        font-size: 11px;
        padding: 4px 8px;
    }

    .att-info-item dt {
        width: 110px;
        font-size: 13px;
        padding: 10px 12px;
    }

    .att-info-item dd {
        font-size: 13px;
        padding: 10px 12px;
    }
}


/* ============================================
   모바일 (767px 이하)
   ============================================ */
@media screen and (max-width: 767px) {
    .att-content {
        padding: 0 12px 30px;
    }

    .att-section-header {
        font-size: 15px;
        padding: 14px 0;
    }

    /* --- 매칭 정보: 1열 --- */
    .att-info-grid {
        grid-template-columns: 1fr;
    }

    .att-info-item {
        border-bottom: 1px solid #eee;
    }

    .att-info-item:last-child {
        border-bottom: none;
    }

    .att-info-item dt {
        width: 100px;
        font-size: 13px;
        padding: 10px 12px;
    }

    .att-info-item dd {
        font-size: 13px;
        padding: 10px 12px;
    }

    /* --- 달력 네비게이션 --- */
    .cal-nav {
        gap: 16px;
        padding: 16px 0;
    }

    .cal-nav-title {
        font-size: 18px;
        min-width: 140px;
    }

    .cal-nav-btn img {
        height: 24px;
    }

    /* --- 달력: 가로 스크롤 --- */
    .cal-wrap {
        overflow-x: auto;
    }

    .cal-table {
        min-width: 500px;
    }

    .cal-cell {
        height: 90px;
    }

    .cal-day-num {
        font-size: 13px;
        padding: 4px 6px;
    }

    .cal-day-body {
        padding: 2px 3px 6px;
    }

    .cal-btn {
        font-size: 10px;
        padding: 3px 6px;
    }

    .cal-attend .badge {
        font-size: 10px;
        padding: 2px 6px;
    }
}


/* ============================================
   소형 모바일 (374px 이하)
   ============================================ */
@media screen and (max-width: 374px) {
    .att-content {
        padding: 0 8px 24px;
    }

    .att-info-item {
        flex-direction: column;
    }

    .att-info-item dt {
        width: 100%;
        border-right: none;
        border-bottom: none;
        padding: 8px 10px 4px;
        font-size: 12px;
        color: #888;
    }

    .att-info-item dd {
        padding: 0 10px 8px;
        font-size: 14px;
        font-weight: 500;
    }

    .cal-nav-title {
        font-size: 16px;
        min-width: 120px;
    }

    .cal-table {
        min-width: 460px;
    }

    .cal-cell {
        height: 80px;
    }

    .cal-day-num {
        font-size: 12px;
    }

    .cal-btn {
        font-size: 9px;
        padding: 2px 4px;
    }
}


/* ============================================
   셀 호버 (PC/태블릿)
   ============================================ */
@media screen and (min-width: 768px) {
    .cal-cell:not(.cal-empty):hover {
        background-color: #f0f4f8;
        transition: background-color 0.15s;
    }

    .cal-cell.cal-intern:hover {
        background-color: #eef2f7;
    }
}
/* ============================================
   인턴매칭신청 목록 페이지 추가 CSS
   list_app_responsive.css 하단에 추가
   ============================================ */

/* --- 컨테이너 --- */
.intern-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* --- 검색 영역 --- */
.intern-search-wrap {
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.intern-search-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.intern-search-dates {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.intern-search-sep {
    color: #888;
    font-size: 14px;
}

.intern-search-keyword {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.intern-search-label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    flex-shrink: 0;
}

.intern-input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    outline: none;
    transition: border-color 0.2s;
    width: 130px;
}

.intern-input:focus {
    border-color: #2563eb;
}

.intern-input-wide {
    flex: 1;
    width: auto;
    min-width: 120px;
}

.intern-search-btn {
    padding: 8px 20px;
    background-color: #555;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.intern-search-btn:hover {
    background-color: #333;
}

/* --- 통계 요약 --- */
.intern-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    margin-top: 16px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.intern-summary-item {
    white-space: nowrap;
}

.intern-summary-num {
    color: #dc2626;
    font-weight: 700;
}

/* --- 목록 테이블 추가 컬럼 --- */
.col-inwon {
    width: 16%;
    text-align: center;
}

.col-action {
    width: 12%;
    text-align: center;
}

.intern-inwon-current {
    color: #dc2626;
    font-weight: 700;
}

/* --- 신청 버튼 --- */
.btn-apply-intern {
    color: #fff !important;
    background-color: #2563eb;
    border-color: #2563eb;
    text-decoration: none !important;
}

.btn-apply-intern:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.btn-closed-intern {
    color: #999 !important;
    background-color: #f3f4f6;
    border-color: #ddd;
    cursor: not-allowed;
    text-decoration: none !important;
}

/* --- 페이징 --- */
.intern-paging {
    margin-top: 30px;
    padding: 16px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

.intern-paging .pg_page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.intern-paging .pg_page:hover {
    background-color: #f0f4f8;
    border-color: #bbb;
    color: #333;
}

.intern-paging .pg_current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid #2563eb;
    border-radius: 4px;
    background-color: #2563eb;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.intern-paging .pg_start,
.intern-paging .pg_prev,
.intern-paging .pg_next,
.intern-paging .pg_end {
    font-size: 12px;
    color: #888;
}


/* ============================================
   태블릿 (768px ~ 1024px)
   ============================================ */
@media screen and (max-width: 1024px) {
    .intern-content {
        padding: 0 16px 40px;
    }

    .intern-search-row {
        gap: 8px;
    }

    .intern-input {
        width: 110px;
        font-size: 13px;
        padding: 7px 10px;
    }
}


/* ============================================
   모바일 (767px 이하)
   ============================================ */
@media screen and (max-width: 767px) {
    .intern-content {
        padding: 0 12px 30px;
    }

    /* 검색: 세로 배치 */
    .intern-search-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .intern-search-dates {
        width: 100%;
    }

    .intern-search-dates .intern-input {
        flex: 1;
        width: auto;
        width: 50%;
    }

    .intern-search-keyword {
        width: 100%;
    }

    .intern-search-btn {
        width: 100%;
        padding: 10px;
    }

    /* 통계 요약: 세로 */
    .intern-summary {
        flex-direction: column;
        gap: 6px;
        font-size: 13px;
        padding: 10px 14px;
    }

    /* 테이블 → 카드 */
    .app-table tbody td.col-inwon,
    .app-table tbody td.col-action {
        display: flex;
        width: auto;
    }

    /* 페이징 */
    .intern-paging {
        gap: 3px;
    }

    .intern-paging .pg_page,
    .intern-paging .pg_current {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
        padding: 0 6px;
    }
}


/* ============================================
   소형 모바일 (374px 이하)
   ============================================ */
@media screen and (max-width: 374px) {
    .intern-content {
        padding: 0 8px 24px;
    }

    .intern-input {
        font-size: 12px;
        padding: 6px 8px;
    }

    .intern-search-label {
        font-size: 13px;
    }

    .intern-summary {
        font-size: 12px;
    }

    .intern-paging .pg_page,
    .intern-paging .pg_current {
        min-width: 26px;
        height: 26px;
        font-size: 11px;
    }
}


/* ============================================
   매칭관리 (기관용) 페이지 추가 CSS
   list_app_responsive.css 하단에 추가
   ============================================ */

/* --- 컨테이너 --- */
.org-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* --- 헤더 + 버튼 행 --- */
.org-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
}

/* --- 매칭등록 버튼 --- */
.btn-register {
    color: #fff !important;
    background-color: #2563eb;
    border-color: #2563eb;
    padding: 8px 20px;
    font-size: 14px;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-register:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

/* --- 매칭제목 컬럼 --- */
.col-mtitle {
    width: 30%;
    text-align: left !important;
}

.app-table tbody td.col-mtitle {
    text-align: left;
}

.org-title-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.org-title-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* --- 추가 컬럼 너비 --- */
.col-wdate   { width: 10%; }
.col-appnum  { width: 10%; }
.col-state   { width: 10%; }
.col-edit    { width: 8%; }

/* --- 수정 버튼 --- */
.btn-edit-active {
    color: #2563eb !important;
    border-color: #2563eb;
    background-color: #fff;
    text-decoration: none !important;
    font-size: 12px;
    padding: 4px 12px;
}

.btn-edit-active:hover {
    background-color: #2563eb;
    color: #fff !important;
}

.btn-edit-disabled {
    color: #999 !important;
    border-color: #ddd;
    background-color: #f9fafb;
    cursor: not-allowed;
    text-decoration: none !important;
    font-size: 12px;
    padding: 4px 12px;
}


/* ============================================
   태블릿 (768px ~ 1024px)
   ============================================ */
@media screen and (max-width: 1024px) {
    .org-content {
        padding: 0 16px 40px;
    }

    .org-header-row {
        flex-wrap: wrap;
    }
}


/* ============================================
   모바일 (767px 이하)
   ============================================ */
@media screen and (max-width: 767px) {
    .org-content {
        padding: 0 12px 30px;
    }

    /* 헤더: 세로 배치 */
    .org-header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .btn-register {
        text-align: center;
        padding: 12px;
        font-size: 15px;
    }

    /* 카드형 변환 시 추가 컬럼 처리 */
    .app-table tbody td.col-mtitle,
    .app-table tbody td.col-wdate,
    .app-table tbody td.col-appnum,
    .app-table tbody td.col-state,
    .app-table tbody td.col-edit {
        display: flex;
        width: auto;
    }

    .app-table tbody td.col-mtitle {
        text-align: right;
        font-weight: 600;
        font-size: 15px;
        padding-bottom: 8px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* 컬럼 너비 리셋 */
    .col-mtitle, .col-wdate, .col-appnum, .col-state, .col-edit {
        width: auto;
    }
}


/* ============================================
   소형 모바일 (374px 이하)
   ============================================ */
@media screen and (max-width: 374px) {
    .org-content {
        padding: 0 8px 24px;
    }

    .btn-register {
        font-size: 14px;
        padding: 10px;
    }

    .btn-edit-active,
    .btn-edit-disabled {
        font-size: 11px;
        padding: 3px 8px;
    }
}
