﻿/* Overlay Background */
.modalBackground {
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

/* Main Modal */
.modulpopmsg {
    background: #fff;
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,0.25);
    animation: popupFade 0.25s ease;
    font-family: Arial, sans-serif;
}

    /* HEADER (FULL WIDTH FIXED) */
    .modulpopmsg .msg-title {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: linear-gradient(135deg, #0379BD, #025b8d);
        color: #fff;
        padding: 14px 16px;
        font-size: 18px;
        font-weight: 600;
    }

    /* Close Button */
    .modulpopmsg .close-btn {
        font-size: 20px;
        font-weight: bold;
        color: #fff;
        background: transparent;
        border: none;
        cursor: pointer;
        line-height: 1;
    }

    /* BODY */
    .modulpopmsg .modal-body {
        padding: 18px;
    }

    /* TEXT */
    .modulpopmsg .msg-text {
        color: #333;
        font-size: 15px;
        line-height: 1.6;
        word-break: break-word;
    }

    /* FOOTER */
    .modulpopmsg .modal-footer {
        padding: 12px 18px 18px;
        text-align: right;
    }

    /* BUTTON */
    .modulpopmsg .btn-ok {
        background: #0379BD;
        color: #fff;
        border: none;
        padding: 10px 18px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        transition: 0.3s;
    }

        .modulpopmsg .btn-ok:hover {
            background: #025b8d;
        }

/* ANIMATION */
@keyframes popupFade {
    from {
        opacity: 0;
        transform: translateY(-15px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .modulpopmsg {
        max-width: 90%;
    }

        .modulpopmsg .msg-title {
            font-size: 16px;
            padding: 12px 14px;
        }

        .modulpopmsg .msg-text {
            font-size: 14px;
        }
}

@media (max-width: 480px) {
    .modulpopmsg {
        max-width: 95%;
        border-radius: 10px;
    }

        .modulpopmsg .modal-body {
            padding: 14px;
        }

        .modulpopmsg .btn-ok {
            width: 100%;
        }
}

.bill-modal-bg {
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(2px);
}

/* =========================
   MAIN MODAL (ALL SCREENS)
========================= */
.bill-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    z-index: 99999;
    font-family: Arial, sans-serif;
}

/* INNER BOX */
.bill-modal-content {
    width: 100%;
    max-width: 1200px;
    max-height: 92vh;
    background: #fff;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

/* =========================
   HEADER
========================= */
.bill-modal-header {
    background: linear-gradient(135deg,#0379BD,#025b8d);
    color: white;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.bill-modal-title {
    font-size: 18px;
    font-weight: 600;
}

/* CLOSE */
.bill-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

    .bill-close:hover {
        background: red;
    }

/* =========================
   BODY
========================= */
.bill-modal-body {
    flex: 1;
    background: #f5f7fb;
    padding: 10px;
    overflow: hidden;
}

/* SCROLL AREA */
.bill-scroll {
    height: 100%;
    overflow: auto;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 10px;
}

    /* TABLE */
    .bill-scroll table {
        width: 100%;
        border-collapse: collapse;
    }

    .bill-scroll th {
        position: sticky;
        top: 0;
        background: #0379BD;
        color: white;
    }

    .bill-scroll th,
    .bill-scroll td {
        padding: 10px;
        border: 1px solid #ddd;
        font-size: 14px;
        text-align: left;
    }

/* =========================
   FOOTER
========================= */
.bill-modal-footer {
    padding: 12px 15px;
    text-align: right;
    border-top: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
}

.bill-btn {
    background: #0379BD;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 8px;
    transition: 0.3s;
}

    .bill-btn:hover {
        background: #025b8d;
    }

/* =========================
   LARGE SCREEN (2K / ULTRA WIDE)
========================= */
@media (min-width: 1600px) {

    .bill-modal-content {
        max-width: 1400px;
    }

    .bill-scroll th,
    .bill-scroll td {
        font-size: 15px;
        padding: 12px;
    }
}

/* =========================
   LAPTOP
========================= */
@media (max-width: 1366px) {

    .bill-modal-content {
        max-width: 1050px;
    }
}

/* =========================
   TABLET
========================= */
@media (max-width: 992px) {

    .bill-modal-content {
        max-width: 95vw;
    }

    .bill-modal-title {
        font-size: 16px;
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

    .bill-modal {
        padding: 6px;
    }

    .bill-modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 10px;
    }

    .bill-scroll th,
    .bill-scroll td {
        font-size: 12px;
        padding: 8px;
        white-space: nowrap;
    }

    .bill-modal-footer {
        text-align: center;
    }

    .bill-btn {
        width: 100%;
        margin: 5px 0;
    }
}

.msgbill-title {
    background-color: #0379BD; /* yellow */
    color: white; /* text color */
    padding: 8px 12px;
    display: inline-block; /* IMPORTANT */
    border-radius: 4px;
    font-weight: bold;
}

.msg-text {
    color: white;
    font-size: 1px;
}

.StickyHeader th {
    position: sticky;
    top: 0
}

.scrollable-panelbill {
    width: 1100px; /* Adjust the width as needed */
    height: 190px; /* Adjust the height as needed */
    overflow: scroll; /* Adds scrollbars as needed */
    border: 1px solid #ccc; /* Optional: adds a border */
}
