body {
    text-align: center;
    font-family: Calibri;
    text-align: center;
    background-color: #f66e92;
}

#MainDiv {
    width: 980px;
}

#Header {
    width: 980px;
    padding-bottom: 5px;
}

.clear {
    clear: both;
}

#HeaderLeft {
    width: 280px;
    text-align: left;
    height: 50px;
    font-size: 17px;
    font-weight: bold;
    float: left;
}

#HeaderRight {
    width: 700px;
    float: right;
    height: 50px;
    text-align: right;
    font-size: 13px;
    font-weight: bold;
}

.Rows {
    padding-bottom: 10px;
}

.LogoutBtnHolder {
    padding-bottom: 5px;
}

.Logout {
    width: 105px;
    height: 26px;
    color: White;
    background-image: url('../images/LogOutBtn.jpg');
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
}

.SiteHolder {
    text-align: right;
    color: #2d36b8;
    font-size: 14px;
    font-weight: 500;
    font-weight: bold;
}

.SiteHolder span {
    color: Black;
}

#Date {
    float: right;
    padding-left: 20px;
}

#Clock {
    float: right;
    padding-left: 10px;
}

ul {
    margin: 0 auto;
    padding: 0px;
    list-style: none;
    text-align: right;
}

ul li {
    display: inline;
    text-align: center;
}

#point {
    position: relative;
    -moz-animation: mymove 1s ease infinite;
    -webkit-animation: mymove 1s ease infinite;
    padding-left: 2px;
    padding-right: 2px;
}

#SubHeader {
    width: 980px;
    height: 35px;
}

#MenuHolder {
    float: left;
    text-align: center;
}

#DrawTimeHolder {
    float: right;
    text-align: right;
}

.Menu {
    float: left;
    width: 160px;
    padding-right: 1px;
    font-size: 14px;
    color: White;
    padding-top: 7px;
    height: 26px;
    font-size: 15px;
    font-weight: bold;
    background-image: url('../images/menu.jpg');
    background-repeat: no-repeat;
    background-position: left top;
    cursor: pointer;
}

.active {
    background-image: url('../images/activemenu.jpg');
    color: Black;
}

.Menu a {
    color: White;
    text-decoration: none;
}

.Menu a:hover {
    color: black;
    text-decoration: none;
}

.drawTop {
    font-size: 16px;
    font-weight: bold;
    color: #001060;
    text-align: right;
    margin-top: -3px;
}

.drawbottom {
    font-size: 16px;
    font-weight: bold;
    color: #001060;
    text-align: right;
}

.GridViewRowStyle {
    text-align: center;
    background-color: #d9cf94;
    font-size: 14px;
    color: #000000;
    height: 40px;
    font-weight: bold;
}

.GridViewAlternateRowStyle {
    text-align: center;
    background-color: #f6eeaf;
    font-size: 14px;
    color: #000000;
    height: 40px;
    font-weight: bold;
}

.GridViewHeader {
    text-align: center;
    background-color: #f6eeaf;
    font-size: 14px;
    font-weight: 600;
    color: #5876a3;
    height: 30px;
}

.GridViewFooter {
    text-align: center;
    background-color: #f6eeaf;
    font-size: 14px;
    font-weight: 600;
    color: black;
}

.emptydatarowstylecss {
    background-color: transparent;
    color: #fdfbfc;
    font-size: 18px;
    text-align: center;
}

.GridView {
    width: 100%;
    border: 1px solid #6d6d6d;
    background-color: #feeeb3;
    font-family: Calibri;
    font-weight: bold;
}

.GridView td {
    border: solid 1px #6d6d6d;
}

.GridViewFooter td {
    border: none;
}

.GridView th {
    border: solid 1px #6d6d6d;
}

.GridSuccess {
    padding-left: 5px;
    text-align: left;
    font-size: 12px;
    color: #4682CA;
    font-weight: 600;
    margin-top: 5px;
}

.GrdTxtCss {
    width: 40px;
    height: 25px;
    border: solid 1px black;
}

