/**
 * Receipt Search Page Styles
 * Styles for public receipt search page
 */

/* ===== Contact Panel ===== */
.contact-panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.contact-panel__title {
    color: #1b3a5f;
    font-weight: 600;
}

.form-label {
    font-weight: 600;
    color: #1b3a5f;
    margin-bottom: 8px;
    font-size: 14px;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.captcha-question {
    min-width: 110px;
    font-weight: 700;
    color: #1b3a5f;
    font-size: 18px;
}

.captcha-input {
    max-width: 120px;
    text-align: center;
}

.recaptcha-block {
    display: flex;
    justify-content: center;
}

/* ===== Results Panel ===== */
.receipt-results-panel {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.results-header {
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf2;
}

.results-header h5 {
    color: #1b3a5f;
    font-weight: 600;
}

.badge {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.bg-primary {
    background: var(--ci-primary, #FA974E) !important;
}

.receipt-results-body {
    padding: 0;
}

.receipt-results-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.receipt-results-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: 14px;
}

.receipt-results-table thead th {
    background: #1b3a5f;
    color: #fff;
    font-weight: 600;
    text-align: left;
    padding: 14px 16px;
    white-space: nowrap;
}

.receipt-results-table tbody tr {
    border-bottom: 1px solid #eef2f6;
    transition: background-color 0.2s ease;
}

.receipt-results-table tbody tr:last-child {
    border-bottom: none;
}

.receipt-results-table tbody tr:hover {
    background: #f8fbff;
}

.receipt-results-table tbody td {
    padding: 14px 16px;
    color: #444;
    vertical-align: middle;
}

.receipt-results-table__receipt-no {
    color: var(--ci-primary, #FA974E);
    font-weight: 700;
    white-space: nowrap;
}

.receipt-results-table__project {
    max-width: 320px;
    line-height: 1.5;
}

.receipt-results-table__amount,
.receipt-results-table thead th.receipt-results-table__amount {
    text-align: right;
    white-space: nowrap;
}

.receipt-results-table__amount-value {
    color: var(--ci-primary, #FA974E);
    font-weight: 700;
}

.receipt-results-table__action,
.receipt-results-table thead th.receipt-results-table__action {
    text-align: center;
    white-space: nowrap;
}

/* ===== Open Receipt Button ===== */
.btn__open-receipt {
    background: #1b3a5f;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn__open-receipt:hover {
    background: #2c5282;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .receipt-results-table {
        min-width: 0;
    }

    .receipt-results-table thead {
        display: none;
    }

    .receipt-results-table tbody tr {
        display: block;
        padding: 16px;
        margin-bottom: 12px;
        border: 1px solid #e8edf2;
        border-radius: 10px;
        background: #fff;
    }

    .receipt-results-table tbody tr:hover {
        background: #f8fbff;
    }

    .receipt-results-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        padding: 8px 0;
        border: none;
    }

    .receipt-results-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #1b3a5f;
        flex-shrink: 0;
    }

    .receipt-results-table__project {
        max-width: none;
        text-align: right;
    }

    .receipt-results-table__amount,
    .receipt-results-table__action {
        text-align: right;
    }

    .receipt-results-table__action {
        justify-content: space-between;
        padding-top: 12px;
        margin-top: 4px;
        border-top: 1px solid #eef2f6;
    }
}
