body {
    margin: 0;
    padding: 0;
    font-family: Calibri;
}
.submenu {
    display: none;
}
.logo {
    height: 36px;
    width: 36px;
    margin-left: 10px;
    margin-right: 10px;
}
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 55px;
    background: #014083;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.20);
    z-index: 1000;
}
.topbar-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
}
.title {
    color: white;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: .5px;
}


.welcome-text {
    color: #d9e2ec;
    font-size: 14px;
}
.logout-link {
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 4px;
    background: #dc3545;
    font-size: 13px;
    font-weight: bold;
    transition: .3s;
}

    .logout-link:hover {
        background: #bb2d3b;
    }

.menu-group {
    padding: 12px 15px;
    background: #014083;
    color: #95a5a6;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
}
/*.menu-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 4px;
    background: #34495e;
    color: white;
    font-size: 18px;
    cursor: pointer;
}*/

/*    .menu-btn:hover {
        background: #1abc9c;
    }*/
.header-text {
    color: white;
}

.logout-link {
    color: #ffd166;
    text-decoration: none;
    font-weight: bold;
}

    .logout-link:hover {
        color: white;
    }

.toplabel {
    color: white;
    font-weight: bold;
}


.sidebar {
    font-family: Calibri;
    position: fixed;
    top: 55px;
    left: 0;
    width: 250px;
    bottom: 0;
    background: #014083;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,.2);
    transition: left .3s ease;
}

    .sidebar.active {
        left: 0; /* Visible */
    }

    .sidebar.hidden {
        left: -250px;
        width: 0;
    }

    .sidebar a {
        display: block;
        color: #ecf0f1;
        padding: 12px 15px;
        text-decoration: none;
        transition: 0.3s;
    }

        .sidebar a:hover {
            background: #1abc9c;
            color: white;
        }

.menu-header {
    padding: 14px 15px;
    color: #ffffff;
    background: #34495e;
    cursor: pointer;
    font-weight: 600;
    border-bottom: 1px solid #415b76;
    transition: all .3s ease;
    user-select: none;
}

    .menu-header:hover {
        background: #1abc9c;
        padding-left: 20px;
    }


.submenu {
    display: none;
    background: #014083;
}

    .submenu a {
        padding: 12px 15px 12px 40px;
        color: #d5d8dc;
        border-left: 4px solid transparent;
    }

        .submenu a:hover {
            background: #34495e;
            border-left: 4px solid #1abc9c;
            color: white;
        }

.menu-arrow {
    float: right;
    transition: transform .3s ease;
}
.menu-group {
    font-family: Calibri;
    background: #014083;
    color: #95a5a6;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}

.content {
    margin-top: 30px;
    margin-left: 250px;
    margin-bottom: 30px; /* Footer height */
    padding: 5px;
    transition: none;
    min-height: calc(100vh - 85px);
    box-sizing: border-box;
    overflow-x: auto;
    border: 2px solid red;
}

.content.expanded{margin-left:0;}


.Ucs {
    text-transform: uppercase;
}

.Lcs {
    text-transform: lowercase;
}

.style11 {
    font-family: Calibri;
}

.style12 {
    font-family: Calibri;
    font-size: medium;
    color: #000000;
}

.style13 {
    width: 100%;
    font-size: small;
    font-family: Calibri;
    color: #000000;
}

.style15 {
    font-family: Calibri;
    font-weight: bold;
    font-size: large;
    width: 848px;
    background-color: #FFFFFF;
}

.style18 {
    color: #000000;
    height: 17px;
    font-weight: bold;
    font-size: medium;
}

.style19 {
    font-family: Calibri;
    color: #000000;
    height: 17px;
    font-weight: bold;
}

td {
    cursor: pointer;
    font-family: Calibri;
    text-align: center;
}

.hover_row {
    background-color: #A1DCF2;
}

.selected_row td {
    background-color: #A1DCF2;
}

.bottombar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: #014083; /* Same as topbar */
    color: white;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-top: 1px solid #6d1a31;
    z-index: 1000;
}

.bottombar-right {
    margin-left: auto;
    text-align: right;
}
.Style100Pct {
    width: 100%;
}

.nowrap {
    white-space: nowrap;
    width: 1132px;
    font-size: medium;
}



.fullwidth {
    width: 100%;
}

.imgSearch {
    width: 30px !important;
    height: 30px !important;
    vertical-align: middle;
    margin-left: 3px;
    position: relative;
    top: 2px;
    left: 2px;
}

