﻿/* Base styles for receipt container and print content */
.Container {
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    color: #2c3e50;
    max-width: 1100px;
    margin: 40px auto;
    background: linear-gradient(145deg, #ffffff, #f7fafd);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(58, 92, 118, 0.2);
    padding: 30px;
   /* animation: fadeInUp 0.8s ease both;*/
}

/* Fade-in animation (same as registration) */
/*@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}*/

/* Heading styling */
h2 {
    color: #3A5C76;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

/* Tables (using your existing class UniComtable) */
.UniComtable {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(58, 92, 118, 0.1);
    animation: fadeInUp 1s ease both;
}

    .UniComtable th,
    .UniComtable td {
        border: 1px solid #d0e6f8;
        padding: 12px 16px;
        font-size: 0.95rem;
        vertical-align: middle;
    }
    .UniComtable td {
        width:20%;

    }
        /* Table header with theme color background */
        .UniComtable th {
        background: linear-gradient(90deg, #3A5C76, #567a98);
        color: #fff;
        font-weight: 600;
        text-align: center;
    }

    /* Table cells background */
    .UniComtable td {
        background-color: #fafcfd;
        color: #2c3e50;
    }

        /* Align specific td text left */
        .UniComtable td[align="left"] {
            text-align: left;
        }

/* Float containers for images */
#Div1 > div {
    display: inline-block;
    vertical-align: middle;
}

    #Div1 > div:first-child {
        float: left;
    }

    #Div1 > div:last-child {
        float: right;
        margin-top: 10px;
    }

/* QR code container */
#rowqr {
    text-align: center;
    color: #3A5C76;
    font-weight: 600;
}

/* Buttons */
.btn {
    background: linear-gradient(135deg, #3A5C76, #567a98);
    color: #fff;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.4s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

    .btn:hover {
        background: linear-gradient(135deg, #567a98, #3A5C76);
        box-shadow: 0 8px 20px rgba(58, 92, 118, 0.3);
        transform: scale(1.03);
    }

.reset {
    background: transparent;
    border: 2px solid #3A5C76;
    color: #3A5C76;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .reset:hover {
        background: #3A5C76;
        color: #fff;
    }

/* Small INR icon adjustments */
td img[src*="inr.jpeg"] {
    width: 6px;
    height: 8px;
    vertical-align: text-bottom;
    margin-right: 4px;
}

/* Hidden elements with visible=false */
[visible="false"] {
    display: none !important;
}

/* Print styles */
@media print {
    body, html {
        background: #fff !important;
        color: #000 !important;
        margin: 0;
        padding: 0;
        font-size: 12pt;
    }

    .Container {
        box-shadow: none !important;
        max-width: 100% !important;
        margin: 0;
        padding: 0;
        border-radius: 0;
    }

    #PrintContent {
        width: 100%;
        margin: 0;
        padding: 0;
/*        page-break-after: avoid;
        page-break-inside: avoid;
        page-break-before: avoid;*/
    }

    /* Keep entire receipt on one page */
    table {
        /*page-break-inside: avoid !important;
        page-break-after: auto !important;*/
    }

    /* Buttons hidden in print */
    .btn, .reset {
        display: none !important;
    }

    /* Header colors to black and white for print */
    .UniComtable th {
        background: #3A5C76 !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
    }
}