.GridFooter {
    text-align: center;
    background-color: #f6eeaf;
    font-size: 14px;
    font-weight: 600;
    color: black;
    width: 980px;
    border-bottom: 1px solid #6d6d6d;
    border-left: solid 1px #6d6d6d;
    border-right: solid 1px #6d6d6d;
}

.GridFooter td {
    border: solid 1px #6d6d6d;
    height: 20px;
}

.td1 {
    width: 820px;
    padding-right: 10px;
    text-align: right;
    color: Black;
    font-size: 14px;
    font-weight: bold;
    font-family: Calibri;
}

.td2 {
    width: 45px;
    text-align: center;
}

.td3 {
    width: 57px;
    text-align: center;
}

.td4 {
    width: 52px;
    text-align: center;
}

#LoginHolder {
    width: 978px;
    height: 30px;
    border-bottom: 1px solid #6d6d6d;
    border-left: solid 1px #6d6d6d;
    border-right: solid 1px #6d6d6d;
    background-color: #f6eeaf;
    font-size: 14px;
    font-weight: 600;
    color: black;
    padding: 5px 0px 5px 0px;
}

.LoginHolderLabels {
    padding-left: 10px;
    padding-top: 8px;
    text-align: left;
    padding-right: 10px;
    float: left;
}

.LoginHolderControls {
    padding-left: 10px;
    padding-top: 5px;
    width: 200px;
    text-align: left;
    float: left;
    padding-right: 10px;
}

.LoginTxtcss {
    border: solid 1px #b1adad;
    height: 18px;
    width: 195px;
}

.LoginButtonHolder {
    width: 80px;
    padding-top: 4px;
    float: left;
}

.LoginBtnCss {
    border: solid 1px #234312;
    background-color: #ffeddc;
    color: #06581f;
    font-weight: bold;
    height: 25px;
}

.BottomButtonHolder {
    width: 980px;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 10px;
}

.GreenBtn {
    width: 90px;
    height: 29px;
    background-image: url('../images/GreenBtn1.jpg');
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    color: White;
    font-weight: bold;
    font-size: 14px;
}

.BrownBtn1 {
    width: 90px;
    height: 29px;
    background-image: url('../images/brownBtn1.jpg');
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    color: White;
    font-weight: bold;
    font-size: 14px;
}

.BrownBtn2 {
    width: 115px;
    height: 29px;
    background-image: url('../images/brownBtn2.jpg');
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    color: White;
    font-weight: bold;
    font-size: 14px;
}

.BrownBtn3 {
    width: 189px;
    height: 29px;
    background-image: url('../images/brownBtn3.jpg');
    background-repeat: no-repeat;
    background-color: transparent;
    border: none;
    color: White;
    font-weight: bold;
    font-size: 14px;
}

.BottomRow1,
.BottomRow2 {
    color: White;
    text-align: center;
    padding-top: 5px;
    font-size: 14px;
    font-weight: bold;
}

.BottomRow2 {
    font-size: 13px;
}

.BottomText {
    text-align: center;
    font-size: 16px;
    color: #0902b4;
    padding-top: 10px;
    font-weight: bold;
}

#Scroll {
    padding: 10px 0px 10px 0px;
    color: #f3f162;
    font-size: 15px;
    font-weight: bold;
}
/* Core PHP 8.4 conversion additions; original stylesheet above is preserved. */
html { min-width: 1000px; }
body { margin: 8px; }
.StatusMessage { width: 958px; margin: 8px 0; padding: 9px 10px; border: 1px solid #6d6d6d; font-size: 14px; font-weight: bold; text-align: left; background: #fff6c8; color: #333; }
.StatusMessage.success { background: #e8f8df; color: #1d5d16; }
.StatusMessage.error { background: #ffe1e1; color: #981b1b; }
.ResultPanel { width: 958px; margin-top: 8px; padding: 10px; border: 1px solid #6d6d6d; background: #f6eeaf; color: #111; text-align: left; font-size: 14px; }
.ResultPanel h3 { margin: 0 0 8px; color: #001060; }
.ResultPanel table { width: 100%; border-collapse: collapse; background: #fff7c9; }
.ResultPanel th, .ResultPanel td { border: 1px solid #6d6d6d; padding: 6px; text-align: center; }
.ResultPanel th { color: #5876a3; background: #f6eeaf; }
.EmptyResult { padding: 15px; text-align: center; font-weight: bold; }
.CredentialHint { color: #3f321e; font-size: 12px; margin-top: 5px; }
button, input[type="submit"] { cursor: pointer; }
.GrdTxtCss { text-align: center; }

/* RR Coupon report section converted from public ASPX navigation to Core PHP 8.4. */
.ReportTopBrand {
    color: #000;
    font-size: 25px;
    font-weight: bold;
    padding-top: 2px;
}

.ReportOriginal {
    color: #7c523c;
    font-size: 20px;
    font-weight: bold;
    padding: 2px 0 8px;
}

.ReportHeader {
    padding-top: 4px;
}

.InlineForm {
    display: inline;
    margin: 0;
    padding: 0;
}

.ReportBackLink {
    display: inline-block;
    min-width: 105px;
    padding: 5px 9px;
    border: 1px solid #234312;
    background: #ffeddc;
    color: #06581f;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
}

.ReportHeading {
    width: 978px;
    border: 1px solid #6d6d6d;
    background: #f6eeaf;
    color: #001060;
    font-size: 20px;
    font-weight: bold;
    line-height: 36px;
    text-align: left;
    text-indent: 12px;
}

.ReportNav {
    width: 980px;
    height: 36px;
    margin-bottom: 10px;
    text-align: left;
}

.ReportNavLink {
    display: inline-block;
    width: 160px;
    height: 29px;
    margin-right: 1px;
    padding-top: 7px;
    background-image: url('../images/menu.jpg');
    background-repeat: no-repeat;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    vertical-align: top;
}

.ReportNavLink:hover,
.ReportNavLink.activeReportNav {
    background-image: url('../images/activemenu.jpg');
    color: #000;
}

.ReportContent {
    width: 980px;
    min-height: 300px;
    padding-bottom: 18px;
    text-align: left;
}

.ReportWelcome {
    min-height: 220px;
    padding-top: 80px;
    color: #001060;
    font-size: 26px;
    font-weight: bold;
    text-align: center;
}

.ReportHomeGrid {
    width: 760px;
    margin: -100px auto 0;
    text-align: center;
}

.ReportHomeGrid a {
    display: inline-block;
    width: 330px;
    min-height: 62px;
    margin: 6px;
    padding: 12px;
    border: 1px solid #6d6d6d;
    background: #f6eeaf;
    color: #001060;
    text-decoration: none;
    vertical-align: top;
}

.ReportHomeGrid strong,
.ReportHomeGrid span {
    display: block;
}

.ReportHomeGrid strong {
    margin-bottom: 7px;
    font-size: 18px;
}

.ReportHomeGrid span {
    color: #222;
    font-size: 13px;
}

.ReportFilterForm {
    width: 956px;
    margin-bottom: 10px;
    padding: 10px 11px;
    border: 1px solid #6d6d6d;
    background: #f6eeaf;
    color: #000;
    font-size: 14px;
    font-weight: bold;
}

.ReportFilterForm label {
    margin-right: 7px;
}

.ReportDateInput {
    width: 150px;
    height: 24px;
    margin-right: 2px;
    border: 1px solid #6d6d6d;
    background: #fff;
    font-family: Calibri;
}

.CalendarMark {
    margin-right: 10px;
    color: #001060;
    font-size: 18px;
    vertical-align: middle;
}

.ReportActionButton {
    min-width: 76px;
    height: 28px;
    margin-right: 5px;
    border: 1px solid #234312;
    background: #ffeddc;
    color: #06581f;
    font-weight: bold;
}

.ReportGrid {
    width: 980px;
}

.ReportGrid td,
.ReportGrid th {
    padding: 5px 4px;
}

.CouponDetailGrid {
    font-size: 12px;
}

.LedgerFilterForm label:not(:first-child) {
    margin-left: 14px;
}

.LedgerTitle {
    padding: 8px 0;
    color: #001060;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
}

.LedgerMeta {
    width: 958px;
    padding: 10px;
    border: 1px solid #6d6d6d;
    border-bottom: none;
    background: #f6eeaf;
    color: #000;
    font-size: 14px;
    line-height: 24px;
}

.OpeningBalance {
    width: 958px;
    padding: 8px 10px;
    border: 1px solid #6d6d6d;
    border-bottom: none;
    background: #d9cf94;
    font-size: 14px;
    text-align: right;
}

.OpeningBalance strong {
    display: inline-block;
    min-width: 90px;
    text-align: right;
}

.ChangePinForm {
    width: 520px;
    margin: 30px auto;
    padding: 24px;
    border: 1px solid #6d6d6d;
    background: #f6eeaf;
}

.ChangePinRow {
    margin-bottom: 14px;
}

.ChangePinRow label {
    display: inline-block;
    width: 170px;
    color: #000;
    font-size: 15px;
    font-weight: bold;
}

.ChangePinRow input {
    width: 220px;
    height: 24px;
    border: 1px solid #6d6d6d;
}

.ChangePinSubmit {
    padding-left: 174px;
}

.ReportSeoLine {
    padding: 7px 0 12px;
    color: #fff;
    font-size: 12px;
    text-align: center;
}

@media print {
    .ReportTopBrand,
    .ReportOriginal,
    #Header,
    .ReportHeading,
    .ReportNav,
    .ReportFilterForm,
    .BottomRow1,
    .ReportSeoLine {
        display: none !important;
    }
    body {
        background: #fff;
    }
    #MainDiv,
    .ReportContent,
    .ReportGrid {
        width: 100%;
    }
}

/* ================================================================
   Responsive upgrade for the Core PHP 8.4 home page
   Desktop dimensions remain identical; only narrow screens reflow.
   ================================================================ */
html {
    min-width: 0;
}

.CouponTableScroller {
    width: 980px;
    overflow: visible;
}

.CouponTableInner {
    width: 980px;
}

.MobileScrollHint {
    display: none;
}

@media screen and (max-width: 1000px) {
    html,
    body {
        width: 100%;
        min-width: 0 !important;
        overflow-x: hidden;
    }

    body {
        box-sizing: border-box;
        margin: 0;
        padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    }

    center,
    form,
    #MainDiv,
    #Header,
    #SubHeader,
    #Content,
    .BottomButtonHolder {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    #MainDiv {
        margin: 0 auto;
    }

    #Header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        height: auto;
        padding: 8px 2px;
    }

    #HeaderLeft,
    #HeaderRight {
        float: none;
        box-sizing: border-box;
        width: calc(50% - 5px);
        height: auto;
        min-height: 56px;
    }

    #HeaderLeft {
        font-size: 15px;
    }

    #HeaderRight {
        text-align: right;
    }

    .Rows {
        padding-bottom: 5px;
        overflow-wrap: anywhere;
    }

    .SiteHolder {
        line-height: 1.25;
    }

    #Clock,
    #Date {
        float: none;
        display: block;
        padding: 0;
        text-align: right;
    }

    #Clock ul {
        text-align: right;
    }

    #SubHeader {
        height: auto;
        margin-bottom: 8px;
    }

    #MenuHolder,
    #DrawTimeHolder {
        float: none;
        box-sizing: border-box;
        width: 100%;
    }

    #MenuHolder {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    .Menu {
        float: none;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: 100%;
        height: 39px;
        padding: 0 4px;
        background-size: 100% 100%;
        background-position: center;
        font-size: 14px;
        line-height: 1.05;
    }

    #DrawTimeHolder {
        margin-top: 8px;
        padding: 7px 8px;
        border: 1px solid rgba(0, 16, 96, 0.25);
        background: rgba(246, 238, 175, 0.45);
        border-radius: 4px;
    }

    .drawTop,
    .drawbottom {
        margin-top: 0;
        font-size: 14px;
        line-height: 1.35;
        text-align: center;
    }

    .drawbottom ul {
        text-align: center;
    }

    .StatusMessage,
    .ResultPanel {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    .CouponTableScroller {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        border: 1px solid #6d6d6d;
        border-radius: 4px;
        background: #feeeb3;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .CouponTableInner {
        width: 980px;
        min-width: 980px;
    }

    .CouponTableScroller .GridView,
    .CouponTableScroller .GridFooter {
        width: 980px;
        min-width: 980px;
    }

    .MobileScrollHint {
        display: block;
        padding: 5px 2px 7px;
        color: #001060;
        font-size: 12px;
        font-weight: bold;
        text-align: center;
    }

    .GrdTxtCss,
    .LoginTxtcss {
        font-size: 16px;
    }

    .GrdTxtCss {
        width: 42px;
        height: 30px;
    }

    #LoginHolder {
        display: grid;
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 8px 6px;
        box-sizing: border-box;
        width: 100%;
        height: auto;
        padding: 10px;
        border-top: 1px solid #6d6d6d;
    }

    .LoginHolderLabels,
    .LoginHolderControls,
    .LoginButtonHolder {
        float: none;
        box-sizing: border-box;
        width: auto;
        padding: 0;
    }

    .LoginHolderLabels {
        align-self: center;
        padding-left: 0;
        padding-right: 4px;
        text-align: right;
    }

    .LoginHolderControls {
        padding-left: 0;
        padding-right: 0;
    }

    .LoginTxtcss {
        box-sizing: border-box;
        width: 100%;
        height: 38px;
        padding: 5px 8px;
    }

    .LoginButtonHolder {
        grid-column: 1 / -1;
        text-align: center;
    }

    .LoginBtnCss {
        min-width: 120px;
        height: 38px;
        font-size: 15px;
    }

    #LoginHolder > .clear {
        display: none;
    }

    .BottomButtonHolder {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 12px 0;
    }

    .BottomButtonHolder input {
        box-sizing: border-box;
        width: 100% !important;
        min-width: 0;
        height: 42px;
        margin: 0;
        background-size: 100% 100%;
        background-position: center;
        font-size: 13px;
        white-space: normal;
    }

    #ContentPlaceHolder1_btnbuy,
    #ContentPlaceHolder1_btnreport {
        grid-column: 1 / -1;
    }

    .ResultPanel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ResultPanel table {
        min-width: 620px;
    }

    #MainDiv > div[style*="font-size: 25px"] {
        font-size: 20px !important;
        line-height: 1.2;
    }

    #MainDiv > div[style*="font-size: 20px"] {
        font-size: 17px !important;
    }

    #Scroll {
        padding: 6px 0;
    }

    .BottomRow1,
    .BottomRow2,
    .BottomText {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .BottomRow1 div[style*="font-size:23px"],
    .BottomRow1 span[style*="font-size:23px"] {
        font-size: 16px !important;
        line-height: 1.35;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding-left: max(6px, env(safe-area-inset-left));
        padding-right: max(6px, env(safe-area-inset-right));
    }

    #Header {
        gap: 6px;
    }

    #HeaderLeft,
    #HeaderRight {
        width: calc(50% - 3px);
        font-size: 13px;
    }

    .SiteHolder {
        font-size: 12px;
    }

    .Logout {
        width: 92px;
        background-size: 100% 100%;
    }

    .Menu {
        font-size: 12px;
    }

    .drawTop,
    .drawbottom {
        font-size: 13px;
    }

    #LoginHolder {
        grid-template-columns: 76px minmax(0, 1fr);
        padding: 9px 7px;
    }

    .BottomButtonHolder input {
        font-size: 12px;
    }
}

@media screen and (max-width: 1000px) {
    .GreenBtn {
        background-color: #238a39;
        border-radius: 5px;
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
    }

    .BrownBtn1,
    .BrownBtn2,
    .BrownBtn3 {
        background-color: #7d3f2f;
        border-radius: 5px;
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.22);
    }

    .Menu {
        background-color: #763248;
        border-radius: 3px;
    }

    .Menu.active {
        background-color: #f6eeaf;
    }
}
