/* WP Members NAP Report Container */
.wp-members-nap-report-container {
    padding: 2.75rem 3rem;
    max-width: 900px;
    margin: 20px auto;
    background-color: #f4f8fb;
}

.nap-report-header {
    margin: 1rem 0 2rem 0;
}

.wp-members-nap-report-container,
.nap-header-cards p,
.key-citation-rows,
.wp-members-nap-report-container h2,
.wp-members-nap-report-container h3,
.wp-members-nap-report-container h4 {
    font-family: sans-serif;
}

.nap-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 25px;
    margin-bottom: 1rem;
}

.nap-col {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem;
}

.nap-header-cards p .material-symbols-outlined {
    vertical-align: -0.25em;
    /* Better alignment with text */
    margin-right: 8px;
    font-size: 1.2em;
    /* Slightly larger icon */
}

.bus-info-title {
    font-size: 24px;
}

.bus-info-title-content {
    font-size: 18px;
}

.citation-summary,
.key-citation-rows {
    align-items: center;
}

.nap-row.citation-summary.mfg-panel-box {
    display: block;
}

#key-citation-score {
    background-color: #e5f0ff;
    text-align: center;
    border-radius: 4px;
    padding: 1rem 0;
}

#key-citation-score h3,
#key-citation-score p {
    color: #003399;
}

.key-citation-score {
    font-size: 3em;
    margin: 0;
}

#key-citation-score,
.nap-summary-cards {
    box-shadow: 0 2px 5px rgba(0, 0, 0, .15);
}

#key-citation-score h3 {
    margin: 2rem 0 0 0;
}

.key-citation-rows {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 1.5rem 0;
}

.key-citation-cards p {
    margin: 0;
}

.nap-summary-cards {
    text-align: center;
    flex: 0 0 calc(50% - 10px);
    border-radius: 4px;
    padding: 12px 5px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .15);
}

.nap-summary-cards p {
    font-size: 24px;
}

.nap-card-title {
    font-size: 16px;
}

.material-symbols-outlined {
    position: relative;
    top: 5px;
    margin-right: 3px;
    font-size: 18px;
}

.found,
.high {
    color: #076847;
}

.not-found,
.growing {
    color: #684707;
}

.correct,
.medium {
    color: #280768;
}

.with-errors,
.new {
    color: #e24c47;
}

.color-key .color.high {
    background-color: #076847;
}

.color-key .color.medium {
    background-color: #076847;
}

.color-key .color.growing {
    background-color: #684707;
}

.color-key .color.new {
    background-color: #e24c47;
}

.phone-mismatch,
.name-mismatch,
.address-mismatch {
    color: #e24c47;
}

#active-citation-list,
#possible-citation-list {
    margin-top: 3.5rem;
}

.nap-citation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, .15);
    background-color: #fff;
    overflow: scroll;
}

.nap-citation-table th {
    text-align: center;
    padding: 10px;
    font-size: 16px;
}

.nap-citation-table tr,
.nap-citation-table td {
    padding: 8px;
}

.nap-citation-table tr {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.nap-citation-table tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

.nap-citation-table td {
    text-align: center;
    padding-left: 5px;
}

td.nap-citation-table-cell-url {
    text-align: left;
}

.nap-citation-table-cell-url a {
    color: #076847;
    text-decoration: none;
    text-align: left;
    padding-left: 15px;
}

.table-note {
    display: flex;
    column-gap: 50px;
    margin: 1rem auto 5rem auto;
}

.color-key {
    text-align: center;
    width: 25%;
}

.color-key .color {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin: 0 auto;
}

.align-center {
    text-align: center;
}

.nap-footnotes {
    font-size: 14px;
}

#print-pdf-container {
    text-align: center;
}

#print-pdf-container button,
.download-pdf-button {
    background: #003399;
    color: #fff;
    display: flex;
    align-items: center;
    margin: 48px auto;
    border-radius: 8px;
    padding: 4px 12px;
    border: 1px solid #59739b;
    width: 170px;
    text-decoration: none;
    font-size: 14px;
}

#print-pdf-container button:hover,
.download-pdf-button:hover {
    background: #59739b;
    transition: all linear .4s;
}

#print-pdf-container button:active {
    background: #003399;
}

#print-pdf-container .material-symbols-outlined {
    color: #fff;
    position: relative;
    top: 0;
}

.view-pdf-report-button {
    background: #003399;
    color: #fff;
    display: flex;
    align-items: center;
    margin: 0 auto;
    border-radius: 8px;
    padding: 4px 12px;
    border: 1px solid #59739b;
    text-decoration: none;
}

.view-pdf-report-button .material-symbols-outlined {
    position: relative;
    top: 0;
}

/* popup codes or styles */
/* The element the user hovers over */
.popup-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-weight: bold;
}

.popup-container .material-symbols-outlined {
    color: #003399
}

/* The hidden popup box */
.popup-box {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    /* Places the popup right above the text */
    left: 50%;
    transform: translateX(-50%);
    /* Perfectly centers the popup horizontally */

    /* Popup styling */
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 10;

    /* Smooth fade-in transition */
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

/* Reveal the popup when the container is hovered */
.popup-container:hover .popup-box {
    visibility: visible;
    opacity: 1;
}

/* --- Responsive Breakpoints --- */

/* For tablets and smaller screens (e.g., screen widths less than 900px) */
@media (max-width: 899px) {

    /* Add tablet-specific styles here. */
    .nap-row {
        display: block;
    }

    .key-citation-cards {
        padding: 0;
    }
}

/* For mobile devices (e.g., screen widths less than 600px) */
@media (max-width: 599px) {

    /* Add mobile-specific styles here. */
    .key-citation-rows {
        display: block;
    }

    .nap-summary-cards {
        margin: 20px auto;
    }

    .nap-col.nap-col-table {
        overflow: scroll;
    }
}

/* --- Shimmer Loading Animation --- */
@keyframes shimmer-animation {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.shimmer-container .shimmer-line,
.shimmer-container .shimmer-box {
    animation: shimmer-animation 2s infinite linear;
    background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
    background-size: 2000px 100%;
    border-radius: 4px;
}

.shimmer-container .shimmer-line {
    height: 1em;
    margin-bottom: 0.75em;
}

.shimmer-container .shimmer-h2 {
    height: 28px;
    width: 60%;
    margin-bottom: 1.5rem;
}

.shimmer-container .shimmer-h3 {
    height: 24px;
    width: 40%;
    margin-bottom: 1rem;
}

.shimmer-container .shimmer-p {
    height: 16px;
    width: 100%;
}

.shimmer-container .shimmer-p-short {
    height: 18px;
    width: 70%;
}

.shimmer-container .shimmer-box {
    background-color: #f0f0f0;
}

.shimmer-container .shimmer-card {
    height: 80px;
    flex: 0 0 calc(50% - 10px);
}

/* Message to show on top of shimmer */
.shimmer-message-overlay {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 25px 35px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    z-index: 10;
    font-family: sans-serif;
    font-size: 16px;
}

.shimmer-message-overlay .mfg-loader {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 18px;
}

/* Hide print-only elements from screen view */
.print-cover-page {
    display: none;
}

/* --- Citation Metrics Description Box --- */
.citation-metrics-description {
    font-size: 14px;
    background-color: #eaf2f8;
    border-left: 4px solid #003399;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    border-radius: 4px;
}

.citation-metrics-description p {
    margin: 0.5rem 0;
}

.citation-metrics-description .material-symbols-outlined {
    font-size: 14px;
    top: 2px;
}

/* --- User Reports List Table --- */
.user-nap-reports-list-container {
    /* max-width: 900px; */
    margin: 20px auto;
    padding: 2rem;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: sans-serif;
}

.user-nap-reports-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.user-nap-reports-table th,
.user-nap-reports-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.user-nap-reports-table th {
    background-color: #f4f8fb;
    font-weight: bold;
}

.user-nap-reports-table tbody tr:hover {
    background-color: #f9f9f9;
}

.view-report-button {
    display: inline-block;
    /* Override other link styles */
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.view-report-button .material-symbols-outlined {
    color: #59739b;
}

.view-report-button:hover,
.material-symbols-outlined:hover {
    color: #59739b !important;
}

.report-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}

.report-status-badge.status-ready {
    background-color: #28a745;
    /* Green */
}

.report-status-badge.status-running {
    background-color: #ffc107;
    /* Yellow */
    color: #333;
}

.report-status-badge.status-error {
    background-color: #dc3545;
    /* Red */
}

.report-status-badge.status-pending_upload {
    background-color: #e3ac18;
    color: #333;
}

/* --- User Reports Pagination --- */
.user-reports-pagination {
    margin-top: 2rem;
    text-align: center;
}

.user-reports-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 2px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #003399;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.user-reports-pagination .page-numbers:hover,
.user-reports-pagination .page-numbers:focus {
    background-color: #f4f8fb;
    border-color: #ccc;
}

.user-reports-pagination .page-numbers.current {
    background-color: #003399;
    border-color: #003399;
    color: #fff;
    cursor: default;
}

.user-reports-pagination .page-numbers.dots {
    border: none;
    background: none;
    padding: 8px 4px;
}

.report-status-badge.status-n\/a,
.report-status-badge.status-na {
    background-color: #6c757d;
}

.mfg-seo-dashboard {
    max-width: 1100px;
    margin: 20px auto;
    padding: 1.5rem;
    background: linear-gradient(180deg, #f6faf7 0%, #ffffff 100%);
    border: 1px solid #dce8e0;
    border-radius: 12px;
}

.mfg-dashboard-header h2 {
    margin: 0 0 0.5rem;
}

.mfg-dashboard-header p {
    margin: 0;
    color: #466b56;
}

.mfg-bundle-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1rem 0 1.25rem;
}

.mfg-tab-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    border-bottom: 1px solid #d4dfd7;
    padding-bottom: 0.75rem;
}

.mfg-tab-btn {
    border: 1px solid #e5f0ff;
    background: #ffffff;
    color: #003399;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
}

.mfg-tab-btn.is-active {
    background: #003399;
    color: #ffffff;
    border-color: #003399;
}

.mfg-tab-content {
    display: none;
}

.mfg-tab-content.is-active {
    display: block;
}

.mfg-panel-box {
    background-color: #ffffff;
    border: 1px solid #dce8e0;
    border-radius: 10px;
    padding: 1rem;
}

.mfg-panel-note {
    margin-top: 0;
    color: #5b6d60;
}

#mfg-lsg-map {
    width: 100%;
    height: 440px;
    border: 1px solid #dce8e0;
    border-radius: 10px;
    margin-top: 0.75rem;
    background: #f7fbf8;
}

.mfg-warning {
    color: #7b2f2f;
    background-color: #fdf1f1;
    border: 1px solid #f4cbcb;
    padding: 0.75rem;
    border-radius: 6px;
}

.mfg-rankings-table,
.mfg-grid-table {
    width: 100%;
    border-collapse: collapse;
}

.mfg-rankings-table th,
.mfg-rankings-table td,
.mfg-grid-table th,
.mfg-grid-table td {
    border-bottom: 1px solid #e7eee9;
    text-align: left;
    padding: 10px 8px;
}

.mfg-movement-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}

.mfg-move-up {
    color: #0f5d3f;
    background: #e9f7ef;
    border-color: #c5ead4;
}

.mfg-move-down {
    color: #7d2f2f;
    background: #fdeeee;
    border-color: #f3c7c7;
}

.mfg-move-flat,
.mfg-move-na {
    color: #4c5a53;
    background: #f3f6f4;
    border-color: #dde6e1;
}

.mfg-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    border: 1px solid #cfe0d7;
    border-radius: 999px;
    background: #f7fbf8;
    color: #214b38;
    text-decoration: none;
    font-weight: 600;
}

.mfg-lrt-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mfg-lrt-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
    margin: 1rem 0 1.25rem;
}

.mfg-lrt-meta-card {
    border: 1px solid #e1ebe5;
    border-radius: 10px;
    background: #f9fcfa;
    padding: 0.85rem 1rem;
    text-align: center;
}

.mfg-lrt-meta-card p {
    margin: 0.35rem 0 0;
    font-size: 16px;
}

.mfg-lrt-screenshots {
    margin-top: 1.5rem;
}

.mfg-lrt-screenshot-engine {
    margin-top: 1.25rem;
}

.mfg-lrt-screenshot-group {
    margin-top: 1rem;
}

.mfg-lrt-screenshot-group h6,
.mfg-lrt-screenshot-engine h5,
.mfg-lrt-screenshots h4 {
    margin-bottom: 0.65rem;
}

.mfg-lrt-screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
}

.mfg-lrt-screenshot-card {
    display: block;
    border: 1px solid #dce8e0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #214b38;
    background: #ffffff;
}

.mfg-lrt-screenshot-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #eef5f0;
}

.mfg-lrt-screenshot-card span {
    display: block;
    padding: 0.65rem 0.8rem;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 720px) {
    .mfg-tab-nav {
        flex-wrap: wrap;
    }

    #mfg-lsg-map {
        height: 300px;
    }

    .mfg-lrt-links {
        flex-direction: column;
    }

    .nap-citation-table {
        display: block;
        overflow-x: auto;
    }
}