﻿body {
}

.alert {
    padding: 16px;
    margin: 12px 0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: Arial, sans-serif;
}


.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.payment-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    font-family: "Segoe UI", Arial, sans-serif;
    max-width: 900px;
    margin: 1rem 0;
    padding: 1.25rem;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background-color: #f9f9f9;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.form-section {
    flex: 1 1 300px;
    min-width: 300px;
}

    .form-section h4 {
        margin-bottom: 1rem;
        border-bottom: 1px solid #ddd;
        padding-bottom: 0.5rem;
        color: #333;
    }
.form-group {
    display: flex;
    flex-direction: column;
}
    .form-group.compact {
        flex: 0 0 auto;
    }
    .form-group label {
        font-weight: 600;
        margin-bottom: 4px;
    }

.form-control {
    padding: 6px 8px;
    font-size: 14px;
}
/* Sign-in layout */
.signin-grid {
    max-width: 460px;
}

.form-account {
    max-width: 220px;
}

.form-row-compact {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.form-group.compact {
    flex: 0 0 auto;
}

.input-short {
    width: 90px;
}

.input-pin {
    background-color: #e6e6b3;
}

.signin-submit-row {
    text-align: left;
}

.submit-row {
    width: 100%;
    text-align: center;
    margin-top: 16px;
}

    .submit-row input[type="submit"],
    .submit-row button {
        padding: 0.65rem 1.5rem;
        font-size: 1rem;
        background-color: #0078d7;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        margin: 0 0.35rem;
    }

        .submit-row input[type="submit"]:hover,
        .submit-row button:hover {
            background-color: #005fa3;
        }

.secondary-button {
    background-color: #6c757d !important;
}

    .secondary-button:hover {
        background-color: #545b62 !important;
    }

.pay-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pay-overlay-card {
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}
.prepaid-signin {
    max-width: 600px;
}
.prepaid-status-shell {
    max-width: 980px;
}

.prepaid-summary-card {
    margin: 1rem 0 1.25rem 0;
    padding: 1rem 1.25rem;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    background-color: #fafafa;
}

.prepaid-summary-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0.65rem 1rem;
    align-items: start;
}

.summary-label {
    font-weight: 600;
}

.summary-value {
    word-break: break-word;
}

.prepaid-success-actions {
    margin-bottom: 1.25rem;
}

.secondary-button-link {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    font-size: 1rem;
    background-color: #6c757d;
    color: #fff !important;
    border-radius: 5px;
    text-decoration: none;
    margin-right: 0.35rem;
}

    .secondary-button-link:hover {
        background-color: #545b62;
        color: #fff !important;
        text-decoration: none;
    }

.history-section {
    margin-top: 1.5rem;
}

.history-list {
    width: 100%;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.history-list-narrow {
    max-width: 700px;
}

.history-row {
    display: grid;
    grid-template-columns: 140px 140px 1fr 120px;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #ececec;
    align-items: start;
}

.history-row-five {
    grid-template-columns: 120px 120px 1fr 1.25fr 100px;
}

.history-header {
    font-weight: 700;
    background: #f3f3f3;
    border-top: 0;
}

.history-row.history-row-new {
    background-color: #d7f0d7;
}

.history-row.history-row-previous {
    background-color: #f1f1f1;
}

@media (max-width: 900px) {
    .prepaid-summary-grid {
        grid-template-columns: 1fr;
    }

    .history-row,
    .history-row-five {
        grid-template-columns: 1fr;
    }

    .history-header {
        display: none;
    }
}
