/* Print Specific Styles */
@media print {
    body * {
        visibility: hidden; /* Hide everything by default */
    }
    #print-area, #print-area * {
        visibility: visible; /* Show only the print area and its contents */
    }
    #print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0.5cm;
    }
    /* Hide non-print elements */
    header, #admin-controls, #user-display, button, .no-print, .auction-ended-title {
        display: none !important;
        visibility: hidden !important;
    }
    main {
        padding: 0 !important;
        margin: 0 !important;
    }
     #print-header {
         margin-bottom: 15px;
         padding-bottom: 5px;
         border-bottom: 1px solid #ccc;
         text-align: center;
     }
     #print-header p {
         font-size: 11pt !important;
         margin: 2px 0 !important;
         color: black !important;
     }
     h2.section-title {
        font-size: 15pt !important;
        margin-bottom: 10px !important;
         color: black !important;
     }
     h3.summary-title {
         font-size: 13pt !important;
         margin-top: 15px !important;
         margin-bottom: 6px !important;
         color: black !important;
     }
     h4 {
         font-size: 12pt !important;
         margin-top: 10px;
         margin-bottom: 4px;
         color: black !important;
         font-weight: bold;
     }
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        margin-bottom: 5px !important;
        padding: 6px !important;
        border-radius: 0 !important;
        page-break-inside: avoid !important;
        background-color: white !important;
    }
    .ended-row-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1.5fr 1fr;
        gap: 8px;
        font-size: 10pt !important;
    }
     .ended-row-grid p, .ended-row-grid span, .ended-row-grid button {
        font-size: 10pt !important;
         line-height: 1.3;
         margin: 0; padding: 0;
    }
     .ended-row-grid .font-bold {
        font-weight: 600;
    }
     .ended-row-grid .text-2xl, .ended-row-grid .text-3xl {
         font-size: 11pt !important;
     }
     .ended-row-grid .text-lg, .ended-row-grid .text-xl, .ended-row-grid .text-md {
         font-size: 10pt !important;
     }
    /* Hide details content and buttons */
    .details-content, .details-arrow, .details-button-container {
        display: none !important;
    }
     /* Force text to black */
     .text-blue-600 { color: #000 !important; }
     .text-green-700 { color: #000 !important; }
     .text-gray-600 { color: #333 !important; }

     /* Summary Styles */
     #print-summary {
         margin-top: 20px;
         padding-top: 10px;
         border-top: 1px solid #ccc;
         font-size: 12pt !important;
         page-break-before: auto;
     }
     #print-summary p {
         margin-bottom: 5px;
         font-size: 12pt !important;
     }
     #print-summary .summary-section {
         margin-bottom: 12px;
     }
     #print-summary strong {
         font-weight: bold;
     }

    /* Page Layout */
    @page {
        size: A4 portrait;
        margin: 1cm;
    }
}