/* 마이페이지 프로필 카드 */
.mp-profile {
    display: flex;
    gap: 10px;
    padding: 0 5px;
    margin-bottom: 15px;
}
.mp-profile-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.mp-profile-user {
    flex: 1;
}
.mp-profile-name {
    font-size: 15px;
    color: #2c3e50;
}
.mp-profile-name strong {
    font-size: 17px;
    font-weight: 700;
}
.mp-profile-edit-btn {
    display: inline-block;
    padding: 7px 20px;
    background: #f8b500;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.mp-profile-edit-btn:hover {
    background: #e5a600;
    color: white;
}
.mp-profile-point {
    min-width: 150px;
}
.mp-profile-point-top {
    display: flex;
    align-items: center;
    gap: 6px;
}
.mp-profile-logo {
    height: 22px;
    width: auto;
}
.mp-profile-point-label {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
}
.mp-profile-point-value {
    font-size: 22px;
    font-weight: 800;
    color: #f8b500;
}

/* voucher_exchange 등 기존 페이지 호환 */
.col-6 {
    width: 50%;
    float: left;
    box-sizing: border-box;
    padding: 5px;
}
.row_center{
    display: flex;
    background-color: white;
    text-align: right;
    padding: 22px;
    border-radius: 10px;
}
.hello_name {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}
.my_name strong {
    color: #333;
    font-size: 20px;
}
.btn-e {
    background-color: #333333;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}
#kolab_logo{
    width: 65%;
    display: inline-block;
}
#point_label{
    margin-top: 5px;
    display: inline-block;
    font-size: 1.5em;
}
#order_select{
    display: block;
    width: 100%;
    padding: 10px;
    height: 85px;
}


#search_form{
    background-color: white;
}

#form-title{
    font-size: 1.6em;
    padding-left: 30px;
    padding-top: 30px ;
}


#smb_my_od{
    /*background-color: white;*/
}

.list-group-item{
    margin: 10px 0;
    /*background-color: white;*/
}

#status{
    padding-left: 20px;
    font-weight: bold;
}

/* #profile - voucher_exchange 등 기존 페이지 호환 */
#profile{
    height: 120px;
}

/* 포인트 표시 스타일 */
.my_po {
    color: #f8b500 !important; /* 글씨 색상 설정 */
    font-size: 1.4em;
    font-weight: 900; /* 글씨 굵게 설정 */
    text-align: center; /* 글씨 중앙 정렬 */
}

/* 주문내역/배송조회 버튼 스타일 */
.tap_btn {
    display: block; /* 블록 요소로 설정 */
    background-color: white; /* 배경색 설정 */
    text-align: center; /* 글씨 중앙 정렬 */
    padding: 15px 0; /* 상하 안쪽 여백 설정 */
    margin-bottom: 10px; /* 아래쪽 마진 설정 */
    text-decoration: none; /* 밑줄 제거 */
    border-radius: 5px; /* 테두리 둥글게 설정 */
}

/* 활성화된 버튼 스타일 */
.act_btn {
    background-color: #f8b500; /* 배경색 설정 */
    color: white !important; /* 글씨 색상 설정 */
}

.btn-e-indigo{
    display: inline-block;
    width: 40%;
}

.config{
    text-align: center;
}



.col-3{
    width: 24%;
    display: inline-block;
    text-align: center;
    margin: auto;
}

.col-5{
    width: 45%;
    display: inline-block;
    text-align: left;
    margin: 5px 0;
    height: 40px;
}

.date{
    text-align: center;
    margin: 10px;
    border: 1px solid  rgba(185, 180, 180, 0.59);
    border-radius: 5px;
}

#date_at{
    font-size: 2em;
    font-weight: bold;
    margin: 0 20px;
}

.col-5  input{
    width: 100%;
    height: 100%;
    font-size: 1.5em;
    font-weight: bold;
    padding: 0 10px;
}



.search_btn i {
    font-size: 1.5em;
}

.m_container{
    text-align: center;
}

.date_btn:hover{
    border-color: #f8b500 ;
    color: #ffcc00 ;
    cursor: pointer;
}

.active_date{
    /*border-color: #ffcc00  !important;*/
    color: #f8b500 ;
    font-weight: bold;
    border: 2px solid #f8b500 !important;
}


.date_btn{
    width: 100%;
    /*background: #007bff;*/
    padding: 10px;
    text-align: center;
    border: 1px solid  rgba(185, 180, 180, 0.59);
}

.search_input{
    width: 93%;
    text-align: center;
    padding: 10px;
    border-bottom: 2px solid black;

}


.search_area{
    display: block;
    border-bottom: 1px solid rgba(185, 180, 180, 0.59);
}