.GridCenter {
    margin-left: auto;
    margin-right: auto;
}
.tablecenter {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.tdleft {
    text-align: left;
    white-space: nowrap;
}

.tdright {
    text-align: right;
    white-space: nowrap;
}
.tdcenter {
    text-align: center;
    white-space: nowrap;
}
.CmdBtnSml {
    background: #014083;
    color: white;
    Height: 30px;
    Width: 85px;
    font-weight: 700;
}
.content-area {
    margin-left: 250px;
    margin-top: 50px;
    height: calc(100vh - 50px);
}

#frmContent {
    width: 100%;
    height: 100%;
    border: none;
}
.content-panel {
    width: 100%;
}

.content-wrapper {
    padding: 10px;
    overflow: auto;
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
    margin: 0 auto;
}
.page-header {
    display: flex;
    width: 100%;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 10px;
    box-sizing: border-box;
    border-bottom: 2px solid #A0A0A0;
}

.hdr-left {
    width: 50%;
    text-align: left;
}

.hdr-right {
    width: 50%;
    text-align: right;
}

.hdr-title {
    font-family: Calibri;
    font-size: 22px;
    font-weight: bold;
    color: #800000;
}

.hdr-message {
    font-family: Calibri;
    font-size: 16px;
    font-weight: bold;
    color: #800000;
}

.menu-panel {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    background: #F5F5F5;
    border: 1px solid #BFBFBF;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.textBox01 {
    padding: 0px 0px;
    width: 130px;
    font-family: Calibri;
    font-size: 14px;
    color: #000;
    background-color: #FAF0F2;
    border: 1px solid #014083;
    border-radius: 4px;
    box-sizing: border-box;
    text-transform: uppercase;
}

    .textBox01:focus {
        background-color: #FFF8DC;
        border: 2px solid #014083;
        outline: none;
    }

.textBox02 {
    width: 240px;
    height: 18px;
    padding: 0px 0px;
    font-family: Calibri;
    font-size: 14px;
    color: #000;
    background-color: #FAF0F2;
    border: 1px solid #014083;
    border-radius: 4px;
    box-sizing: border-box;
    text-transform: uppercase;
}

    .textBox02:focus {
        background-color: #FFF8DC;
        border: 2px solid #014083;
        outline: none;
}
.AmountBox {
    background-color: #FFF8DC;
    border: 1px solid #014083;
    color: #014083;
    font-weight: bold;
    font-size: 16px;
    text-align: right;
}

.SaveButton {
    background-color: #014083;
    color: white;
    border: none;
    font-weight: bold;
    border-radius: 5px;
}

    .SaveButton:hover {
        background-color: #6D1A33;
    }

.ReceiptNo {
    background-color: #FFF9E6;
    color: #990000;
    font-weight: bold;
    text-align: center;
}

.PaymentHeader {
    background-color: #014083;
    color: white;
    font-size: 22px;
    font-weight: bold;
    padding: 10px;
}
.DateBox {
    width: 120px;
    height: 18px;
    padding: 4px 8px;
    font-family: Calibri;
    font-size: 14px;
    font-weight: bold;
    color: #014083;
    background: #FFF8F8;
    border: 1px solid #014083;
    border-radius: 4px;
    text-align: center;
}

    .DateBox::placeholder {
        color: #999;
        font-style: italic;
    }

.RowSmall {
    height: 14px;
}

