﻿/* ============================================
   BillingStatement.css
   Styles/BillingStatement.css
   ============================================ */

/* Layout */
.billing-wrapper {
    display: flex;
    gap: 20px;
    padding: 30px 40px;
    align-items: flex-start;
    background: #f0f2f4;
    min-height: calc(100vh - 100px);
}

/* ── Side Card ── */
.side-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    width: 225px;
    flex-shrink: 0;
}

    .side-card h2 {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .side-card .acct-type {
        color: #555;
        margin-bottom: 16px;
        font-size: 13px;
    }

    .side-card .meta {
        font-size: 13px;
        color: #444;
        margin-bottom: 4px;
    }

    .side-card a {
        color: #e07b00;
        text-decoration: none;
        display: inline-block;
        margin-top: 14px;
        font-size: 13px;
    }

        .side-card a:hover {
            text-decoration: underline;
        }

/* ── Billing Panel ── */
.billing {
    flex: 1;
}

.billing-header {
    background: #6aabde;
    color: #fff;
    padding: 14px 18px;
    border-radius: 6px 6px 0 0;
    font-size: 17px;
    font-weight: 700;
}

/* ── Table ── */
.billing-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

    .billing-table thead tr {
        border-bottom: 2px solid #ddd;
    }

    .billing-table th {
        padding: 12px 16px;
        text-align: left;
        font-weight: 700;
        font-size: 13px;
        color: #222;
    }

    .billing-table td {
        padding: 12px 16px;
        font-size: 13px;
        border-bottom: 1px solid #eee;
        color: #333;
    }

    .billing-table tbody tr.alt-row {
        background: #f9f9f9;
    }

    .billing-table td.date a {
        color: #e07b00;
        text-decoration: none;
    }

        .billing-table td.date a:hover {
            text-decoration: underline;
        }

    .billing-table tfoot tr {
        border-top: 2px solid #bbb;
    }

    .billing-table tfoot td {
        font-weight: 700;
        font-size: 14px;
        padding: 14px 16px;
    }

/* ── Buttons ── */
a.btn-pay,
a.btn-pay:link,
a.btn-pay:visited {
    background: #3a7fc1;
    color: #fff;
    border: none;
    padding: 7px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

    a.btn-pay.hidden {
        visibility: hidden;
    }

a.btn-pay-all,
a.btn-pay-all:link,
a.btn-pay-all:visited {
    background: #3a7fc1;
    color: #fff;
    border: none;
    padding: 9px 22px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

/* ── Note ── */
.note {
    margin-top: 16px;
    font-size: 12px;
    color: #444;
    line-height: 1.6;
    max-width: 860px;
}

    .note strong {
        font-weight: 700;
    }

/* ── PDF Icon ── */
.pdf-icon {
    text-align: center;
    margin-top: 14px;
}

    .pdf-icon svg {
        width: 52px;
        height: 52px;
    }

/* Modal Styles */
.stripe-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: auto;
}

.stripe-modal-content {
    position: relative;
    background-color: #fff;
    margin: 50px auto;
    padding: 0;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /* Remove auto margin for dragging to work properly */
    margin-left: auto;
    margin-right: auto;
}

.stripe-modal-header {
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Draggable indicator */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.stripe-modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    pointer-events: none; /* Prevent text selection during drag */
}

.stripe-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    transition: color 0.2s ease;
}

    .stripe-modal-close:hover {
        color: #333;
    }

.stripe-modal-body {
    padding: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* ── Stripe Modal ── */
/*.stripe-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.stripe-modal {
    background: #fff;
    border-radius: 6px;
    padding: 20px;*/
    /* min-width: 420px;*/
    /* max-width: 600px;*/
    /*width: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

.stripe-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.stripe-modal-title {
    font-size: 16px;
    font-weight: 700;
}

.stripe-modal-close {
    border: none;
    background: none;
    font-size: 18px;
    cursor: pointer;
}

.stripe-modal-body {
    margin-top: 10px;
}*/
