﻿
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
}

/* Main Container */
.container {
    width: 95%;
    max-width: 1100px;
    margin: 20px auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Header */
.header-block {
    text-align: center;
    margin-bottom: 25px;
}

.org-header {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #003366;
    margin-bottom: 5px;
}

h3 {
    margin: 25px 0 10px;
    padding: 10px;
    background: #003366;
    color: #fff;
    border-radius: 5px;
    font-size: 18px;
}

/* Detail Table */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

    .detail-table td {
        padding: 8px;
        border: 1px solid #ddd;
        vertical-align: top;
        line-height: 1.6;
        word-break: break-word;
    }

/* Form Elements */
.form-control,
.amount-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
}

.bold-label {
    font-weight: bold;
    color: #000;
}

/* Grid Responsive */
.grid-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 10px;
}

/* Grid Table */
.gridview {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    background: #fff;
}

    .gridview th,
    .gridview td {
        border: 1px solid #ddd;
        padding: 10px;
        text-align: center;
        white-space: nowrap;
    }

    /* Grid Inputs */
    .gridview input[type="text"],
    .gridview select {
        width: 100%;
        min-width: 80px;
        padding: 6px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

    /* Grid Buttons */
    .gridview input[type="submit"],
    .gridview button {
        padding: 5px 10px;
        font-size: 12px;
        cursor: pointer;
    }

/* Radio */
.radio-option {
    margin-right: 15px;
}

/* Captcha */
.captcha-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

    .captcha-section img {
        border: 1px solid #ccc;
        border-radius: 5px;
        max-width: 120px;
        height: auto;
    }

/* Buttons */
.btn-container {
    text-align: center;
    margin-top: 20px;
}

.btn-blue {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .btn-blue:hover {
        background: #0056b3;
    }

/* Error */
.error-text {
    color: red;
    font-size: 14px;
    display: block;
    margin-top: 5px;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {

    .container {
        width: 100%;
        padding: 12px;
    }

    .org-header {
        font-size: 18px;
    }

    h3 {
        font-size: 16px;
    }

    .detail-table td {
        display: block;
        width: 100%;
        border-bottom: 1px solid #ddd;
    }

    .gridview {
        min-width: 600px;
    }

        .gridview th,
        .gridview td {
            font-size: 12px;
            padding: 6px;
        }

    .captcha-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-blue {
        width: 100%;
    }
    /* =========================
   MODAL BACKDROP
========================= */
    .modalBackground {
        background: rgba(0,0,0,0.55);
        backdrop-filter: blur(3px);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 15px;
    }

    /* =========================
   POPUP 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 */
        .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 POPUP
========================= */
    @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 BACKDROP
========================= */
    .bill-modal-bg {
        background: rgba(0,0,0,0.65);
        backdrop-filter: blur(2px);
    }

    /* =========================
   BILL MODAL WRAPPER
========================= */
    .bill-modal {
        position: fixed;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
        z-index: 99999;
        font-family: Arial, sans-serif;
    }

    /* CONTENT 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 BUTTON */
    .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 */
    @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;
        }
    }

    /* =========================
   EXTRA UTILITY STYLES
========================= */

    .msgbill-title {
        background-color: #0379BD;
        color: white;
        padding: 8px 12px;
        display: inline-block;
        border-radius: 4px;
        font-weight: bold;
    }

    .msg-text {
        color: white;
        font-size: 14px;
    }

    .StickyHeader th {
        position: sticky;
        top: 0;
    }

    .scrollable-panelbill {
        width: 1100px;
        height: 190px;
        overflow: scroll;
        border: 1px solid #ccc;
    }
    .btn-green {
        background: #084298;
        color: #fff;
        border: none;
        padding: 12px 30px;
        font-size: 14px;
        border-radius: 5px;
        cursor: pointer;
        transition: background 0.3s ease;
    }

        .btn-green:hover {
            background: #007bff;
        }
    .btn-green {
        width: 50%;
        height:38px;
    }
}
