/* Scoped original FESCO / PITC gbill-design.css - do not edit globally */
/* Modern Structural Reset */
        .fesco-bill-checker, .fesco-bill-checker *, .fesco-bill-checker *::before, .fesco-bill-checker *::after{
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        /* Enforce clean background canvas */
        .fesco-bill-checker, .fesco-bill-checker{
            width: 100%;
            background-color: #525659;
            font-family: 'Roboto', Arial, sans-serif;
            font-size: 10px;
            color: #050505;
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
        }

        /* --- FIXED CANVAS LAYOUT ENGINE --- */
        .fesco-bill-checker .canvas-viewport{
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: flex-start;
            padding: 10px 0;
            transform-origin: top center;
        }

        /* Fixed A4 Absolute Pixel Dimensions - Strictly Enforced */
        .fesco-bill-checker .a4-container{
            width: 794px !important;
            height: 1123px !important;
            min-width: 794px !important;
            max-width: 794px !important;
            min-height: 1123px !important;
            max-height: 1123px !important;
            background: #ffffff;
            padding: 14px 25px !important;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            overflow: hidden;
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: flex-start; /* Keeps footer pinned naturally without spill */
        }

        @media print {
            @page {
                size: A4 portrait;
                margin: 8mm;
            }

            .fesco-bill-checker, .fesco-bill-checker{
                width: 100% !important;
                height: auto !important;
                min-height: 0 !important;
                max-height: none !important;
                margin: 0 !important;
                padding: 0 !important;
                background: #ffffff !important;
                overflow: visible !important;
            }

            .fesco-bill-checker .canvas-viewport, .fesco-bill-checker .bill-canvas-viewport{
                width: 100% !important;
                height: auto !important;
                min-height: 0 !important;
                margin: 0 auto !important;
                margin-bottom: 0 !important;
                padding: 0 !important;
                box-sizing: border-box !important;
                display: block !important;
                overflow: visible !important;
                transform: none !important;
                page-break-after: avoid !important;
                break-after: avoid !important;
            }

            /* Use ~ (not +): #det-bill sits between normal and detection bill viewports */
            .fesco-bill-checker .bill-canvas-viewport ~ .bill-canvas-viewport, .fesco-bill-checker .bill-canvas-viewport--print-break{
                page-break-before: always !important;
                break-before: page !important;
            }

            .fesco-bill-checker .a4-container{
                width: 794px !important;
                height: auto !important;
                min-width: 794px !important;
                max-width: 794px !important;
                min-height: 0 !important;
                max-height: none !important;
                margin: 0 auto !important;
                padding: 10px 16px !important;
                box-sizing: border-box !important;
                box-shadow: none !important;
                overflow: hidden !important;
                page-break-inside: avoid !important;
                break-inside: avoid !important;
                page-break-after: avoid !important;
                break-after: avoid !important;
                transform: none !important;
                margin-bottom: 0 !important;
                print-color-adjust: exact !important;
                -webkit-print-color-adjust: exact !important;
            }

            .fesco-bill-checker #det-bill{
                display: none !important;
            }
        }

        /* --- HEADER STRUCTURE --- */
        .fesco-bill-checker .bill-header{
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            border-bottom: 2px solid #0c2356;
            padding-bottom: 4px;
            width: 100%;
            max-width: 100%;
            margin-bottom: 4px;
            box-sizing: border-box;
            gap: 4px;
        }

        .fesco-bill-checker .header-left{ 
            width: 168px; 
            flex-shrink: 0;
            overflow: visible;
        }
        .fesco-bill-checker .header-center{ 
            flex: 1 1 auto;
            min-width: 0;
            text-align: center; 
            overflow: visible;
        }
        .fesco-bill-checker .header-right{ 
            width: 228px;
            max-width: 228px;
            flex-shrink: 0;
            overflow-x: hidden;
            overflow-y: visible;
        }

        .fesco-bill-checker .header-qr-urdu-row{
            display: grid;
            grid-template-columns: 80px minmax(0, 1fr);
            column-gap: 4px;
            align-items: start;
            width: 100%;
        }

        .fesco-bill-checker .header-qr-urdu-row--text-only{
            grid-template-columns: minmax(0, 1fr);
        }

        .fesco-bill-checker .header-urdu-text{
            min-width: 0;
            overflow-x: hidden;
            overflow-y: visible;
        }

        .fesco-bill-checker .header-payment-urdu{
            display: block !important;
            box-sizing: border-box;
            width: 100%;
            max-width: 100%;
            font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;
            font-size: 12px !important;
            font-weight: 700;
            line-height: 2 !important;
            padding: 3px 0 4px !important;
            margin: 0;
            text-align: right;
            direction: rtl;
            white-space: normal;
            overflow: visible !important;
            overflow-wrap: break-word;
            word-break: break-word;
        }

        .fesco-bill-checker .header-payment-urdu strong{
            font-family: "Roboto", Arial, sans-serif;
            font-size: 11px;
            font-weight: 800;
            direction: ltr;
            unicode-bidi: isolate;
        }

        .fesco-bill-checker .ellipsis-protect{
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Master Grid Layout */
        .fesco-bill-checker .main-dashboard-grid{
            display: grid;
            grid-template-columns: minmax(0, 514px) 220px;
            width: 100%;
            gap: 5px;
            margin-bottom: 4px;
            overflow: visible;
            justify-content: space-between;
        }

        .fesco-bill-checker .main-dashboard-grid > section{
            min-width: 0;
        }

        .fesco-bill-checker .main-dashboard-grid > section:last-child{
            width: 220px;
            max-width: 220px;
            justify-self: end;
        }

        .fesco-bill-checker .inner-stack{
            display: flex;
            flex-direction: column;
            gap: 3px;
            width: 100%;
            overflow: visible;
        }

        /* --- Components --- */
        .fesco-bill-checker .header-brand-mark{
            display: flex;
            align-items: center;
            margin-bottom: 2px;
            overflow: visible;
        }

        .fesco-bill-checker .header-brand-mark--split{
            gap: 0;
            align-items: center;
        }

        .fesco-bill-checker .header-brand-mark--split .header-brand-text{
            font-family: 'Roboto', Arial, sans-serif;
            font-size: 37px;
            font-weight: 400;
            line-height: 0.9;
            letter-spacing: -1px;
            white-space: nowrap;
        }

        .fesco-bill-checker .header-brand-mark--split .header-brand-emblem{
            width: 34px;
            height: 34px;
            max-width: 34px;
            max-height: 34px;
            object-fit: contain;
            flex-shrink: 0;
            margin-left: 2px;
            align-self: center;
        }

        .fesco-bill-checker .header-brand-mark--logo-only .header-brand-logo{
            width: auto;
            max-width: 120px;
            height: 38px;
            object-fit: contain;
            display: block;
        }

        .fesco-bill-checker .component-card{
            border: 1.2px solid #0c2356;
            border-radius: 4px;
            overflow: visible;
            background: #ffffff;
            width: 100%;
        }

        .fesco-bill-checker .card-header{
            padding: 2px 6px;
            font-weight: 700;
            font-size: 10px;
            background-color: #0c2356;
            color: #ffffff;
            white-space: nowrap;
        }

        .fesco-bill-checker .grid-4col{
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            padding: 3px 3px 3px;
            width: 100%;
            overflow: visible;
        }

        .fesco-bill-checker .grid-2col{
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 3px;
            padding-bottom: 1px;
            width: 100%;
            overflow: visible;
        }

        .fesco-bill-checker .grid-col-cell{
            display: flex;
            flex-direction: column;
            padding: 0 4px 2px;
            overflow: visible;
        }

        .fesco-bill-checker .border-divider-left{
            border-left: 1px solid #e2e8f0;
        }

        .fesco-bill-checker .label-row{
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1px;
            width: 100%;
        }

        .fesco-bill-checker .en-lbl{
            font-size: 8px;
            font-weight: 700;
            color: #0e1e38;
            letter-spacing: -0.2px;
            white-space: nowrap;
        }

        .fesco-bill-checker .ur-lbl{
            font-family: 'Noto Nastaliq Urdu', serif;
            font-size: 6px;
            font-weight: 400;
            color: #2b2b2b;
            direction: rtl;
            line-height: 1.85;
            padding: 2px 0 3px;
            display: inline-block;
            overflow: visible;
        }

        /* Nastaliq/Urdu glyphs need extra ascender/descender space.
           This prevents top/bottom clipping caused by tight inline line-heights. */
        .fesco-bill-checker .ur-lbl[style]{
            line-height: 1.75 !important;
            padding-top: 2px !important;
            padding-bottom: 3px !important;
            overflow: visible !important;
        }

        .fesco-bill-checker .label-row{
            min-height: 20px;
            overflow: visible;
        }

        .fesco-bill-checker .grid-col-cell{
            overflow: visible;
        }

        .fesco-bill-checker .right-section-cell, .fesco-bill-checker .right-grid-cell, .fesco-bill-checker .matrix-row, .fesco-bill-checker .history-footer-cell, .fesco-bill-checker .slip-matrix-cell, .fesco-bill-checker .slip-id-box{
            overflow: visible;
        }

        .fesco-bill-checker .slip-matrix-cell .ur-lbl, .fesco-bill-checker .slip-id-box .ur-lbl{
            overflow: visible !important;
        }

        .fesco-bill-checker .slip-id-box .ur-lbl{
            line-height: 1.65 !important;
            padding-top: 2px !important;
            padding-bottom: 3px !important;
        }

        .fesco-bill-checker .header-right .ur-lbl:not(.header-payment-urdu){
            line-height: 1.65 !important;
        }

        .fesco-bill-checker .right-section-cell .ur-lbl, .fesco-bill-checker .right-grid-cell .ur-lbl, .fesco-bill-checker .label-row .ur-lbl{
            font-size: 6px !important;
        }

        .fesco-bill-checker .val-space{
            background: #ffffff;
            height: 14px;
            border-bottom: 1px solid #cbd5e1;
            width: 100%;
        }

        .fesco-bill-checker .meter-info-footer{
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            padding: 2px 8px 3px;
            font-weight: 700;
            font-size: 8px;
            color: #050505;
            background: #ffffff;
            white-space: nowrap;
            overflow: hidden;
        }

        .fesco-bill-checker .meter-info-footer span{
            min-width: 0;
        }

        .fesco-bill-checker .pro-rata-message{
            text-align: right;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* METER INFO — right-panel style grid lines */
        .fesco-bill-checker .component-card.meter-info-card--gbn{
            overflow: hidden;
        }

        .fesco-bill-checker .meter-info-card--gbn .meter-info-grid{
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            background: linear-gradient(180deg, #eef5fc 0%, #e3edf7 100%);
            border-top: 1px solid #cbd5e1;
        }

        .fesco-bill-checker .meter-info-card--gbn .meter-info-cell{
            padding: 4px;
            border-right: 1px solid #cbd5e1;
        }

        .fesco-bill-checker .meter-info-card--gbn .meter-info-cell:last-child{
            border-right: none;
        }

        .fesco-bill-checker .meter-info-card--gbn .label-row{
            justify-content: space-between;
            align-items: center;
            gap: 2px;
            width: 100%;
            margin-bottom: 1px;
            min-height: 0;
        }

        .fesco-bill-checker .meter-info-card--gbn .en-lbl{
            flex-shrink: 0;
        }

        .fesco-bill-checker .meter-info-card--gbn .ur-lbl{
            flex-shrink: 1;
            text-align: right;
            line-height: 1.2;
            padding: 0;
        }

        .fesco-bill-checker .meter-info-card--gbn .val-space{
            height: auto;
            min-height: 14px;
            border-bottom: none;
            background: transparent;
            text-align: center;
            font-weight: 700;
            font-size: 9.5px;
            color: #000000;
        }

        .fesco-bill-checker .meter-info-card--gbn .meter-info-footer--panel{
            border-top: 1px solid #cbd5e1;
            background: linear-gradient(180deg, #eef5fc 0%, #e3edf7 100%);
            justify-content: center;
        }

        /* Charges QR — vertical English hint (matches ibill) */
        .fesco-bill-checker .qr-charges-card--gbn{
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            padding: 3px 2px 2px;
            text-align: center;
            background: #ffffff;
        }

        .fesco-bill-checker .qr-charges-card--gbn .qr-charges-qr-row{
            display: grid;
            grid-template-columns: 1fr auto 1fr;
            align-items: center;
            width: 100%;
        }

        .fesco-bill-checker .qr-charges-card--gbn .qr-charges-trigger{
            grid-column: 2;
            justify-self: center;
            margin: 0;
            padding: 1px;
        }

        .fesco-bill-checker .qr-charges-card--gbn .qr-charges-host, .fesco-bill-checker .qr-charges-card--gbn .qr-charges-host canvas, .fesco-bill-checker .qr-charges-card--gbn .bill-qr-canvas--charges{
            width: 150px !important;
            height: 150px !important;
            max-width: 150px !important;
            max-height: 150px !important;
        }

        .fesco-bill-checker .qr-charges-card--gbn .qr-charges-urdu{
            font-size: 7px;
            font-weight: 700;
            color: #000000;
            display: block;
            width: 100%;
            text-align: center;
            line-height: 1.2 !important;
            margin-top: 6px;
            padding: 0 !important;
        }

        .fesco-bill-checker .qr-charges-card--gbn .qr-charges-tap-hint--vertical{
            grid-column: 3;
            justify-self: end;
            flex: 0 0 auto;
            align-self: stretch;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 0;
            padding: 2px 2px 2px 0;
            writing-mode: vertical-rl;
            text-orientation: mixed;
            white-space: nowrap;
            font-size: 6px;
            font-weight: 600;
            color: #5a6b82;
            line-height: 1.2;
        }

        .fesco-bill-checker .consumer-addr-meta{
            display: block;
            width: 100%;
            margin-top: 1px;
            padding-top: 1px;
            border-top: 1px dashed #e2e8f0;
            font-size: 7px;
            font-weight: 600;
            color: #334155;
            line-height: 1.15;
        }

        .fesco-bill-checker .consumer-addr-meta--zone{
            font-weight: 700;
            color: #0c2356;
        }

        /* Consumer detail — compact borders (matches ibill treatment) */
        .fesco-bill-checker .component-card.consumer-detail-card--gbn{
            border-radius: 4px;
            border: 1.2px solid #0c2356;
            overflow: hidden;
        }

        .fesco-bill-checker .component-card.consumer-detail-card--gbn .card-header{
            padding: 2px 6px;
            font-size: 10px;
            font-weight: 700;
        }

        .fesco-bill-checker .component-card.consumer-detail-card--gbn .grid-4col{
            padding: 3px;
        }

        .fesco-bill-checker .component-card.consumer-detail-card--gbn .grid-col-cell{
            padding: 0 4px 2px;
        }

        .fesco-bill-checker .component-card.consumer-detail-card--gbn .label-row{
            min-height: 14px;
            margin-bottom: 0;
            align-items: flex-start;
        }

        .fesco-bill-checker .component-card.consumer-detail-card--gbn .grid-col-cell .label-row:not(:first-child){
            border-top: 1px solid #e2e8f0;
            padding-top: 2px;
        }

        .fesco-bill-checker .component-card.consumer-detail-card--gbn .en-lbl{
            font-size: 8px;
            font-weight: 700;
            letter-spacing: -0.2px;
        }

        .fesco-bill-checker .component-card.consumer-detail-card--gbn .ur-lbl{
            font-size: 6px;
            line-height: 1.75;
            padding: 1px 0 2px;
        }

        .fesco-bill-checker .component-card.consumer-detail-card--gbn .val-space{
            min-height: 12px;
            height: auto;
            font-size: 8px;
            font-weight: 700;
            border-bottom: none;
            line-height: 1.25;
            background: #ffffff;
            text-align: center;
            overflow: visible;
            text-overflow: ellipsis;
            white-space: nowrap;
            padding: 1px 2px 2px;
        }

        .fesco-bill-checker .component-card.consumer-detail-card--gbn .val-space.val-space--address{
            height: auto;
            min-height: 12px;
            line-height: 1.2;
            white-space: normal;
            overflow: visible;
            text-overflow: clip;
            text-align: left;
            word-break: break-word;
            overflow-wrap: anywhere;
            padding: 1px 2px 2px;
            display: block;
        }

        .fesco-bill-checker .consumer-detail-extra{
            border-top: 1px solid #e2e8f0;
            background: #ffffff;
        }

        .fesco-bill-checker .consumer-extra-grid{
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            padding: 2px 3px 2px;
            width: 100%;
            row-gap: 1px;
        }

        .fesco-bill-checker .consumer-extra-grid > .grid-col-cell{
            border-left: 1px solid #e2e8f0;
            padding: 1px 4px;
            min-height: 0;
        }

        .fesco-bill-checker .consumer-extra-grid > .grid-col-cell:nth-child(4n+1){
            border-left: none;
        }

        .fesco-bill-checker .consumer-extra-cell--wide{
            grid-column: span 2;
        }

        .fesco-bill-checker .consumer-extra-line{
            display: flex;
            align-items: baseline;
            gap: 4px;
            min-height: 12px;
            line-height: 1.15;
        }

        .fesco-bill-checker .consumer-extra-tag{
            flex-shrink: 0;
            font-size: 7px;
            line-height: 1.15;
        }

        .fesco-bill-checker .consumer-extra-tag::after{
            content: ":";
            margin-left: 1px;
        }

        .fesco-bill-checker .consumer-extra-text{
            font-size: 7.5px;
            font-weight: 700;
            color: #050505;
            min-width: 0;
        }

        .fesco-bill-checker .consumer-extra-text--wrap{
            white-space: normal;
            line-height: 1.2;
        }

        .fesco-bill-checker .consumer-extra-line--alert, .fesco-bill-checker .consumer-extra-line--alert .consumer-extra-link, .fesco-bill-checker .consumer-extra-line--alert .consumer-extra-text{
            color: #d32f2f;
            font-weight: 700;
            font-size: 7.5px;
        }

        .fesco-bill-checker .consumer-extra-grid .consumer-extra-link{
            color: inherit;
            text-decoration: none;
        }

        .fesco-bill-checker .consumer-extra-grid .consumer-extra-link:hover{
            text-decoration: underline;
        }

        .fesco-bill-checker .brand-green{ color: #1b753a; }
        .fesco-bill-checker .brand-blue{ color: #0c2356; }
        .fesco-bill-checker .text-danger{ color: #d32f2f; }
        .fesco-bill-checker .bg-panel-light{ background-color: #f1f4fa; }

        /* --- RIGHT PANEL STYLES --- */
        .fesco-bill-checker .right-panel-box{
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            background: linear-gradient(180deg, #eef5fc 0%, #e3edf7 100%);
            overflow: visible;
            width: 100%;
            display: flex;
            flex-direction: column;
        }

        .fesco-bill-checker .right-section-cell{
            padding: 4px 6px;
            text-align: center;
            border-bottom: 1px solid #cbd5e1;
        }
        .fesco-bill-checker .right-section-cell:last-child{
            border-bottom: none;
        }

        .fesco-bill-checker .right-main-val{
            font-size: 14px;
            font-weight: 800;
            color: #000000;
            margin-top: 1px;
        }

        .fesco-bill-checker .right-grid-2col{
            display: grid;
            grid-template-columns: 1fr 1fr;
            border-bottom: 1px solid #cbd5e1;
        }

        .fesco-bill-checker .right-grid-cell{
            padding: 4px;
            text-align: center;
        }
        .fesco-bill-checker .right-grid-cell:first-child{
            border-right: 1px solid #cbd5e1;
        }

        .fesco-bill-checker .payable-card{
            background: #eef1f6;
            border-radius: 6px;
            padding: 5px 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
            border: 1px solid #d1d5db;
        }

        .fesco-bill-checker .payable-card-title{
            display: block;
            font-size: 8px;
            font-weight: 800;
            color: #0c2356;
            line-height: 1.05;
        }

        .fesco-bill-checker .payable-card-urdu{
            display: block;
            font-size: 6.5px;
            color: #475569;
            margin-top: 0;
            line-height: 1.25 !important;
            padding: 0 !important;
        }

        .fesco-bill-checker .payable-card-amount{
            font-size: 14px;
            font-weight: 800;
            color: #000000;
            text-align: right;
            padding-right: 2px;
            line-height: 1.02;
            flex-shrink: 0;
        }

        .fesco-bill-checker .payable-card-credit-note{
            display: block;
            font-size: 8px;
            font-weight: 700;
            margin-top: 1px;
        }

        .fesco-bill-checker .payable-card--split{
            display: grid;
            grid-template-columns: 1fr 1fr;
            align-items: stretch;
            padding: 0;
            gap: 0;
        }

        .fesco-bill-checker .payable-card-main{
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 2px;
            padding: 3px 6px;
            border-right: 1px solid #d1d5db;
        }

        .fesco-bill-checker .payable-card--split .payable-card-amount{
            text-align: left;
            padding-right: 0;
            margin-top: 1px;
        }

        .fesco-bill-checker .payable-card-paid{
            position: relative;
            min-height: 52px;
            padding: 3px 52px 3px 5px;
            overflow: hidden;
        }

        .fesco-bill-checker .payable-card-paid-text{
            position: relative;
            z-index: 1;
            display: flex;
            flex-direction: column;
            gap: 3px;
            text-align: left;
            color: #000000;
        }

        .fesco-bill-checker .payable-card-paid-row{
            display: flex;
            flex-direction: column;
            gap: 1px;
        }

        .fesco-bill-checker .payable-card-paid-label{
            font-size: 6px;
            font-weight: 700;
            line-height: 1.2;
            text-transform: uppercase;
            letter-spacing: 0.02em;
        }

        .fesco-bill-checker .payable-card-paid-val{
            font-size: 8px;
            font-weight: 700;
            line-height: 1.2;
        }

        .fesco-bill-checker .payable-card-paid-stamp{
            position: absolute;
            top: 50%;
            right: 2px;
            width: 56px;
            height: 56px;
            transform: translateY(-50%);
            background-repeat: no-repeat;
            background-position: center;
            background-size: contain;
            pointer-events: none;
            z-index: 2;
        }

        /* GBN right sidebar — compact bill dates, payable, LP surcharge */
        .fesco-bill-checker .inner-stack.right-sidebar--gbn{
            gap: 3px;
            align-self: start;
        }

        .fesco-bill-checker .main-dashboard-grid > section.right-sidebar--gbn{
            align-self: start;
        }

        .fesco-bill-checker .right-sidebar--gbn .right-panel-box{
            overflow: hidden;
        }

        .fesco-bill-checker .right-sidebar--gbn .right-section-cell{
            padding: 2px 4px;
            background: transparent;
        }

        .fesco-bill-checker .right-sidebar--gbn .right-panel-label-row .ur-lbl{
            font-size: 6.5px;
            line-height: 1.25 !important;
            padding: 0 !important;
        }

        .fesco-bill-checker .right-sidebar--gbn .right-section-cell--due{
            background: transparent;
        }

        .fesco-bill-checker .right-sidebar--gbn .right-panel-label-row{
            display: flex;
            align-items: flex-start;
            justify-content: center;
            gap: 4px;
        }

        .fesco-bill-checker .right-sidebar--gbn .right-panel-en{
            font-size: 8.5px;
            font-weight: 800;
            color: #0c2356;
            line-height: 1.05;
        }

        .fesco-bill-checker .right-sidebar--gbn .right-panel-en--block{
            display: block;
            font-size: 7px;
            font-weight: 700;
            color: #0e1e38;
        }

        .fesco-bill-checker .right-sidebar--gbn .right-panel-en--due{
            color: #050505;
        }

        .fesco-bill-checker .right-sidebar--gbn .right-panel-pro-rata{
            color: #2563eb;
            font-weight: 700;
        }

        .fesco-bill-checker .right-sidebar--gbn .right-panel-ur--block{
            display: block;
            margin-bottom: 0;
            font-size: 6.5px;
            line-height: 1.35 !important;
            padding: 0 !important;
        }

        .fesco-bill-checker .right-sidebar--gbn .right-main-val{
            font-size: 12px;
            margin-top: 0;
            line-height: 1.05;
        }

        .fesco-bill-checker .right-sidebar--gbn .right-main-val--due{
            font-size: 11px;
        }

        .fesco-bill-checker .right-sidebar--gbn .right-panel-date-val{
            display: block;
            font-size: 8.5px;
            font-weight: 700;
            color: #000000;
            line-height: 1.05;
        }

        .fesco-bill-checker .right-sidebar--gbn .right-grid-cell{
            padding: 2px 3px;
        }

        .fesco-bill-checker .right-sidebar--gbn .payable-card{
            border-radius: 4px;
            padding: 3px 6px;
            gap: 4px;
            box-shadow: none;
        }

        .fesco-bill-checker .right-sidebar--gbn .lp-surcharge-card{
            background: #f1f6f7;
            border: 1px solid #cbd5e1;
            border-radius: 4px;
            overflow: hidden;
            padding: 0;
        }

        .fesco-bill-checker .right-sidebar--gbn .lp-surcharge-grid{
            display: grid;
            grid-template-columns: 1fr 1.1fr 1.1fr;
            align-items: stretch;
            min-height: 58px;
        }

        .fesco-bill-checker .right-sidebar--gbn .lp-surcharge-label-col{
            display: grid;
            grid-template-rows: 1fr 1fr;
            align-items: stretch;
            padding: 0;
            border-right: 1px solid #cbd5e1;
        }

        .fesco-bill-checker .right-sidebar--gbn .lp-surcharge-label-col > .lp-surcharge-label-block{
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 3px 4px;
        }

        .fesco-bill-checker .right-sidebar--gbn .lp-surcharge-label-col > .lp-surcharge-label-block:first-child{
            grid-row: 1;
        }

        .fesco-bill-checker .right-sidebar--gbn .lp-surcharge-label-col > .lp-surcharge-label-block:last-child{
            grid-row: 2;
            border-top: 1px solid #cbd5e1;
        }

        .fesco-bill-checker .right-sidebar--gbn .lp-surcharge-line{
            display: block;
            font-size: 8px;
            font-weight: 800;
            color: #000000;
            line-height: 1.05;
        }

        .fesco-bill-checker .right-sidebar--gbn .lp-surcharge-urdu{
            display: block;
            font-size: 6.5px;
            margin-top: 0;
            line-height: 1.25 !important;
            padding: 0 !important;
        }

        .fesco-bill-checker .right-sidebar--gbn .lp-surcharge-label-divider{
            display: none;
        }

        .fesco-bill-checker .right-sidebar--gbn .lp-surcharge-data-col{
            display: grid;
            grid-template-rows: 1fr 1fr;
            align-items: stretch;
            text-align: center;
            padding: 0;
            border-right: 1px solid #cbd5e1;
        }

        .fesco-bill-checker .right-sidebar--gbn .lp-surcharge-top-val{
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: 800;
            padding: 3px 2px 2px;
        }

        .fesco-bill-checker .right-sidebar--gbn .lp-surcharge-bottom-block{
            display: flex;
            flex-direction: column;
            justify-content: center;
            border-top: 1px solid #cbd5e1;
            margin-top: 0;
            padding: 2px 2px 3px;
        }

        .fesco-bill-checker .right-sidebar--gbn .lp-surcharge-data-col:last-child{
            border-right: none;
        }

        .fesco-bill-checker .right-sidebar--gbn .lp-surcharge-data-col--wide{
            grid-column: 2 / 4;
            border-right: none;
        }

        .fesco-bill-checker .right-sidebar--gbn .lp-surcharge-data-col--wide .lp-surcharge-top-val, .fesco-bill-checker .right-sidebar--gbn .lp-surcharge-data-col--wide .lp-surcharge-bottom-block{
            justify-content: center;
        }

        .fesco-bill-checker .right-sidebar--gbn .lp-surcharge-data-col--wide .lp-surcharge-bottom-block{
            margin-top: 0;
            padding-top: 2px;
        }

        .fesco-bill-checker .right-sidebar--gbn .lp-surcharge-period{
            font-size: 7px;
            font-weight: 600;
            white-space: nowrap;
            margin-bottom: 0;
        }

        .fesco-bill-checker .right-sidebar--gbn .lp-surcharge-bottom-val{
            font-size: 10px;
            font-weight: 800;
        }

        /* --- BILL CHARGES BREAKDOWN (crystal-style compact) --- */
        .fesco-bill-checker .charges-breakdown-card .charges-breakdown-rs{
            font-size: 8.5px;
            font-weight: normal;
        }

        .fesco-bill-checker .charges-breakdown-grid{
            display: grid;
            grid-template-columns: 1fr 1fr;
            width: 100%;
            align-items: start;
            border-left: 1px solid #e5e7eb;
            border-right: 1px solid #e5e7eb;
            border-bottom: 1px solid #cbd5e1;
        }

        .fesco-bill-checker .charges-breakdown-col--left{
            border-right: 1px solid #e5e7eb;
        }

        .fesco-bill-checker .charges-bd-row{
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 4px;
            min-height: 19px;
            padding: 0 6px;
            border-bottom: 1px solid #e5e7eb;
            background: #ffffff;
            overflow: visible;
        }

        .fesco-bill-checker .charges-breakdown-col--left .charges-bd-row:nth-child(odd){
            background: #eef5fc;
        }

        .fesco-bill-checker .charges-breakdown-col--right .charges-bd-row{
            background: #f7f6f3;
        }

        .fesco-bill-checker .charges-breakdown-col--right .charges-bd-row:nth-child(even){
            background: #f2f0ec;
        }

        .fesco-bill-checker .charges-bd-label{
            display: flex;
            align-items: center;
            flex: 1;
            min-width: 0;
            gap: 3px;
            overflow: visible;
        }

        .fesco-bill-checker .charges-bd-en{
            font-size: 8px;
            font-weight: 500;
            color: #050505;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .fesco-bill-checker .charges-bd-en--strong{
            font-weight: 800;
        }

        .fesco-bill-checker .charges-bd-pct{
            font-size: 8px;
            font-weight: 800;
            color: #050505;
            white-space: nowrap;
            flex-shrink: 0;
        }

        .fesco-bill-checker .charges-bd-ur{
            font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;
            font-size: 6px;
            font-weight: 400;
            line-height: 1.1;
            color: #050505;
            direction: rtl;
            flex: 1;
            text-align: right;
            white-space: nowrap;
            overflow: visible;
            padding: 0;
        }

        .fesco-bill-checker .charges-bd-val{
            font-size: 8.5px;
            font-weight: 500;
            color: #050505;
            text-align: right;
            white-space: nowrap;
            flex-shrink: 0;
            min-width: 32px;
        }

        .fesco-bill-checker .charges-bd-val--strong{
            font-weight: 800;
        }

        .fesco-bill-checker .charges-bd-row--current{
            background: #e8ecf2 !important;
        }

        .fesco-bill-checker .charges-bd-row--current .charges-bd-en, .fesco-bill-checker .charges-bd-row--current .charges-bd-val{
            font-weight: 800;
        }

        .fesco-bill-checker .charges-bd-row--spacer{
            grid-column: 1 / -1;
            min-height: 19px;
            padding: 0;
            background: #f2f2f2 !important;
            border-bottom: 1px solid #e5e7eb;
        }

        .fesco-bill-checker .charges-bd-row--spacer-alt{
            background: #ffffff !important;
        }

        .fesco-bill-checker .charges-bd-row--net-benefit{
            display: contents;
        }

        .fesco-bill-checker .charges-bd-net-benefit-gap{
            grid-column: 1;
            min-height: 19px;
            padding: 0;
            background: #f2f2f2 !important;
            border-bottom: 1px solid #e5e7eb;
        }

        .fesco-bill-checker .charges-bd-net-benefit-row{
            grid-column: 2;
            min-height: 19px;
            padding: 0 6px;
            background: #f7f6f3 !important;
            border-bottom: 1px solid #e5e7eb;
        }

        .fesco-bill-checker .charges-bd-net-benefit-row .charges-bd-label{
            gap: 5px;
            flex-wrap: nowrap;
            overflow: hidden;
        }

        .fesco-bill-checker .charges-nm-formula-badge{
            display: inline-flex;
            align-items: center;
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 5.5px;
            font-weight: 600;
            letter-spacing: 0.01em;
            color: #475569;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            white-space: nowrap;
            flex-shrink: 1;
            min-width: 0;
            line-height: 1.25;
            -webkit-font-smoothing: antialiased;
        }

        .fesco-bill-checker .charges-bd-row--grand{
            grid-column: 1 / -1;
            width: 100%;
            background: #f5f3ea !important;
            border-bottom: none;
            min-height: 21px;
        }

        .fesco-bill-checker .charges-bd-row--grand .charges-bd-en{
            font-size: 9.5px;
            font-weight: 800;
        }

        .fesco-bill-checker .charges-bd-row--grand .charges-bd-val{
            font-size: 10px;
            font-weight: 800;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi{
            background: linear-gradient(180deg, #fff7cc 0%, #fffef5 100%);
            border: 1px solid #e8d48a;
            border-radius: 8px;
            padding: 3px 6px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
            overflow: visible;
            min-height: 0;
            box-sizing: border-box;
            margin: 2px 0;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__grid{
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
            gap: 2px 0;
            align-items: start;
            width: 100%;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__cell{
            min-width: 0;
            padding: 1px 6px 2px;
            border-right: 1px solid #e8d48a;
            overflow: visible;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__cell:nth-child(3n){
            border-right: none;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__cell--ntn, .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__cell--tracking{
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: flex-start;
            gap: 2px;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__cell--full{
            grid-column: 1 / -1;
            border-right: none;
            padding: 2px 6px 3px;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-message-item{
            font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;
            font-size: 8px;
            font-weight: 700;
            line-height: 1.35;
            text-align: right;
            color: #050505;
            overflow: visible;
            overflow-wrap: break-word;
            word-break: break-word;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__ntn-label{
            font-size: 8px;
            font-weight: 800;
            color: #050505;
            line-height: 1.1;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__ntn-value{
            font-size: 9px;
            font-weight: 800;
            color: #050505;
            line-height: 1.15;
            word-break: break-word;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__cell--fpa{
            grid-column: 1 / -1;
            border-right: none;
            padding: 2px 6px 3px;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__fpa-body{
            font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;
            font-size: 8px;
            font-weight: 700;
            line-height: 1.35;
            text-align: right;
            color: #050505;
            overflow: visible;
            overflow-wrap: break-word;
            word-break: break-word;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__fpa-body strong{
            font-family: "Roboto", Arial, sans-serif;
            font-size: 9px;
            font-weight: 800;
            direction: ltr;
            unicode-bidi: isolate;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__dcn-footer{
            display: block;
            margin-top: 2px;
            padding-top: 2px;
            border-top: 1px solid #e8d48a;
            font-family: "Roboto", Arial, sans-serif;
            font-size: 8px;
            font-weight: 700;
            line-height: 1.25;
            direction: ltr;
            text-align: left;
            color: #050505;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__cell--fpa-dcn-row{
            display: flex;
            flex-direction: row;
            align-items: flex-start;
            gap: 6px;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__cell--fpa-dcn-row .ibn-bill-messages__fpa-body{
            flex: 1 1 auto;
            min-width: 0;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__dcn-inline{
            flex: 0 0 auto;
            max-width: 38%;
            min-width: 0;
            margin-top: 0;
            padding-top: 0;
            border-top: none;
            border-left: 1px solid #e8d48a;
            padding-left: 6px;
            overflow-wrap: break-word;
            word-break: break-word;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__section--primary{
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__section--primary .ibn-bill-messages__cell{
            border-right: none;
            padding: 2px 6px 3px;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__cell--fpa + .ibn-bill-messages__subsidy-block{
            border-top: 1px solid #e8d48a;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__subsidy-block{
            display: flex;
            align-items: flex-start;
            width: 100%;
            min-width: 0;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__subsidy-text{
            flex: 1 1 auto;
            min-width: 0;
            padding: 3px 6px;
            direction: rtl;
            text-align: right;
            font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;
            font-size: 8px;
            font-weight: 700;
            line-height: 1.35;
            color: #050505;
            overflow: visible;
            overflow-wrap: break-word;
            word-break: break-word;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__subsidy-text strong{
            font-family: "Roboto", Arial, sans-serif;
            font-size: 9px;
            font-weight: 800;
            direction: ltr;
            unicode-bidi: isolate;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__subsidy-qr{
            flex: 0 0 auto;
            width: max-content;
            padding: 2px 3px 2px 4px;
            border-left: 1px solid #e8d48a;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            align-self: flex-start;
            line-height: 0;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .subsidy-qr-trigger, .fesco-bill-checker .ibn-bill-messages--mdi .subsidy-qr-host{
            width: 64px;
            height: 64px;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .bill-qr-canvas--subsidy{
            width: 64px !important;
            height: 64px !important;
            max-width: 64px;
            max-height: 64px;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__section--notices{
            padding-top: 0;
            margin-top: 0;
        }

        .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__section--primary + .ibn-bill-messages__section--notices{
            border-top: 1px solid #e8d48a;
            padding-top: 2px;
            margin-top: 1px;
        }

        .fesco-bill-checker .bill-messages-banner{
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) max-content;
            align-items: stretch;
            width: 100%;
            margin: 2px 0;
            box-sizing: border-box;
            border: 1px solid #000000;
            overflow: visible;
            background: #ffffff;
        }

        .fesco-bill-checker .bill-messages-banner--empty{
            min-height: 56px;
            background: linear-gradient(180deg, #f4efc8 0%, #f0e8bd 45%, #ece4b7 100%);
            border: 1px solid #d8cf9f;
            border-radius: 8px;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
        }

        .fesco-bill-checker .bill-messages-fpa{
            grid-column: 1;
            display: block;
            min-width: 0;
            min-height: 100%;
            padding: 0;
            background: #ffffff;
            border-right: 1px solid #000000;
            color: #000000;
            overflow: visible;
        }

        .fesco-bill-checker .bill-messages-fpa__body{
            display: block;
            min-width: 0;
            padding: 7px 8px;
            font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;
            font-size: 10px;
            font-weight: 700;
            line-height: 1.6;
            text-align: right;
            direction: rtl;
            overflow: visible;
            overflow-wrap: break-word;
            word-break: break-word;
        }

        .fesco-bill-checker .bill-messages-fpa__body strong{
            font-family: "Roboto", Arial, sans-serif;
            font-size: 11px;
            font-weight: 800;
            direction: ltr;
            unicode-bidi: isolate;
        }

        .fesco-bill-checker .bill-messages-fpa__dcn-footer{
            display: block;
            padding: 4px 6px;
            border-top: 1px solid #d8cf9f;
            background: #fff8e1;
            font-family: "Roboto", Arial, sans-serif;
            font-size: 8px;
            font-weight: 700;
            line-height: 1.25;
            direction: ltr;
            text-align: left;
            color: #000000;
        }

        .fesco-bill-checker .bill-messages-fpa:only-child{
            grid-column: 1 / -1;
            border-right: none;
        }

        .fesco-bill-checker .bill-messages-subsidy-block{
            display: contents;
        }

        .fesco-bill-checker .bill-messages-subsidy-block:only-child{
            display: flex;
            grid-column: 1 / -1;
            align-items: stretch;
            width: 100%;
            min-width: 0;
        }

        .fesco-bill-checker .bill-messages-subsidy-text{
            grid-column: 2;
            flex: 1 1 auto;
            min-width: 0;
            padding: 5px 8px;
            background: linear-gradient(180deg, #f4efc8 0%, #f0e8bd 45%, #ece4b7 100%);
            border-right: 1px solid #000000;
            direction: rtl;
            text-align: right;
            font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;
            font-size: 10px;
            line-height: 1.25;
            color: #000000;
        }

        .fesco-bill-checker .bill-messages-subsidy-text strong{
            font-family: "Roboto", Arial, sans-serif;
            font-size: 11px;
            font-weight: 800;
            direction: ltr;
            unicode-bidi: isolate;
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        .fesco-bill-checker .bill-messages-subsidy-qr{
            grid-column: 3;
            flex: 0 0 auto;
            width: max-content;
            padding: 0;
            background: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            align-self: center;
            line-height: 0;
        }

        .fesco-bill-checker .subsidy-qr-trigger{
            display: block;
            width: 80px;
            height: 80px;
            padding: 0;
            margin: 0;
            border: none;
            background: #ffffff;
            cursor: pointer;
            line-height: 0;
        }

        .fesco-bill-checker .subsidy-qr-trigger:hover{
            box-shadow: 0 0 0 1px #000000;
        }

        .fesco-bill-checker .subsidy-qr-host{
            width: 80px;
            height: 80px;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            line-height: 0;
        }

        .fesco-bill-checker .bill-qr-canvas--subsidy{
            width: 80px !important;
            height: 80px !important;
            max-width: 80px;
            max-height: 80px;
            display: block;
        }

        .fesco-bill-checker .history-data-wrapper{
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2px;
            padding: 0;
            width: 100%;
            background: #f8faf9;
            border-left: 1px solid #d7e7df;
            border-right: 1px solid #d7e7df;
        }

        .fesco-bill-checker .history-block-grid{
            display: grid;
            grid-template-rows: 19px repeat(6, 19px);
            border: none;
            width: 100%;
            overflow: visible;
        }

        .fesco-bill-checker .history-row, .fesco-bill-checker .history-header-row{
            display: grid;
            grid-template-columns: 1.35fr 1.1fr 0.95fr 1.4fr 1.8fr;
            width: 100%;
            align-items: center;
            min-height: 19px;
            height: 19px;
        }

        .fesco-bill-checker .history-header-row{
            background: transparent;
            font-weight: 800;
            color: #050505;
            text-align: left;
            border-bottom: 1px solid #bfe6d8;
        }

        .fesco-bill-checker .history-cell, .fesco-bill-checker .history-header-cell{
            display: flex;
            align-items: center;
            justify-content: flex-start;
            font-size: 8px;
            color: #050505;
            border: none;
            height: 19px;
            min-height: 19px;
            max-height: 19px;
            overflow: hidden;
            white-space: nowrap;
            padding: 0 4px;
            line-height: 1;
        }

        .fesco-bill-checker .history-header-cell{
            background: #d8f1e9;
            font-size: 7.5px;
            font-weight: 800;
        }

        .fesco-bill-checker .history-cell:nth-child(2), .fesco-bill-checker .history-header-cell:nth-child(2), .fesco-bill-checker .history-cell:nth-child(3), .fesco-bill-checker .history-header-cell:nth-child(3), .fesco-bill-checker .history-cell:nth-child(4), .fesco-bill-checker .history-header-cell:nth-child(4), .fesco-bill-checker .history-cell:nth-child(5), .fesco-bill-checker .history-header-cell:nth-child(5){
            justify-content: center;
            text-align: center;
        }

        .fesco-bill-checker .history-cell:nth-child(4){
            justify-content: flex-end;
            text-align: right;
        }

        .fesco-bill-checker .history-cell:nth-child(5), .fesco-bill-checker .history-header-cell:nth-child(5){
            justify-content: flex-end;
            text-align: right;
            font-weight: 800;
            padding-right: 4px;
            overflow: visible;
        }

        .fesco-bill-checker .history-data-wrapper > .history-block-grid:first-child .history-cell:nth-child(5), .fesco-bill-checker .history-data-wrapper > .history-block-grid:first-child .history-header-cell:nth-child(5){
            padding-right: 5px;
        }

        .fesco-bill-checker .history-status-pill{
            min-width: 34px;
            height: 10px;
            border-radius: 2px;
            background: #d8f1e9;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 7px;
            font-weight: 800;
            color: #050505;
            line-height: 1;
            padding: 0 3px;
        }

        .fesco-bill-checker .history-center-divider{
            position: relative;
        }

        .fesco-bill-checker .history-center-divider::before, .fesco-bill-checker .history-center-divider::after{
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            width: 4px;
            background: #c4d0d0;
        }

        .fesco-bill-checker .history-center-divider::before{
            left: -3px;
            width: 3px;
        }

        .fesco-bill-checker .history-center-divider::after{
            left: 0;
            background: #e5eded;
        }

        .fesco-bill-checker .tinted-cell{ background-color: transparent; }

        .fesco-bill-checker .history-footer-banner{
            display: grid;
            grid-template-columns: 1fr 1fr;
            background: #f7f6f3;
            border-top: 1px solid #bfe6d8;
            border-left: 1px solid #d7e7df;
            border-right: 1px solid #d7e7df;
            border-bottom: 1px solid #cbd5e1;
            width: 100%;
        }

        .fesco-bill-checker .history-footer-cell{
            padding: 2px 6px;
            min-height: 24px;
            height: auto;
            display: flex;
            align-items: center;
            overflow: visible;
            gap: 4px;
        }

        .fesco-bill-checker .history-footer-cell .label-row{
            min-height: 0;
            margin-bottom: 0;
            align-items: flex-start;
            overflow: visible;
            flex: 1;
            min-width: 0;
        }

        .fesco-bill-checker .history-footer-cell .en-lbl{
            font-size: 8px;
            font-weight: 500;
            color: #050505;
            line-height: 1.15;
        }

        .fesco-bill-checker .history-footer-cell .ur-lbl{
            font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;
            font-size: 6px;
            line-height: 1.75 !important;
            padding: 2px 0 3px !important;
            overflow: visible !important;
            color: #050505;
        }

        .fesco-bill-checker .history-footer-cell > div:not(.label-row){
            font-size: 8px;
            font-weight: 700;
            line-height: 1;
            margin-left: 0 !important;
            flex-shrink: 0;
        }

        .fesco-bill-checker .component-card:has(.history-data-wrapper) > div:first-child{
            padding: 2px 6px !important;
            line-height: 1.2 !important;
        }

        .fesco-bill-checker .component-card:has(.history-data-wrapper) > div:first-child span:first-child{
            font-size: 10px !important;
        }

        .fesco-bill-checker .component-card:has(.history-data-wrapper) > div:first-child span:last-child{
            font-size: 7px !important;
            line-height: 1 !important;
        }

        /* --- PERFORATED SLIP --- */
        .fesco-bill-checker .perforated-slip{
            border-top: 2px dotted #64748b;
            margin-top: 2px;
            padding-top: 4px;
            width: 100%;
            max-width: 100%;
            overflow: visible;
            background: #ffffff;
        }

        .fesco-bill-checker .slip-branding-grid{
            display: grid;
            grid-template-columns: 115px minmax(0, 350px) 260px;
            gap: 5px;
            align-items: start;
            margin-bottom: 4px;
            width: 100%;
            position: relative;
            overflow: visible;
            justify-content: space-between;
        }

        .fesco-bill-checker .slip-branding-grid > div{
            min-width: 0;
        }

        .fesco-bill-checker .slip-branding-grid > div:last-child{
            width: 260px;
            max-width: 260px;
            justify-self: end;
            overflow: visible;
        }

        .fesco-bill-checker .slip-logo-placeholder{
            width: 56px;
            height: 56px;
            border: 2px solid #22a6ff;
            border-radius: 50%;
            background: #e8f7e9;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #1b753a;
            font-size: 8px;
            font-weight: 800;
            text-align: center;
            line-height: 1.1;
        }

        .fesco-bill-checker .bank-stamp-container{
            position: absolute;
            top: 58px;
            left: 67px;
            transform: rotate(-15deg);
            z-index: 10;
        }

        .fesco-bill-checker .bank-stamp-circle{
            width: 72px;
            height: 48px;
            border: 2px double #d85c33;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: 800;
            color: #d85c33;
            text-align: center;
            background: rgba(255, 255, 255, 0.88);
            box-shadow: none;
            letter-spacing: 0.4px;
        }

        .fesco-bill-checker .slip-title-area{
            text-align: center;
            padding-top: 0;
        }

        .fesco-bill-checker .slip-title-area h4{
            font-size: 13px;
            font-weight: 800;
            line-height: 1.05;
            margin: 0;
            letter-spacing: -0.2px;
        }

        .fesco-bill-checker .slip-title-area .slip-subtitle{
            font-size: 8px;
            font-weight: 600;
            color: #050505;
            margin-top: 2px;
        }

        .fesco-bill-checker .slip-title-area .slip-urdu-line{
            font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;
            font-size: 13px;
            font-weight: 400;
            direction: rtl;
            line-height: 1.7;
            margin-top: 1px;
            color: #050505;
        }

        .fesco-bill-checker .slip-title-area .slip-url{
            font-size: 13px;
            font-weight: 400;
            color: #050505;
            margin-top: 0;
        }

        .fesco-bill-checker .barcode-placeholder{
            height: auto;
            width: 100%;
            background: #fff;
            border: none;
            margin-top: 6px;
            overflow: visible;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .fesco-bill-checker .barcode-placeholder svg{
            width: auto !important;
            height: auto !important;
            min-height: 50px;
            max-width: none !important;
            max-height: none !important;
            display: block;
        }

        .fesco-bill-checker .barcode-caption{
            font-size: 7px;
            text-align: center;
            color: #050505;
            margin-top: 3px;
            line-height: 1.15;
        }

        .fesco-bill-checker .slip-id-box{
            border: 2px solid #b7c7b0;
            background: #eaf7e5;
            display: flex;
            flex-direction: column;
            gap: 0;
            margin-top: 10px;
            margin-left: auto;
            width: 100%;
            max-width: 258px;
            min-width: 0;
        }

        .fesco-bill-checker .slip-id-row{
            display: grid;
            grid-template-columns: minmax(0, 112px) minmax(0, 1fr);
            align-items: stretch;
            min-height: 28px;
            border-bottom: 1px solid #b7c7b0;
        }

        .fesco-bill-checker .slip-id-row:last-child{
            border-bottom: none;
        }

        .fesco-bill-checker .slip-id-row .id-label{
            display: grid;
            grid-template-columns: auto 1fr;
            align-items: flex-start;
            column-gap: 5px;
            padding: 3px 5px;
            font-weight: 800;
            font-size: 9px;
            color: #050505;
            border-right: 1px solid #b7c7b0;
            white-space: nowrap;
        }

        .fesco-bill-checker .slip-id-row .ur-lbl{
            font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;
            font-size: 6px;
            line-height: 1.65 !important;
            padding: 2px 0 3px !important;
            overflow: visible !important;
            text-align: right;
            justify-self: end;
            color: #050505;
        }

        .fesco-bill-checker .slip-id-value{
            display: block;
            width: 100%;
            box-sizing: border-box;
            padding: 3px 4px;
            font-size: 8px;
            font-weight: 400;
            text-align: right;
            color: #050505;
            background: #eaf7e5;
            min-width: 0;
            overflow-wrap: anywhere;
            word-break: break-all;
            line-height: 1.15;
        }

        .fesco-bill-checker .slip-matrix-grid{
            display: grid;
            grid-template-columns: 1.15fr 1.18fr 2.05fr .95fr 1.04fr 1.04fr;
            grid-template-rows: minmax(30px, auto) minmax(32px, auto);
            border-top: 2px solid #777;
            border-left: 2px solid #777;
            width: 100%;
            box-shadow: 0 4px 8px rgba(0,0,0,.25);
        }

        .fesco-bill-checker .slip-matrix-cell, .fesco-bill-checker .slip-matrix-value{
            border-right: 2px solid #777;
            border-bottom: 2px solid #777;
            background: #d8ecdf;
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .fesco-bill-checker .slip-matrix-cell{
            padding: 2px 3px;
            font-size: 8px;
            font-weight: 700;
            line-height: 1.1;
            color: #0e1e38;
            letter-spacing: -0.2px;
            overflow: visible;
        }

        .fesco-bill-checker .slip-matrix-cell .ur-lbl{
            font-size: 6px;
            line-height: 1.5 !important;
            padding: 1px 0 2px !important;
            overflow: visible !important;
            font-weight: 400;
            color: #2b2b2b;
        }

        .fesco-bill-checker .slip-matrix-value{
            font-size: 9px;
            font-weight: 600;
            color: #050505;
        }

        .fesco-bill-checker .slip-payable-within-title, .fesco-bill-checker .slip-payable-after-title{
            font-size: 7.5px;
            font-weight: 700;
            line-height: 1.08;
        }

        .fesco-bill-checker .slip-payable-within-title{
            grid-column: 3 / 5;
        }

        .fesco-bill-checker .slip-payable-after-title{
            grid-column: 3 / 5;
            grid-row: 2;
        }

        .fesco-bill-checker .slip-main-amount{
            grid-column: 5 / 7;
            grid-row: 1;
            font-size: 9px;
            font-weight: 700;
            line-height: 1.2;
        }

        .fesco-bill-checker .slip-late-box{
            font-size: 8px;
            line-height: 1.2;
            font-weight: 700;
        }

        /* Urdu/Nastaliq: ensure ascenders/descenders are never clipped in any bill section */
        .fesco-bill-checker .component-card .label-row, .fesco-bill-checker .right-section-cell, .fesco-bill-checker .right-grid-cell, .fesco-bill-checker .header-right{
            overflow: visible;
        }

        .fesco-bill-checker .right-section-cell .ur-lbl, .fesco-bill-checker .right-grid-cell .ur-lbl{
            line-height: 1.75 !important;
            padding: 2px 0 3px !important;
            overflow: visible !important;
            display: inline-block;
        }

        .fesco-bill-checker .header-right .ur-lbl:not(.header-payment-urdu), .fesco-bill-checker .header-center .ur-lbl{
            line-height: 1.75 !important;
            padding: 2px 0 3px !important;
            overflow: visible !important;
        }

        .fesco-bill-checker .header-payment-urdu{
            font-size: 12px !important;
            line-height: 2 !important;
            padding: 3px 0 4px !important;
            overflow: visible !important;
        }

        /* Print-only compaction — does not affect screen preview */
        @media print {
            .fesco-bill-checker .main-dashboard-grid{
                gap: 3px;
                margin-bottom: 2px;
            }

            .fesco-bill-checker .inner-stack{
                gap: 2px;
            }

            .fesco-bill-checker .component-card{
                overflow: hidden;
            }

            .fesco-bill-checker .charges-bd-row{
                min-height: 17px;
                padding: 0 4px;
            }

            .fesco-bill-checker .charges-bd-row--grand{
                min-height: 18px;
            }

            .fesco-bill-checker .ibn-bill-messages--mdi .ibn-bill-messages__subsidy-text{
                padding: 2px 4px;
                font-size: 8px;
                line-height: 1.3;
            }

            .fesco-bill-checker .ibn-bill-messages--mdi .subsidy-qr-trigger, .fesco-bill-checker .ibn-bill-messages--mdi .subsidy-qr-host{
                width: 58px;
                height: 58px;
            }

            .fesco-bill-checker .ibn-bill-messages--mdi .bill-qr-canvas--subsidy{
                width: 58px !important;
                height: 58px !important;
                max-width: 58px;
                max-height: 58px;
            }

            .fesco-bill-checker .bill-messages-banner{
                margin: 1px 0;
                overflow: hidden;
            }

            .fesco-bill-checker .bill-messages-fpa__body{
                padding: 4px 5px;
                font-size: 9px;
                line-height: 1.35;
            }

            .fesco-bill-checker .bill-messages-fpa__dcn-footer{
                padding: 2px 5px;
                font-size: 7px;
            }

            .fesco-bill-checker .bill-messages-subsidy-text{
                padding: 4px 5px;
                font-size: 9px;
                line-height: 1.15;
            }

            .fesco-bill-checker .subsidy-qr-trigger, .fesco-bill-checker .subsidy-qr-host{
                width: 72px;
                height: 72px;
            }

            .fesco-bill-checker .bill-qr-canvas--subsidy{
                width: 72px !important;
                height: 72px !important;
                max-width: 72px !important;
                max-height: 72px !important;
            }

            .fesco-bill-checker .history-block-grid{
                grid-template-rows: 17px repeat(6, 17px);
            }

            .fesco-bill-checker .history-row, .fesco-bill-checker .history-header-row{
                min-height: 17px;
                height: 17px;
            }

            .fesco-bill-checker .history-footer-cell{
                min-height: 22px;
                height: auto;
            }

            .fesco-bill-checker .history-footer-cell .ur-lbl{
                line-height: 1.55 !important;
                padding: 1px 0 2px !important;
                overflow: visible !important;
            }

            .fesco-bill-checker .perforated-slip{
                margin-top: 1px;
                padding-top: 2px;
            }

            .fesco-bill-checker .right-section-cell .ur-lbl, .fesco-bill-checker .right-grid-cell .ur-lbl{
                line-height: 1.45 !important;
                padding: 1px 0 2px !important;
            }

            .fesco-bill-checker .header-payment-urdu{
                font-size: 11px !important;
                line-height: 1.65 !important;
                padding: 2px 0 3px !important;
            }

            .fesco-bill-checker .right-panel-box, .fesco-bill-checker .payable-card, .fesco-bill-checker .lp-surcharge-card{
                border: 1.2px solid #0c2356 !important;
                print-color-adjust: exact !important;
                -webkit-print-color-adjust: exact !important;
            }

            .fesco-bill-checker .right-panel-box{
                border-radius: 4px !important;
            }

            .fesco-bill-checker .payable-card{
                border-radius: 6px !important;
                box-shadow: none !important;
            }

            .fesco-bill-checker .lp-surcharge-card{
                border-radius: 4px !important;
            }
        }

        /* ========== Meter Snaps Card ========== */
        .fesco-bill-checker .meter-snaps-card{
            min-height: 88px;
            padding: 4px;
            display: flex;
            flex-direction: column;
        }

        .fesco-bill-checker .meter-snaps-grid{
            display: grid;
            gap: 4px;
            width: 100%;
            flex: 1;
            min-height: 80px;
        }

        .fesco-bill-checker .meter-snaps-grid--layout-1{
            grid-template-columns: 1fr;
            grid-template-rows: 1fr;
        }

        .fesco-bill-checker .meter-snaps-grid--layout-2{
            grid-template-columns: 1fr 1fr;
            grid-template-rows: 1fr;
        }

        .fesco-bill-checker .meter-snaps-grid--layout-3{
            grid-template-columns: 1fr 1fr;
            grid-template-rows: 1fr 1fr;
        }

        .fesco-bill-checker .meter-snaps-grid--layout-3 .meter-snap-cell:first-child{
            grid-column: 1 / -1;
        }

        .fesco-bill-checker .meter-snaps-grid--layout-4{
            grid-template-columns: 1fr 1fr;
            grid-template-rows: 1fr 1fr;
        }

        .fesco-bill-checker .meter-snaps-grid .meter-snap-cell{
            border: 1px dashed #cbd5e1;
            background: #f8fafc;
            padding: 2px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            min-height: 0;
            position: relative;
            text-align: center;
        }

        .fesco-bill-checker .meter-snap-cell--zoomable{
            cursor: zoom-in;
            transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
        }

        .fesco-bill-checker .meter-snap-cell--zoomable:hover,
        .fesco-bill-checker .meter-snap-cell--zoomable:focus-visible{
            transform: scale(1.02);
            border-color: #0c2356;
            background-color: #ffffff;
            box-shadow: 0 4px 14px rgba(12, 35, 86, 0.14);
            outline: none;
        }

        .fesco-bill-checker .meter-snap-cell--zoomable:active{
            transform: scale(0.99);
        }

        .fesco-bill-checker .meter-snaps-grid .meter-snap-cell img{
            width: 100%;
            height: 100%;
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }
