/* 모바일 친화적인 연차 신청 내역 카드 */

/* 데스크톱에서는 기존 헤더 숨김 */
.mobile-friendly-table thead.desktop-only {
    display: none;
}

/* 모바일 카드 레이아웃 */
.mobile-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    padding: 16px !important;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    transition: background 0.2s;
}

.mobile-card:hover {
    background: #f9fafb;
}

/* 취소 버튼 영역 (왼쪽) */
.mobile-cancel-cell {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border: none !important;
}

.mobile-cancel-cell::before {
    display: none !important;
}

.mobile-cancel-btn-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* 정보 영역 (오른쪽) */
.mobile-info-cell {
    display: block !important;
    padding: 0 !important;
    border: none !important;
}

.mobile-info-cell::before {
    display: none !important;
}

/* 연차 정보 카드 */
.leave-request-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* 카드 헤더 (타입 + 상태) */
.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.leave-type-badge-wrapper .badge {
    font-size: 13px;
    padding: 6px 12px;
    font-weight: 600;
}

.status-badge-wrapper .badge {
    font-size: 12px;
    padding: 5px 10px;
}

/* 날짜 행 */
.card-date-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #374151;
    flex-wrap: wrap;
}

.date-label {
    font-size: 16px;
}

.date-value {
    font-weight: 600;
    flex: 1;
}

.days-badge {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* 사유 행 */
.card-reason-row {
    display: flex;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
}

.reason-label {
    font-weight: 500;
    white-space: nowrap;
}

.reason-value {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 푸터 (신청일) */
.card-footer-row {
    display: flex;
    justify-content: flex-end;
    font-size: 11px;
    color: #9ca3af;
}

/* 취소 버튼 스타일 */
.btn-mobile {
    padding: 10px 16px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 70px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}

.btn-mobile i {
    font-size: 20px;
    margin-bottom: 2px;
}

.btn-cancel.btn-mobile {
    background: #dc2626 !important;
    color: white !important;
    border: none;
    width: 100%;
}

.btn-cancel.btn-mobile:hover {
    background: #b91c1c !important;
}

/* 상태 표시 */
.status-waiting {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #f59e0b;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.status-waiting i {
    font-size: 20px;
}

.status-cancelled {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.status-cancelled i {
    font-size: 20px;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .mobile-card {
        grid-template-columns: 100px 1fr;
        gap: 10px;
        padding: 12px !important;
    }
    
    .btn-mobile {
        min-height: 60px;
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    .btn-mobile i {
        font-size: 18px;
    }
    
    .card-date-row {
        font-size: 13px;
    }
    
    .days-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .mobile-card {
        grid-template-columns: 90px 1fr;
        gap: 8px;
        padding: 10px !important;
    }
    
    .btn-mobile {
        min-height: 55px;
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
    
    .btn-mobile i {
        font-size: 16px;
    }
    
    .leave-type-badge-wrapper .badge {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    .status-badge-wrapper .badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .card-date-row {
        font-size: 12px;
    }
    
    .date-label {
        font-size: 14px;
    }
}

/* 데이터 없을 때 */
.mobile-friendly-table .no-data {
    text-align: center;
    padding: 40px 20px;
    color: #9ca3af;
    font-size: 14px;
}
