.invoice-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.invoice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.invoice-filters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.invoice-filters select,
.invoice-filters input {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}
.invoice-filters select:focus,
.invoice-filters input:focus {
    border-color: #266fff;
}
.invoice-filters input {
    width: 200px;
}
.invoice-filters .btn-search {
    padding: 6px 16px;
    background: #266fff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}
.invoice-filters .btn-search:hover {
    background: #1a5ae0;
}
.invoice-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #666;
}
.invoice-stats span {
    color: #266fff;
    font-weight: 600;
}
.invoice-table-wrap {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
}
.invoice-table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
    font-size: 13px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}
.invoice-table thead {
    background: #f7f8fa;
}
.invoice-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}
.invoice-table td {
    padding: 12px 14px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
}
.invoice-table .user-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}
.invoice-table .user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.invoice-table .user-avatar-placeholder {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8eaed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.status-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}
.status-tag.paid {
    background: #e8f5e9;
    color: #2e7d32;
}
.status-tag.pending {
    background: #fff3e0;
    color: #ef6c00;
}
.status-tag.cancelled {
    background: #fce4ec;
    color: #c62828;
}
.amount-cell {
    font-weight: 600;
    color: #333;
}
.plan-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    background: #e3f2fd;
    color: #1565c0;
}
.pay-type-tag {
    font-size: 12px;
    color: #666;
}

/* 申请开票按钮 */
.invoice-action-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.invoice-btn {
    font-size: 13px;
    color: #266fff;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}
.invoice-btn:hover {
    color: #1a5ae0;
}
.invoice-btn.processing {
    color: #e6a23c;
    cursor: pointer;
}
.invoice-btn.processing:hover {
    color: #cf9236;
}
.invoice-divider {
    color: #ccc;
    font-size: 13px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 20px;
}
.page-btn {
    padding: 4px 12px;
    border: 1px solid #e4e7ed;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
}
.page-btn.active {
    background: #409eff;
    color: #fff;
    border-color: #409eff;
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.page-info {
    font-size: 13px;
    color: #666;
    margin-left: 8px;
}
.invoice-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
}
.invoice-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 查看发票信息弹窗 */
.invoice-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.invoice-modal {
    background: #fff;
    border-radius: 12px;
    width: 800px;
    max-width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}
.invoice-modal-content{
    padding: 20px;
    background: #eee;
}
.invoice-modal-box{
    border-radius: 10px;
    background: #fff;
}
.invoice-modal-header {
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
}
.invoice-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}
.invoice-modal-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.invoice-modal-close:hover {
    color: #666;
}
.invoice-modal-body {
    padding: 24px;
}
.invoice-info-list {
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
}
.invoice-info-row {
    height: 60px;
    display: flex;
    border-bottom: 1px solid #e8e8e8;
}
.invoice-info-row:last-child {
    border-bottom: none;
}
.invoice-info-label {
    width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    font-size: 14px;
    color: #999;
}
.invoice-info-value {
    flex: 1;
    font-size: 14px;
    color: #333;
    padding: 0 16px;
    line-height: 60px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.invoice-info-value.price {
    color: var(--color2);
    font-weight: 600;
}
.invoice-modal-footer {
    padding: 0 24px 24px;
    text-align: center;
}
.invoice-modal-btn {
    padding: 8px 48px;
    border: 1px solid var(--color2);
    background: #fff;
    color: var(--color2);
    font-size: 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 120px;
}
.invoice-modal-btn:hover {
    background: #ebf2ff;
}

/* 申请发票弹窗 */
.apply-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f8fa;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
}
.apply-info-left,
.apply-info-right {
    font-size: 14px;
    color: #333;
}
.apply-info-right .price {
    color: #ff4d4f;
    font-weight: 600;
}
.apply-modal-body {
    padding: 24px;
}
.apply-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}
.apply-form-row.radio-row {
    margin-bottom: 20px;
}
.apply-form-label {
    width: 80px;
    flex-shrink: 0;
    text-align: right;
    font-size: 14px;
    color: #333;
    margin-right: 16px;
}
.apply-form-label.required::before {
    content: '*';
    color: #ff4d4f;
    margin-right: 2px;
}
.radio-label {
    display: flex;
    align-items: center;
    margin-right: 24px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}
.radio-label input {
    margin-right: 6px;
    width: 16px;
    height: 16px;
    accent-color: #1890ff;
}
.apply-form-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    height: 36px;
    box-sizing: border-box;
}
.apply-form-input:focus {
    border-color: #40a9ff;
}
.apply-textarea-wrap {
    flex: 1;
    position: relative;
}
.apply-form-textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    resize: none;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
}
.apply-form-textarea:focus {
    border-color: #40a9ff;
}
.apply-textarea-count {
    position: absolute;
    right: 10px;
    bottom: 8px;
    font-size: 12px;
    color: #999;
}
.apply-modal-tip {
    font-size: 13px;
    color: #999;
    text-align: center;
    margin: 8px 0 0;
}
.apply-modal-footer {
    padding: 16px 24px;
    text-align: right;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.apply-modal-btn {
    padding: 6px 24px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 80px;
}
.apply-modal-btn.btn-cancel {
    border: 1px solid #d9d9d9;
    background: #fff;
    color: #333;
}
.apply-modal-btn.btn-cancel:hover {
    color: #40a9ff;
    border-color: #40a9ff;
}
.apply-modal-btn.btn-confirm {
    border: 1px solid #1890ff;
    background: #1890ff;
    color: #fff;
}
.apply-modal-btn.btn-confirm:hover {
    background: #40a9ff;
    border-color: #40a9ff;
}
