/* CSS Variables from Figma Design */
:root {
    --radius-ai-athens-gray: #e5e7eb;
    --Base-Colors-White: #fff;
    --Text-Color-Tokens-text-primary: #111927;
    --Unit-36: 36px;
    --Family: Inter;
    --Text-L-Regular-Size: 16px;
    --Text-L-Regular-Line-Height: 24px;
    --Text-L-Regular-Letter-Spacing: 0;
    --Radius-M: 12px;
    --Border-Color-Tokens-border-primary: #d2d6db;
    --Background-color-tokens-background-primary: #fff;
    --Text-S-Semibold-Size: 12px;
    --Text-S-Semibold-Line-Height: 16px;
    --Text-S-Semibold-Letter-Spacing: 0;
    --Text-Color-Tokens-text-quaternary: #6c727e;
    --Text-S-Regular-Size: 12px;
    --Text-S-Regular-Line-Height: 16px;
    --Text-S-Regular-Letter-Spacing: 0;
    --Text-Color-Tokens-text-placeholder: #6c727e;
    --Space-4XL: 48px;
    --Background-color-tokens-background-brand-solid: #06f;
    --Text-Color-Tokens-text-primary_on-brand: #fff;
    --Text-L-Semibold-Size: 16px;
    --Text-L-Semibold-Line-Height: 24px;
    --Text-L-Semibold-Letter-Spacing: 0;
    --Space-3XS: 4px;
    --Border-Color-Tokens-border-brand: #06f;
    --Foundation-Neutral-neutral-200: #cbd1dc;
    --Foundation-Text-Main: #3c414b;
    --Foundation-Text-Secondary: #828da3;
    --Black: #000;
    --Foundation-Primary-primary-500: #06f;
    --White: #fff;
    --Base-Colors-Black: #000;
    --radius-ai-catskill-white: #f1f5f9;
    --Background-color-tokens-background-tertiary: #f3f4f6;
    --Text-Color-Tokens-text-secondary: #384250;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #fff;
}

body {
    font-family:
        Inter,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    background: var(--Base-Colors-White);
    color: var(--Text-Color-Tokens-text-primary);
    margin: 0;
    padding: 0;
}

/* Receipt Lookup Page Specific Styles */
.receipt-lookup-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.receipt-lookup-container {
    /* height: 820px;
    background: var(--Base-Colors-White);
    position: relative;
    margin: 0 auto; */
    width: 100%;
    /* max-width: 1440px; */
    max-width: 100%;
    min-height: 100vh;
    background: var(--Base-Colors-White);
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    display: flex;
    width: 100%;
    padding: 12px 80px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-bottom: 1px solid var(--radius-ai-athens-gray);
    background: var(--Base-Colors-White);
    height: 72px;
    position: absolute;
    left: 0;
    top: 0;
}
img.venue-logo {
    align-items: center;
    width: 150px;
    height: auto;
}
.nav {
    display: flex;
    width: 0;
    height: 0;
    align-items: flex-start;
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    position: relative;
}

.logo-link {
    display: flex;
    height: 48px;
    align-items: center;
    border-radius: 9999px;
    position: relative;
}

.logo {
    width: 125.869px;
    height: 32px;
    max-width: 568.88px;
    position: relative;
}

/* Main Content */
.main-content {
    position: relative;
    width: 100%;
    min-height: 650px;
    max-width: 534px;
    margin: 104px auto 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.refund-policy {
    margin-top: 2rem;
    font-size: 14px;
    text-align: center;
    line-height: 18px;
}

.title-section {
    display: flex;
    /* width: 375px;
    height: 72px; */
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.page-title {
    font-family:
        Inter,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--Text-Color-Tokens-text-primary);
    text-align: center;
    line-height: 36px;
    margin: 0;
}

.page-description {
    font-family:
        Inter,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-weight: 400;
    font-size: var(--Text-L-Regular-Size);
    color: var(--Text-Color-Tokens-text-primary);
    text-align: center;
    line-height: var(--Text-L-Regular-Line-Height);
    letter-spacing: var(--Text-L-Regular-Letter-Spacing);
    margin: 0;
    align-self: stretch;
}

/* Form Styles */
.lookup-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
    width: 100%;
}

.form-field {
    display: flex;
    width: 420px;
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    min-height: 56px;
}

.form-field.has-error {
    height: auto;
    min-height: 76px;
}

.field-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--Space-3XS);
    align-self: stretch;
    border-radius: 4px;
    position: relative;
}

.label-input-container {
    display: flex;
    padding: 6px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--Space-3XS);
    align-self: stretch;
    border-radius: var(--Radius-M);
    border: 1px solid var(--Border-Color-Tokens-border-primary);
    background: var(--Background-color-tokens-background-primary);
    position: relative;
}

/* Error state styles */
.label-input-container.error {
    border: 2px solid #e50000;
}

.field-error-icon {
    display: flex;
    width: 16px;
    height: 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

#card-last-four-error-icon.field-error-icon {
    right: 0;
}

.inline-error-message {
    align-self: stretch;
    color: #da0000;
    font-family:
        "Noto Sans",
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    margin-top: 4px;
}

.field-label {
    display: flex;
    align-items: center;
    gap: var(--Space-3XS);
    position: relative;
}

.label-text {
    color: var(--Text-Color-Tokens-text-primary);
    font-family:
        Inter,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-size: var(--Text-S-Semibold-Size);
    font-weight: 700;
    line-height: var(--Text-S-Semibold-Line-Height);
    letter-spacing: var(--Text-S-Semibold-Letter-Spacing);
    position: relative;
}

.notation-text {
    color: var(--Text-Color-Tokens-text-quaternary);
    font-family:
        Inter,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-size: var(--Text-S-Regular-Size);
    font-weight: 400;
    line-height: var(--Text-S-Regular-Line-Height);
    letter-spacing: var(--Text-S-Regular-Letter-Spacing);
    position: relative;
}

.input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    position: relative;
}

.date-input,
.card-input,
.text-input {
    display: flex;
    flex: 1 0 0;
    overflow: hidden;
    color: var(--Text-Color-Tokens-text-placeholder);
    text-overflow: ellipsis;
    font-family:
        Inter,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-size: var(--Text-L-Regular-Size);
    font-weight: 400;
    line-height: var(--Text-L-Regular-Line-Height);
    letter-spacing: var(--Text-L-Regular-Letter-Spacing);
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
}

.date-input:focus,
.card-input:focus,
.text-input:focus {
    color: var(--Text-Color-Tokens-text-primary);
}

.input-icon {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    position: relative;
}

/* Don't Remember Link */
.dont-remember-container {
    display: inline-flex;
    height: 40px;
    justify-content: center;
    align-items: center;
    gap: var(--Space-3XS);
    flex-shrink: 0;
    border-radius: var(--Radius-M);
    width: 266px;
}

.text-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--Space-3XS);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--Background-color-tokens-background-brand-solid);
    text-align: center;
    font-family:
        Inter,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-size: var(--Text-L-Semibold-Size);
    font-weight: 700;
    line-height: var(--Text-L-Semibold-Line-Height);
    letter-spacing: var(--Text-L-Semibold-Letter-Spacing);
    position: relative;
}

.text-button:hover {
    text-decoration: underline;
}

/* Primary Button */
.primary-button {
    display: flex;
    width: 420px;
    height: 48px;
    padding: 8px 16px;
    justify-content: center;
    align-items: center;
    gap: var(--Space-3XS);
    flex-shrink: 0;
    border-radius: var(--Radius-M);
    background: var(--Background-color-tokens-background-brand-solid);
    border: none;
    cursor: pointer;
    color: var(--Text-Color-Tokens-text-primary_on-brand);
    text-align: center;
    font-family:
        Inter,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-size: var(--Text-L-Semibold-Size);
    font-weight: 700;
    line-height: var(--Text-L-Semibold-Line-Height);
    letter-spacing: var(--Text-L-Semibold-Letter-Spacing);
    transition: background-color 0.2s ease;
}

.primary-button:hover {
    background: #0052cc;
}

/* Alternative Fields */
.alt-fields {
    display: flex;
    flex-direction: column;
    width: 420px;
}

.alt-fields .form-field:not(:first-child) {
    margin-top: 20px;
}

/* Error Message - New Design */
.error-message-container {
    display: flex;
    width: 100%;
    max-width: 420px;
    padding: 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    border: 1px solid #e50000;
    background: #fdf2f2;
    margin: 20px 0;
}

