/**
 * xjd-records.css
 * 小剪刀 购买记录与明细样式
 */

/* ========== Modal Overlay Base (Copy if not in common) ========== */
.xjd-records-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.xjd-records-modal .xjd-modal-content {
    max-width: 960px;
    width: 100%;
    margin: 0 1rem;
    background: rgba(23, 23, 23, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.xjd-records-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.xjd-records-tabs {
    display: flex;
    gap: 36px;
}

.xjd-records-tab {
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 0;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.xjd-records-tab.active {
    color: #fff;
    font-weight: 600;
}

.xjd-records-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: linear-gradient(90deg, #A855F7, #EC4899);
    border-radius: 2px;
}

.xjd-records-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xjd-records-close:hover {
    color: #fff;
}

.xjd-records-body {
    padding: 16px 32px;
    max-height: 520px;
    overflow-y: auto;
}

.xjd-records-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    text-align: left;
}

.xjd-records-table th {
    color: #777;
    font-size: 13px;
    font-weight: 500;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
}

.xjd-records-table td {
    color: #eee;
    font-size: 14px;
    padding: 14px 16px;
}

.xjd-records-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.xjd-records-table tbody tr:hover td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.xjd-records-table tbody tr:hover td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.xjd-invoice-btn {
    color: #888;
    cursor: pointer;
    font-size: 13px;
}

.xjd-invoice-btn:hover {
    color: #fff;
    text-decoration: underline;
}

.xjd-records-footer {
    padding: 24px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
}

.xjd-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.xjd-page-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: #aaa;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.xjd-page-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.xjd-page-btn.active {
    background: linear-gradient(135deg, #A855F7 0%, #EC4899 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.xjd-page-dots {
    color: #555;
    padding: 0 4px;
}

.xjd-page-size {
    margin-left: 12px;
    padding: 0 12px;
    height: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: #aaa;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.xjd-page-size:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

@media (max-width: 640px) {
    .xjd-records-modal .xjd-modal-content {
        margin: 0;
        border-radius: 0;
        height: 100vh;
    }
    .xjd-records-table th:nth-child(n+4),
    .xjd-records-table td:nth-child(n+4) {
        display: none;
    }
}