.menu-button {
    display: inline-block;
    width: auto;
    min-width: max-content;
    height: 34px;
    padding: 0 18px;
    box-sizing: border-box;
    white-space: nowrap;
    font-family: Calibri;
    font-size: 14px;
    font-weight: bold;
    color: #2F2F2F;
    background: linear-gradient(to bottom, #FAFAFA 0%, #EEEEEE 45%, #D9D9D9 100%);
    border: 1px solid #8F8F8F;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 #FFFFFF, 0 1px 2px rgba(0,0,0,.18);
    transition: all .15s ease-in-out;
}

    .menu-button:hover {
        background: linear-gradient(to bottom, #FFFFFF 0%, #F3F3F3 45%, #E2E2E2 100%);
        border-color: #6E6E6E;
        box-shadow: inset 0 1px 0 #FFFFFF, 0 2px 5px rgba(0,0,0,.22);
    }

    .menu-button:active {
        background: linear-gradient(to bottom, #D6D6D6 0%, #ECECEC 100%);
        box-shadow: inset 2px 2px 5px rgba(0,0,0,.18);
    }

    .menu-button:focus {
        outline: none;
    }

.menu-combo {
    margin-left: auto;
    width: 220px;
    height: 34px;
    font-family: Calibri;
    font-size: 15px;
}

.PanelContainer {
    position: relative;
}

.DisabledPanel {
    opacity: 0.5;
}
.EnabledPanel {
    opacity: 1;
}

.PanelOverlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    cursor: not-allowed;
    display: none;
    z-index: 1000;
}

@media print {

    .pageNumber:after {
        content: counter(page);
    }

    .totalPages:after {
        content: counter(pages);
    }
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tableborder,
.tableborder td,
.tableborder th {
    border: none !important;
}


.tablewithborder {
    width: 1350px;
    border-collapse: collapse;
    border: 1px solid #000;
}

    .tablewithborder td,
    .tablewithborder th {
        border: 1px solid #000;
    }

    /* RECEIPTS PRINTING */
.receipt {
    position: relative;
    width: 210mm;
    height: 148mm;
    margin: 15px auto;
    padding: 4mm;
    box-sizing: border-box;
    background: white;
    border: 1px solid #999;
    font-family: Calibri, sans-serif;
    font-size: 13px;
    color: #111;
}

.receipt-value {
    flex: 1;
    font-weight: bold;
    font-size: 15px;
}
.receipt-logo {
    position: absolute;
    left: 2mm;
    top: 2mm;
    width: 45mm;
    text-align: center;
}

.ORG-logo {
    width: 45mm;
    height: 45mm;
    display: block;
    margin: 0 auto;
}

.ORG-verse {
    width: 47mm;
    height: auto;
    display: block;
    margin: 2mm auto 0 auto;
}

.receipt-main {
    margin-left: 45mm;
}

.receipt-heading {
    flex: 1;
    text-align: center;
}

.org-name {
    font-size: 24px;
    font-weight: bold;
}

.org-registration {
    font-size: 9px;
    margin-top: 2px;
}

.org-address {
    font-size: 14px;
    font-weight: bold;
    margin-top: 3px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.org-contact {
    font-size: 14px;
    margin-top: 2px;
}

.receipt-branch {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-top: 4px;
    padding: 3px;
    background: #f0d0d8;
}

.receipt-title {
    width: 55mm;
    margin: 4px auto;
    padding: 3px;
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    font-style: italic;
    background: #b95050;
    color: white;
    border-radius: 8px;
}

.receipt-top {
    display: flex;
    justify-content: space-between;
    margin: 5px 5mm 5px 5mm;
    font-size: 13px;
}

.receipt-box {
    border: 2px solid #8b2340;
    padding: 5mm;
    min-height: 65mm;
    position: relative;
}

.receipt-row {
    display: flex;
    margin-bottom: 4mm;
}

.receipt-label {
    width: 40mm;
    font-weight: normal;
}

.receipt-amount {
    display: inline-block;
    margin-top: 3mm;
    padding: 3px 15px;
    border: 2px solid #b95050;
    font-size: 16px;
    font-weight: bold;
}

.receipt-received-by {
    position: absolute;
    right: 5mm;
    bottom: 4mm;
    font-size: 13px;
}

.receipt-note {
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    font-style: italic;
    margin-top: 2mm;
}

.receipt-ministry {
    text-align: center;
    font-size: 13px;
    font-weight: normal;
    margin-top: 1mm;
    color: #000000;
}

    .receipt-ministry strong {
        font-weight: bold;
        color: #8B1E3F;
    }

.receipt-footer {
    text-align: center;
    font-size: 12px;
    margin-top: 1mm;
}

@media print {

    @page {
        size: A5 landscape;
        margin: 0;
    }

    .receipt-controls {
        display: none !important;
    }

    .receipt {
        width: 210mm;
        height: 148mm;
        margin: 0;
        padding: 4mm;
        box-sizing: border-box;
        border: none;
        page-break-after: always;
        break-after: page;
    }

        .receipt:last-child {
            page-break-after: auto;
            break-after: auto;
        }
}

.ButtonSmall {
    background-color: #014083;
    color: white;
    border: none;
    font-weight: bold;
    border-radius: 5px;
}

    .ButtonSmall:hover {
        background-color: #6D1A33;
    }

.grid-scroll {
    width: 100%;
    height: 150px;
    overflow-x: auto;
    overflow-y: auto;
}

.gridview {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: Calibri;
}

    /* Header */
    .gridview th {
        position: sticky;
        top: 0;
        z-index: 10;
        background-color: #014083;
        color: white;
        font-weight: bold;
        white-space: nowrap;
        padding: 6px 8px;
        border-bottom: 2px solid #002B5C;
    }

    /* Normal rows */
    .gridview td {
        white-space: nowrap;
        padding: 5px 8px;
        color: #333333;
    }

    /* Light yellow row */
    .gridview tr:nth-child(even) td {
        background-color: #FFF4CC;
    }

    /* Darker yellow row */
    .gridview tr:nth-child(odd) td {
        background-color: #FFE08A;
    }

    /* Row hover */
    .gridview tr:hover td {
        background-color: #FFD966;
        cursor: pointer;
    }
