/* 買家「我的訂單」列表頁專屬樣式。
   注意:不可寫在 member/order.html 的 <body> 內 —— GroupBuyFront 的模板引擎
   只保留 <!--Header S/E--> 之間的 <head> 內容,而放在 Content 區塊裡的 <style>
   會被 Vue 2 的 template compiler 過濾掉(finish-page.html 內有相同註記)。
   故比照 finish-page.css 拉成獨立檔,由模板的 Header 區塊引入。 */

/* 天地留白:上下各留足夠間距,避免內容緊貼 header / footer 顯得侷促。
   min-height 讓訂單筆數少時頁面仍有基本高度,不會整頁只有一小塊。 */
.order-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 64px 16px 96px;
    min-height: 420px;
}

.order-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0 0 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #374151;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.order-table th,
.order-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}

.order-table th {
    background: #f7f7f7;
    font-weight: 700;
    color: #444;
    white-space: nowrap;
}

.order-table tbody tr:hover {
    background: #fafafa;
}

.order-table .order-no {
    font-family: Consolas, Monaco, "Courier New", monospace;
}

.order-table .order-page-name {
    color: #666;
    font-size: 13px;
}

.order-table .order-amount {
    font-weight: 700;
    color: #222;
    white-space: nowrap;
}

.order-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    white-space: nowrap;
    background: #eee;
    color: #555;
}

.order-badge.paid {
    background: #e3f6ee;
    color: #00794f;
}

.order-detail-link {
    color: #00ad72;
    text-decoration: underline;
    white-space: nowrap;
}

.order-detail-link:hover {
    color: #00694a;
}

.order-empty {
    padding: 48px 16px;
    text-align: center;
    color: #999;
}

.order-empty a {
    color: #00ad72;
    text-decoration: underline;
}

/* 手機:表格改卡片式,避免橫向捲動 */
@media only screen and (max-width: 767px) {
    .order-table {
        box-shadow: none;
    }

    .order-table thead {
        display: none;
    }

    .order-table,
    .order-table tbody,
    .order-table tr,
    .order-table td {
        display: block;
        width: 100%;
    }

    .order-table tr {
        border: 1px solid #eee;
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 8px 4px;
        background: #fff;
    }

    .order-table td {
        border: none;
        padding: 6px 12px;
    }

    .order-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        color: #999;
        margin-bottom: 2px;
    }
}

/* 頁首深色,與完成頁一致。
   顏色下在 header 而非 .m-top —— .m-top 有 max-width 會被限寬置中,
   在比它寬的螢幕上只染中間一段、左右露白邊(finish-page.css 有相同註記)。 */
header {
    background: #374151;
}

header .m-top {
    background: transparent;
}