.order_status{
    border: 1px solid  rgba(185, 180, 180, 0.59);
    text-align: center;
    padding: 10px;
    width: 93%;
    margin-left: 30px;
}

.submit_btn{
    margin-top: 20px;
    padding: 15px;
    margin-left: 30px;
    width: 93%;
    background-color:  rgba(185, 180, 180, 0.59);
    margin-bottom: 20px;
}

.spacer{
    margin: 20px 0;
}



.col-2 img{
    padding: 10px;
    width: 100%;
    height: 100%;
    display: block;
}


.col-2{
    display: inline-block;
    width: 13%;
    margin-right: 10px;
}

.col-10{
    display: inline-block;
    width: 80%;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

/* Page number and navigation links */
.pagination a {
    text-decoration: none;
    padding: 8px;
    margin: 0 5px;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 3px;
    transition: background-color 0.3s, color 0.3s;
}

/* Current page */
.pagination .current-page {
    background-color: #f8c53d;
    color: #fff;
    padding: 8px;
    margin: 0 5px;
}

/* Previous and Next links */
.pagination a:hover {
    background-color: #f8b500;
    color: #fff;
}

/* Page info text */
.page-info {
    margin: 0 10px;
}

/*이미지 색 조정*/
.wrapper, .basic-layout {
    background-color: #f2f4f6 !important;
}

.basic-body .basic-body-page{
    border: none;
}


@media (max-width: 768px){
    .col-6 {
        width: 100%;
        margin: 0;
    }

    .date .col-5{
        width: 100%;
        display: block;
    }

    .date .col-5 input{
        text-align: center;
    }
    #form-title{
        text-align: center;
    }

    .order_status{
        margin: auto;
        display: block;
        text-align: center;
    }
    .submit_btn{
        margin:20px auto;
        display: block;
    }

    #search_form{
        padding: 20px 0 ;
    }

    .tap_btn{
        border: 1px solid black;
    }

    #smb_my_od{
        margin-top: 250px;
    }

    /* 새 프로필 다음엔 float clear 불필요 */
    .mp-profile + * #smb_my_od,
    .mp-profile ~ #smb_my_od {
        margin-top: 15px;
    }

    .mp-profile {
        flex-direction: column;
    }
    .mp-profile-point {
        flex-direction: row;
        justify-content: space-between;
        padding: 14px 18px;
    }
    .mp-profile-point-value {
        font-size: 18px;
    }

}

/* 상품별 배송 프로그레스 바 */
.delivery-progress-card {
    margin: 0 15px 15px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.delivery-info-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 13px;
}
.delivery-info-label { color: #6c757d; }
.delivery-info-value { color: #212529; font-weight: 600; }
.delivery-progress {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 12px 0 0;
}
.delivery-progress-track {
    position: absolute;
    top: 19px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: #dee2e6;
    border-radius: 2px;
}
.delivery-progress-fill {
    height: 100%;
    border-radius: 2px;
    background: #007bff;
    transition: width 0.3s;
}
.delivery-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    z-index: 1;
}
.delivery-progress-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #dee2e6;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #dee2e6;
    margin-bottom: 6px;
}
.delivery-progress-dot.active {
    background: #007bff;
    box-shadow: 0 0 0 1px #007bff;
}
.delivery-progress-dot.completed {
    background: #28a745;
    box-shadow: 0 0 0 1px #28a745;
}
.delivery-progress-label {
    font-size: 11px; color: #adb5bd; font-weight: 500;
}
.delivery-progress-label.active {
    color: #007bff; font-weight: 700;
}
.delivery-progress-label.completed {
    color: #28a745; font-weight: 700;
}

/* 마이페이지 공통 리스트 */
.mypage-section { padding: 0 15px 20px; }
.mypage-header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; padding:20px 0 15px; }
.mypage-title { font-size:18px; font-weight:700; color:#2c3e50; margin:0; }
.count-badge { background:#f8b500; color:white; font-size:12px; padding:2px 8px; border-radius:10px; margin-left:8px; }
.mypage-search { display:flex; border:1px solid #dee2e6; border-radius:8px; overflow:hidden; }
.mypage-search input[type="text"] { border:none; padding:8px 12px; font-size:13px; outline:none; width:180px; }
.mypage-search button { background:#f8b500; color:white; border:none; padding:8px 16px; font-size:13px; font-weight:600; cursor:pointer; }
.mypage-search button:hover { background:#e5a600; }
.mypage-list { list-style:none; padding:0; margin:0; }
.mypage-list-item { background:white; border-radius:10px; padding:15px; margin-bottom:10px; box-shadow:0 2px 6px rgba(0,0,0,0.06); transition:box-shadow 0.2s; }
.mypage-list-item a { text-decoration:none; color:#2c3e50; }
.mypage-list-item:hover { box-shadow:0 4px 12px rgba(0,0,0,0.1); }
.mypage-item-header { display:flex; align-items:center; gap:12px; }
.mypage-item-image { width:50px; height:50px; border-radius:6px; object-fit:cover; flex-shrink:0; background:#f8f9fa; }
.mypage-item-image img { width:50px; height:50px; border-radius:6px; object-fit:cover; }
.mypage-item-body { flex:1; min-width:0; }
.mypage-item-title { font-size:14px; font-weight:600; color:#2c3e50; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mypage-item-desc { font-size:13px; color:#6c757d; margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mypage-item-meta { font-size:12px; color:#adb5bd; margin-top:6px; }
.mypage-item-badge { display:inline-block; padding:3px 10px; border-radius:12px; font-size:11px; font-weight:600; flex-shrink:0; }
.mypage-item-badge.answered { background:#d4edda; color:#155724; }
.mypage-item-badge.waiting { background:#e9ecef; color:#6c757d; }
.mypage-item-badge.category { background:#e3f2fd; color:#1565c0; }
.mypage-empty { text-align:center; padding:60px 20px; color:#adb5bd; }
.mypage-empty-icon { font-size:48px; display:block; margin-bottom:12px; }
.mypage-empty p { font-size:14px; }
.mypage-pagination { display:flex; justify-content:center; gap:6px; padding:20px 0; flex-wrap:wrap; }
.mypage-pagination a, .mypage-pagination span { display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:36px; border-radius:8px; font-size:13px; text-decoration:none; }
.mypage-pagination a { background:white; color:#6c757d; border:1px solid #dee2e6; }
.mypage-pagination a:hover { background:#f8f9fa; border-color:#adb5bd; }
.mypage-pagination span { background:#f8b500; color:white; font-weight:700; }

/* 포인트 요약 (헤더 우측) */
.mypage-point-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.mypage-point-summary-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 600;
}
.mypage-point-summary-value {
    font-size: 18px;
    font-weight: 800;
    color: #f8b500;
}

/* 포인트 금액 표시 */
.mypage-point-amount {
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    white-space: nowrap;
}
.mypage-point-amount.point-plus { color: #007bff; }
.mypage-point-amount.point-minus { color: #dc3545; }

/* 포인트 리스트 상품 카드 */
.point-product-link { text-decoration: none; color: inherit; display: block; }
.point-product-link .mypage-list-item { cursor: pointer; }
.point-product-link:hover .mypage-list-item { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.point-item-count { font-size: 12px; color: #6c757d; font-weight: 400; margin-left: 4px; }

@media (max-width: 768px) {
    .mypage-header { flex-direction:column; gap:10px; align-items:stretch; }
    .mypage-search { width:100%; }
    .mypage-search input[type="text"] { flex:1; width:auto; }
    .mypage-item-title { font-size:13px; }
    .mypage-item-desc { font-size:12px; }
    .mypage-point-summary { padding: 6px 12px; }
    .mypage-point-summary-value { font-size: 16px; }
}

/* ──────────────────────────────────────────
   마이페이지 — 모던 표 리스트 (quotation 보드 동일 톤)
   ────────────────────────────────────────── */
.kq-table-wrap {
    margin: 16px 0;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(17,24,39,0.04);
}
.kq-post-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #111827;
    table-layout: fixed;
    font-feature-settings: "tnum" 1;
}
.kq-post-table col.col-no     { width: 60px; }
.kq-post-table col.col-status { width: 100px; }
.kq-post-table col.col-cat    { width: 110px; }
.kq-post-table col.col-thumb  { width: 64px; }
.kq-post-table col.col-date   { width: 110px; }
.kq-post-table col.col-action { width: 110px; }

.kq-post-table thead th {
    padding: 14px 12px;
    background: #fafafa;
    color: #6b7280;
    font-size: 11.5px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid #ececec;
}
.kq-post-table tbody td {
    padding: 16px 12px;
    border-bottom: 1px solid #f5f5f5;
    text-align: center;
    vertical-align: middle;
    color: #374151;
}
.kq-post-table tbody tr {
    cursor: pointer;
    transition: background-color .15s ease;
}
.kq-post-table tbody tr:hover { background: #fafafa; }
.kq-post-table tbody tr:last-child td { border-bottom: 0; }

/* 제목 컬럼 */
.kq-post-table .col-title { text-align: left; padding-left: 18px; padding-right: 18px; }
.kq-post-table .col-title .kq-title-link {
    color: #111827;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    transition: color .12s ease;
}
.kq-post-table tbody tr:hover .col-title .kq-title-link { color: #b45309; }
.kq-post-table .kq-title-desc {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
}

/* 번호 */
.kq-post-table .col-no {
    color: #9ca3af;
    font-size: 13px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* 상태 pill */
.kq-post-table .kq-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    background: #fff;
    border: 1px solid transparent;
}
.kq-post-table .kq-pill::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.kq-post-table .kq-pill-answered { background: #ecfdf5; color: #047857; border-color: #d1fae5; }
.kq-post-table .kq-pill-pending  { background: #fef2f2; color: #b91c1c; border-color: #fee2e2; }
.kq-post-table .kq-pill-cat      { background: #eff6ff; color: #1d4ed8; border-color: #dbeafe; }
.kq-post-table .kq-pill-cat::before { display: none; }

/* 썸네일 */
.kq-post-table .col-thumb img,
.kq-post-table .kq-thumb-box img {
    width: 48px; height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

/* 날짜 / 메타 */
.kq-post-table .col-date {
    color: #9ca3af;
    font-size: 12.5px;
    font-variant-numeric: tabular-nums;
}

/* 답변 토글 버튼 */
.kq-answer-toggle-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    color: #4b5563;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
    white-space: nowrap;          /* 버튼 텍스트 줄바꿈 방지 */
    line-height: 1.2;
}
.kq-answer-toggle-btn:hover {
    background: #fffbeb;
    border-color: #f8b500;
    color: #b45309;
}
.kq-answer-toggle-btn.is-open {
    background: #111827;
    border-color: #111827;
    color: #fff;
}
.kq-answer-row { display: none; }
.kq-answer-row.is-open { display: table-row; }
.kq-answer-row td {
    padding: 0 !important;
    border-bottom: 1px solid #f5f5f5;
    background: #fafafa;
}
.kq-answer-box {
    padding: 18px 24px;
    border-left: 3px solid #f8b500;
    background: #fffdf5;
    margin: 0;
}
.kq-answer-box .kq-answer-label {
    display: inline-block;
    padding: 2px 10px;
    background: #fef3c7;
    color: #92400e;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.kq-answer-box .kq-answer-content {
    color: #374151;
    font-size: 13.5px;
    line-height: 1.7;
    word-break: break-word;
}

/* 빈 상태 */
.kq-post-table .kq-empty-row td.kq-empty {
    padding: 80px 20px;
    text-align: center;
    background: #fff;
    color: #9ca3af;
}
.kq-post-table .kq-empty-row td.kq-empty .kq-empty-icon {
    font-size: 42px;
    color: #f3f4f6;
    display: block;
    margin-bottom: 12px;
}
.kq-post-table .kq-empty-row td.kq-empty p {
    margin: 0 0 16px;
    font-size: 14px;
    color: #6b7280;
}
.kq-post-table .kq-empty-row td.kq-empty .kq-empty-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #111827;
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    border-radius: 999px;
    font-size: 13px;
    transition: background .15s ease;
}
.kq-post-table .kq-empty-row td.kq-empty .kq-empty-cta:hover { background: #1f2937; }

/* 모바일 응답형 — 표를 카드형으로 */
@media (max-width: 720px) {
    .kq-table-wrap { border-radius: 12px; }
    .kq-post-table { table-layout: auto; }
    .kq-post-table colgroup,
    .kq-post-table thead { display: none; }
    .kq-post-table, .kq-post-table tbody, .kq-post-table tr, .kq-post-table td {
        display: block;
        width: 100%;
    }
    .kq-post-table tbody tr {
        position: relative;
        padding: 16px 18px;
        border-bottom: 1px solid #f5f5f5;
    }
    .kq-post-table tbody tr:last-child { border-bottom: 0; }
    .kq-post-table tbody td {
        padding: 0;
        border: 0;
        text-align: left;
    }
    .kq-post-table .col-no,
    .kq-post-table .col-thumb { display: none; }
    .kq-post-table .col-status,
    .kq-post-table .col-cat   { display: inline-block; margin-right: 6px; }
    .kq-post-table .col-title { display: block; margin: 8px 0; padding: 0; }
    .kq-post-table .col-title .kq-title-link {
        font-size: 15px;
        font-weight: 600;
        white-space: normal;
        line-height: 1.5;
        color: #111827;
    }
    .kq-post-table .col-date { display: inline-block; font-size: 12px; color: #9ca3af; margin-right: 12px; }
    .kq-post-table .col-action { display: inline-block; }
    .kq-post-table .col-action .kq-answer-toggle-btn { padding: 4px 10px; font-size: 11px; }
    .kq-answer-row td { padding: 0 !important; }
    .kq-answer-box { padding: 14px 18px; }
}
