.gm-page-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    width: 0;
    height: 3px;
    background: #285243;
    opacity: 0;
    transition: width .22s ease, opacity .18s ease;
}

body.gm-page-is-loading .gm-page-progress {
    width: 82%;
    opacity: 1;
}

.gm-inline-spinner,
.gm-btn-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(40, 82, 67, .22);
    border-top-color: currentColor;
    border-radius: 999px;
    animation: gmLoadingSpin .72s linear infinite;
    vertical-align: -.18em;
}

.gm-btn-spinner {
    display: none;
    width: .92rem;
    height: .92rem;
    margin-right: .35rem;
}

.gm-btn-loading {
    cursor: wait !important;
    pointer-events: none;
}

.gm-btn-loading .gm-btn-spinner {
    display: inline-block;
}

.gm-loading-status,
.gm-result-status {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: .5rem 0;
    color: #285243;
    font-weight: 700;
}

.gm-result-status {
    color: #475569;
    font-size: .9rem;
}

.gm-table-skeleton-cell {
    padding: .72rem .65rem !important;
    background: #ffffff !important;
}

.gm-table-skeleton-line {
    display: block;
    width: 100%;
    height: .85rem;
    border-radius: 6px;
    background: linear-gradient(90deg, #eef2f0 0%, #f8faf9 45%, #eef2f0 90%);
    background-size: 220% 100%;
    animation: gmLoadingShimmer 1.05s ease-in-out infinite;
}

.gm-table-skeleton-line.is-short {
    width: 46%;
    margin: 0 auto;
}

.gm-table-skeleton-line.is-medium {
    width: 68%;
}

.gm-table-loading-message td,
.gm-table-empty-state td {
    padding: 1.05rem !important;
    text-align: center !important;
    color: #285243 !important;
    font-weight: 800;
    background: #fbf7ef !important;
}

.gm-table-empty-state td {
    color: #64748b !important;
    background: #ffffff !important;
}

.gm-modal-loader {
    display: grid;
    gap: .7rem;
    padding: .25rem 0;
}

.gm-modal-loader-line {
    height: .85rem;
    border-radius: 6px;
    background: linear-gradient(90deg, #eef2f0 0%, #f8faf9 45%, #eef2f0 90%);
    background-size: 220% 100%;
    animation: gmLoadingShimmer 1.05s ease-in-out infinite;
}

.gm-modal-loader-line:nth-child(2) { width: 76%; }
.gm-modal-loader-line:nth-child(3) { width: 88%; }
.gm-modal-loader-line:nth-child(4) { width: 54%; }

.gm-chart-loading-target {
    position: relative;
    min-height: 220px;
}

.gm-chart-loading-target.gm-chart-is-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(245, 246, 241, .88) 25%, rgba(237, 243, 235, .96) 37%, rgba(245, 246, 241, .88) 63%);
    background-size: 400% 100%;
    animation: gmLoadingShimmer 1.05s ease-in-out infinite;
}

.gm-chart-loading-target.gm-chart-is-loading::after {
    content: "लोड हुँदैछ...";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 126px;
    min-height: 34px;
    padding: .42rem .85rem;
    border: 1px solid rgba(40, 82, 67, .18);
    border-radius: 999px;
    background: #ffffff;
    color: #285243;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(40, 82, 67, .12);
    transform: translate(-50%, -50%);
}

.gm-chart-loading-target:not(.gm-chart-is-loading)::before,
.gm-chart-loading-target:not(.gm-chart-is-loading)::after {
    display: none;
}

.gm-page-scroll-table {
    width: 100%;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    overscroll-behavior-x: auto !important;
    overscroll-behavior-y: auto !important;
    -webkit-overflow-scrolling: touch;
}

.gm-page-scroll-table > .table,
.gm-page-scroll-table table {
    margin-bottom: 0;
}

.gm-page-scroll-table thead th {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    background: #f8f9fa;
    border-bottom: 1px solid #dfe7df;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .22), 0 2px 6px rgba(15, 23, 42, .08);
}

.public-report-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    margin: .85rem 0 0;
    padding: .62rem .75rem;
    border-top: 1px solid rgba(40, 82, 67, .16);
    background: #ffffff;
}

.public-report-pagination-summary {
    color: #64746c;
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.35;
}

.public-report-pagination-links {
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.public-report-pagination nav,
.public-report-pagination .pagination {
    margin: 0 !important;
}

.public-report-pagination .pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: .2rem;
}

.public-report-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 .48rem;
    border-radius: 7px !important;
    font-size: .88rem !important;
    line-height: 1 !important;
    box-shadow: none !important;
}

.public-report-pagination .page-item:first-child .page-link,
.public-report-pagination .page-item:last-child .page-link {
    font-family: Arial, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700;
}

@keyframes gmLoadingSpin {
    to { transform: rotate(360deg); }
}

@keyframes gmLoadingShimmer {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .gm-page-progress,
    .gm-inline-spinner,
    .gm-btn-spinner,
    .gm-table-skeleton-line,
    .gm-modal-loader-line,
    .gm-chart-loading-target.gm-chart-is-loading::before {
        animation: none !important;
        transition: none !important;
    }
}