.error-message-container .error-icon {
    display: flex;
    width: 16px;
    height: 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.error-message-container .error-text {
    color: #4d5761;
    font-family:
        Inter,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0;
    flex: 1;
}

.error-message-container .error-icon svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Footer */
.footer {
    display: flex;
    width: 100%;
    height: 108px;
    padding: 30px 80px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border-top: 1px solid var(--radius-ai-catskill-white);
    background: var(--Background-color-tokens-background-tertiary);
    position: relative;
    left: 0;
    /* top: 712px; */
}

.footer-container {
    display: flex;
    width: 1280px;
    max-width: 1280px;
    padding: 0 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    position: relative;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    gap: 8px;
}

.copyright-container {
    display: flex;
    padding: 0 460px;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    position: relative;
}

.copyright-text {
    width: 644px;
    color: var(--Text-Color-Tokens-text-secondary);
    text-align: center;
    font-family:
        Inter,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-size: var(--Text-L-Regular-Size);
    font-weight: 700;
    line-height: var(--Text-L-Regular-Line-Height);
    margin: 0;
}

.privacy-container {
    display: flex;
    padding: 0 582px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    position: relative;
}

.privacy-link {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    color: var(--Text-Color-Tokens-text-secondary);
    text-align: center;
    font-family:
        Inter,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-size: var(--Text-S-Regular-Size);
    font-weight: 400;
    line-height: var(--Text-S-Regular-Line-Height);
    text-decoration: underline;
    position: relative;
}

.privacy-link:hover {
    color: var(--Background-color-tokens-background-brand-solid);
}

/* Legacy styles for other pages */
.container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin: 0 auto;
}

button:not(.text-button):not(.primary-button) {
    background-color: #005caa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px 16px;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.action-buttons button.downloadButton {
    background-color: #e5f0ff;
    color: #0052cc;
    border: 1px solid #99c2ff;
    width: 100%;
    max-width: 420px;
}

button:not(.text-button):not(.primary-button):not(.downloadButton):hover {
    background-color: #004080;
}

.form-group {
    margin-bottom: 15px;
}

label:not(.label-text) {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input:not(.date-input):not(.card-input):not(.text-input) {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.help-text {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.required::after {
    content: " *";
    color: red;
}

/* Error message styles for legacy pages */
.error-message:not(.receipt-lookup-page .error-message) {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* 404 page styles */
.error-container {
    background: #fff;
    width: 420px;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.error-details {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

/* Receipt page styles */
.receipt {
    background: #fff;
    width: 420px;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #000;
}

.subtitle {
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #4c4b4bad;
}

.address {
    text-align: center;
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 2rem;
    color: #4c4b4bad;
}

.meta {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 1.2rem;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.meta-row .label {
    font-weight: 600;
    color: #444;
}

.meta-row .value {
    color: #444;
    text-align: right;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

th,
td {
    padding: 10px 6px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    vertical-align: top;
}

th {
    text-align: left;
    color: #444;
}

td:last-child,
th:last-child {
    text-align: right;
}

.sub {
    color: #888;
    font-size: 0.8em;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.05rem;
    border-top: 2px solid #000;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
}

.payment {
    margin-top: 1.5rem;
}

.payment-label {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 0.3rem;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.payment-row .method {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    font-size: 0.95rem;
    color: #000;
}

.payment-row .amount {
    font-weight: 600;
    font-size: 0.95rem;
    color: #000;
}

.thanks {
    text-align: center;
    font-size: 0.95rem;
    margin: 1.2rem 0;
}

.thanks h3 {
    font-size: 1.1rem;
    color: #333;
}

footer:not(.footer) {
    text-align: center;
    font-size: 0.8rem;
    color: #777;
    margin-top: 1rem;
}

.powered-by {
    margin-top: 3rem;
}

.powered-by img {
    height: 28px;
    margin-top: 6px;
}

.action-buttons {
    margin-top: 2rem;
    text-align: center;
    width: 100%;
    max-width: 420px;
}

/* Search form specific styles (legacy) */
.search-container {
    max-width: 600px;
}

/* Search results specific styles */
.search-results-container {
    max-width: 800px;
}

.search-criteria {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.search-criteria h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #444;
}

.criteria-item {
    margin-bottom: 5px;
}

.criteria-item .label {
    font-weight: 600;
    margin-right: 10px;
}

.results-count {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #666;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.results-table th,
.results-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.results-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #444;
}

.view-button {
    display: inline-block;
    background-color: #005caa;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.view-button:hover {
    background-color: #004080;
}

.back-link {
    margin-top: 20px;
}

.back-link a {
    color: #005caa;
    text-decoration: none;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Layout styles for different pages */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.receipt-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 20px 0;
}

#receipt-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1440px) {
    .receipt-lookup-container {
        width: 100%;
        max-width: 1440px;
        height: auto;
        min-height: 100vh;
    }

    .header {
        width: 100%;
        position: relative;
    }

    .main-content {
        position: relative;
        margin: 40px auto;
    }

    .footer {
        width: 100%;
        position: relative;
        top: auto;
        margin-top: auto;
    }

    .receipt-lookup-page {
        min-height: 100vh;
    }
}

@media (max-width: 4000px) {
    .footer {
        width: 100%;
        position: relative;
        top: auto;
        margin-top: auto;
    }
}

/* Search Results Page Styles */
.search-results-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--Base-Colors-White);
}

.search-results-container {
    width: 100%;
    /* max-width: 1440px; */
    max-width: 100%;
    min-height: 100vh;
    background: var(--Base-Colors-White);
    position: relative;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.search-results-container .main-content {
    align-items: start;
}

/* Back Button */
.back-button-container {
    display: inline-flex;
    height: 24px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    border-radius: 12px;
    width: 67px;
}

.back-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #4d5761;
    font-family:
        Inter,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0;
}

.back-button:hover {
    text-decoration: underline;
}

.back-button svg {
    width: 24px;
    height: 24px;
}

/* Search Criteria Summary */
.search-criteria-summary {
    display: flex;
    width: 534px;
    height: 76px;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1px solid var(--Border-Color-Tokens-border-primary);
    background: #f9fafb;
    margin: 16px 0;
}

.criteria-group-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 32px;
}

.criteria-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
}

.criteria-label {
    color: var(--Foundation-Text-MainText);
    font-family:
        Inter,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0;
}

.criteria-value {
    color: var(--Foundation-Text-MainText);
    font-family:
        Inter,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0;
}

/* Results Count */
.search-results-container .results-count {
    color: var(--Text-Color-Tokens-text-primary);
    font-family:
        Inter,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0;
    margin: 0 0 24px 0;
}

/* Results Table */
.results-table-container {
    display: flex;
    width: 534px;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 12px;
    border: 1px solid var(--Border-Color-Tokens-border-primary);
    height: auto;
    overflow: hidden;
}

.table-content {
    display: flex;
    align-items: flex-start;
    align-self: stretch;
    position: relative;
    width: 100%;
}

.table-rows {
    display: flex;
    align-items: flex-start;
    align-self: stretch;
    position: relative;
    width: 100%;
}

.table-columns {
    display: flex;
    align-items: flex-start;
    flex: 1 0 0;
    position: relative;
    width: 100%;
}

.table-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 0 0;
    position: relative;
}

.table-column.action-column {
    display: flex;
    width: 158px;
    flex-direction: column;
    align-items: center;
    flex: none;
}

.table-header {
    display: flex;
    padding: 12px 16px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    align-self: stretch;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.header-content {
    display: flex;
    height: 20px;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.header-label {
    color: #374151;
    font-family:
        Inter,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.table-cell {
    display: flex;
    height: 40px;
    padding: 12px 16px;
    justify-content: center;
    align-items: center;
    gap: 12px;
    align-self: stretch;
    border-bottom: 1px solid #e5e7eb;
    background: var(--Base-Colors-White);
}

.cell-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cell-text {
    color: #4b5563;
    font-family:
        Inter,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.view-receipt-button {
    display: flex;
    height: 32px;
    padding: 8px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 8px;
    border: 1px solid #99c2ff;
    background: #e5f0ff;
    text-decoration: none;
}

.view-receipt-button:hover {
    background: #d0e7ff;
}

.view-receipt-button svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Receipt View Page Styles */
.receipt-view-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.receipt-view-container {
    width: 1440px;
    height: 1172px;
    background: var(--Base-Colors-White);
    position: relative;
    margin: 0 auto;
}

.receipt-view-container .main-content {
    /* position: absolute; */
    /* left: 453px; */
    /* top: 104px; */
    width: 534px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;

    position: relative;
    left: 0;
    height: auto;
    top: unset;
}

.receipt-view-container .footer {
    display: flex;
    width: 1440px;
    height: 104px;
    padding: 29px 80px 28px 80px;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    border-top: 1px solid var(--radius-ai-catskill-white);
    background: var(--Background-color-tokens-background-tertiary);
    position: absolute;
    left: 0;
    top: 1068px;
}

.receipt-view-container .footer .footer-container {
    display: flex;
    width: 1280px;
    max-width: 1280px;
    padding: 0 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.receipt-view-container .footer .copyright-container {
    display: flex;
    padding: 0 460.37px 0 460.38px;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
}

.receipt-view-container .footer .privacy-container {
    display: flex;
    padding: 0 582.65px 0 582.66px;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
}

/* Receipt Image */
.receipt-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 534px;
    margin: 20px 0;
}

.receipt-image {
    width: 400px;
    height: 638px;
    flex-shrink: 0;
    aspect-ratio: 200/319;
    border-radius: 8px;
    box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.08);
}

/* Download Button */
.download-button {
    display: flex;
    width: 400px;
    height: 48px;
    padding: 8px 16px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid #99c2ff;
    background: #e5f0ff;
    color: #0052cc;
    text-align: center;
    font-family:
        Inter,
        -apple-system,
        Roboto,
        Helvetica,
        sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin: 0 auto;
}

.download-button:hover {
    background: #d0e7ff;
}

/* Footer positioning fix for search results */
.search-results-container .footer {
    position: relative;
    width: 100%;
}

/* Responsive adjustments for new layouts */
@media (max-width: 1440px) {
    .search-results-container,
    .receipt-view-container {
        width: 100%;
        max-width: 1440px;
        height: auto;
        min-height: 100vh;
    }

    .search-results-container .main-content,
    .receipt-view-container .main-content {
        position: relative;
        margin: 40px auto;
        width: 100%;
        max-width: 534px;
        padding: 0 20px;
        margin-bottom: 40px;
    }

    .search-criteria-summary,
    .results-table-container {
        width: 100%;
        max-width: 534px;
    }

    .receipt-image {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .download-button {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    .receipt-lookup-container {
        width: 100%;
        max-width: 100%;
    }
    .main-content {
        max-width: 100%;
        padding: 0 24px;
        width: 100%;
        min-height: 360px;
        margin: 24px auto;
    }
    .table-column.action-column {
        width: 80px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 12px 20px;
        height: 83px;
    }

    .footer {
        padding: 30px 20px;
    }

    .copyright-container {
        padding: 0;
    }

    .privacy-container {
        padding: 0;
    }

    .copyright-text {
        width: auto;
        font-size: 14px;
    }

    .main-content {
        width: 100%;
        padding: 0 20px;
    }

    .search-results-container .main-content {
        margin-top: 20px;
    }

    .form-field,
    .primary-button,
    .alt-fields {
        width: 100%;
        max-width: 100%;
    }

    .search-criteria-summary {
        flex-direction: column;
        height: auto;
        padding: 16px;
        gap: 16px;
        align-items: start;
        margin: 0 0 12px;
    }

    .criteria-group {
        align-items: start;
        text-align: start;
    }

    .back-button-container {
        margin-bottom: 20px;
    }

    .results-table-container {
        overflow-x: auto;
    }

    .table-columns {
        min-width: 320px;
    }
    .lookup-form {
        gap: 16px;
    }
    .alt-fields .form-field:not(:first-child) {
        margin-top: 16px;
    }
    .search-results-container .results-count {
        margin-bottom: 20px;
    }
}

@media print {
    body {
        margin: 0 !important;
        padding: 0 !important;
    }

    #receipt-wrapper {
        padding: 0 !important;
        margin: 0 !important;
    }

    .receipt {
        box-shadow: none !important;
        margin: 0 !important;
    }

    .action-buttons {
        display: none !important;
    }
}

html,
body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #fff;
    overflow-x: hidden; /* Prevent horizontal scroll */
}
