/**
 * NETCAP Macro Widget frontend styles.
 * Version 2.7.25
 */

.ncmw-full-section,
.ncmw-full-section *,
.ncmw-global-scope,
.ncmw-global-scope *,
.ncmw-dom-scope,
.ncmw-dom-scope * {
    box-sizing: border-box;
}

.ncmw-full-section {
    --ncmw-blue: #0f2b5b;
    --ncmw-blue-2: #173f78;
    --ncmw-accent: #1d5fa8;
    --ncmw-ink: #17233a;
    --ncmw-muted: #667085;
    --ncmw-line: #dfe7f1;
    --ncmw-soft: #f5f8fc;
    --ncmw-white: #ffffff;
    --ncmw-max-width: 1400px;
    position: relative;
    z-index: 0;
    width: 100%;
    margin: 0 auto;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    container-type: inline-size;
    container-name: ncmw-dashboard;
}

/*
 * The wide layout uses a CSS-first viewport breakout and an external-script
 * measurement fallback. The script writes the runtime width and shift only
 * when a theme or page builder constrains the shortcode parent.
 */
.ncmw-full-section.ncmw-layout-wide {
    width: var(--ncmw-runtime-width, min(var(--ncmw-max-width), calc(100vw - 48px))) !important;
    max-width: none !important;
    left: 50%;
    margin: 0 !important;
    transform: translateX(var(--ncmw-runtime-shift, -50%));
}

.ncmw-full-section.ncmw-layout-contained {
    width: 100%;
    max-width: var(--ncmw-max-width);
    left: auto;
    transform: none;
}

/* Allow the component to escape common constrained shortcode wrappers. */
:where(.wp-block-shortcode, .elementor-shortcode, .elementor-widget-shortcode .elementor-widget-container, .entry-content, .wp-block-post-content):has(.ncmw-full-section.ncmw-layout-wide) {
    overflow: visible !important;
}

.ncmw-wide-host {
    overflow: visible !important;
}

.ncmw-dashboard-shell {
    width: 100%;
    padding: clamp(22px, 2.5vw, 36px);
    border: 1px solid #e1e8f1;
    border-radius: 24px;
    background:
        radial-gradient(circle at 96% 0%, rgba(29, 95, 168, .09), transparent 30%),
        linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
    box-shadow: 0 18px 48px rgba(15, 43, 91, .10);
}

.ncmw-full-gap {
    height: clamp(26px, 3vw, 40px);
}

.ncmw-full-width-320{--ncmw-max-width:320px}.ncmw-full-width-350{--ncmw-max-width:350px}.ncmw-full-width-400{--ncmw-max-width:400px}.ncmw-full-width-450{--ncmw-max-width:450px}.ncmw-full-width-500{--ncmw-max-width:500px}.ncmw-full-width-550{--ncmw-max-width:550px}.ncmw-full-width-600{--ncmw-max-width:600px}.ncmw-full-width-650{--ncmw-max-width:650px}.ncmw-full-width-700{--ncmw-max-width:700px}.ncmw-full-width-750{--ncmw-max-width:750px}.ncmw-full-width-800{--ncmw-max-width:800px}.ncmw-full-width-850{--ncmw-max-width:850px}.ncmw-full-width-900{--ncmw-max-width:900px}.ncmw-full-width-950{--ncmw-max-width:950px}.ncmw-full-width-1000{--ncmw-max-width:1000px}.ncmw-full-width-1050{--ncmw-max-width:1050px}.ncmw-full-width-1100{--ncmw-max-width:1100px}.ncmw-full-width-1150{--ncmw-max-width:1150px}.ncmw-full-width-1200{--ncmw-max-width:1200px}.ncmw-full-width-1250{--ncmw-max-width:1250px}.ncmw-full-width-1300{--ncmw-max-width:1300px}.ncmw-full-width-1350{--ncmw-max-width:1350px}.ncmw-full-width-1400{--ncmw-max-width:1400px}.ncmw-full-width-1450{--ncmw-max-width:1450px}.ncmw-full-width-1500{--ncmw-max-width:1500px}.ncmw-full-width-1550{--ncmw-max-width:1550px}.ncmw-full-width-1600{--ncmw-max-width:1600px}.ncmw-full-width-1650{--ncmw-max-width:1650px}.ncmw-full-width-1700{--ncmw-max-width:1700px}.ncmw-full-width-1750{--ncmw-max-width:1750px}.ncmw-full-width-1800{--ncmw-max-width:1800px}

.ncmw-global-scope,
.ncmw-dom-scope {
    color: var(--ncmw-ink);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.55;
}

.ncmw-global-scope .ncmw-sr-only,
.ncmw-dom-scope .ncmw-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* ── Domestic dashboard ─────────────────────────────────────────────── */
.ncmw-dom-scope .ncmw-section-title {
    margin: 0;
    color: var(--ncmw-blue);
    font-size: clamp(27px, 2.2vw, 36px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.028em;
}

.ncmw-dom-scope .ncmw-section-subtitle {
    max-width: 950px;
    margin: 9px 0 24px;
    color: var(--ncmw-muted);
    font-size: clamp(13px, 1vw, 15px);
    line-height: 1.65;
}

.ncmw-dom-scope .ncmw-dom-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 26px);
    align-items: stretch;
}

.ncmw-dom-scope .ncmw-dom-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--ncmw-line);
    border-radius: 18px;
    background: var(--ncmw-white);
    box-shadow: 0 10px 30px rgba(15, 43, 91, .07);
}

.ncmw-dom-scope .ncmw-dom-head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--ncmw-line);
    background: linear-gradient(135deg, #f7faff 0%, #edf3fa 100%);
}

.ncmw-dom-scope .ncmw-dom-panel-title {
    margin: 0;
    color: var(--ncmw-blue);
    font-size: clamp(16px, 1.2vw, 19px);
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -.014em;
}

.ncmw-dom-scope .ncmw-dom-table-scroll,
.ncmw-global-scope .ncmw-table-scroll {
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.ncmw-dom-scope .ncmw-dom-table-scroll {
    flex: 1 1 auto;
}

.ncmw-dom-scope table,
.ncmw-global-scope table {
    width: 100%;
    min-width: 0;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.ncmw-dom-scope table {
    font-size: clamp(11.5px, .9vw, 13px);
}

.ncmw-dom-scope th {
    padding: 11px 10px;
    border: 0;
    border-bottom: 1px solid var(--ncmw-blue);
    background: var(--ncmw-blue);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .035em;
    text-align: left;
    text-transform: uppercase;
    white-space: normal;
}

.ncmw-dom-scope th.ncmw-r {
    text-align: right;
}

.ncmw-dom-scope th:nth-child(1), .ncmw-dom-scope td:nth-child(1) { width: 31%; }
.ncmw-dom-scope th:nth-child(2), .ncmw-dom-scope td:nth-child(2) { width: 15%; }
.ncmw-dom-scope th:nth-child(3), .ncmw-dom-scope td:nth-child(3) { width: 15%; }
.ncmw-dom-scope th:nth-child(4), .ncmw-dom-scope td:nth-child(4) { width: 17%; }
.ncmw-dom-scope th:nth-child(5), .ncmw-dom-scope td:nth-child(5) { width: 22%; }

.ncmw-dom-scope td {
    padding: 13px 10px;
    border: 0;
    border-bottom: 1px solid #edf1f6;
    color: #24324a;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.ncmw-dom-scope tbody tr:last-child td,
.ncmw-global-scope tbody tr:last-child td {
    border-bottom: 0;
}

.ncmw-dom-scope tbody tr:nth-child(even),
.ncmw-global-scope tbody tr:nth-child(even) {
    background: #fbfcfe;
}

.ncmw-dom-scope tbody tr:hover,
.ncmw-global-scope tbody tr:hover {
    background: #f4f8fd;
}

.ncmw-dom-scope .ncmw-indicator {
    display: block;
    color: #27415f;
    font-weight: 800;
    line-height: 1.3;
}

.ncmw-dom-scope .ncmw-unit-note {
    display: block;
    margin-top: 4px;
    color: #8a98ab;
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1.35;
}

.ncmw-dom-scope .ncmw-val,
.ncmw-dom-scope .ncmw-prev,
.ncmw-dom-scope .ncmw-change,
.ncmw-dom-scope .ncmw-period-source {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ncmw-dom-scope .ncmw-val,
.ncmw-dom-scope .ncmw-change {
    font-weight: 800;
}

.ncmw-dom-scope .ncmw-prev,
.ncmw-dom-scope .ncmw-period-source {
    color: var(--ncmw-muted);
}

.ncmw-dom-scope .ncmw-period-source span {
    display: block;
    line-height: 1.4;
}

.ncmw-dom-scope .ncmw-period-source .ncmw-period {
    color: #526278;
    font-weight: 700;
}

.ncmw-dom-scope .ncmw-period-source .ncmw-source {
    margin-top: 3px;
    color: #8491a3;
    font-size: 9.5px;
    font-weight: 700;
}

.ncmw-dom-scope .ncmw-good { color: #176b4d; }
.ncmw-dom-scope .ncmw-bad { color: #a52f44; }
.ncmw-dom-scope .ncmw-neutral { color: #617187; }

.ncmw-dom-scope .ncmw-dom-foot {
    margin-top: auto;
    padding: 12px 20px;
    border-top: 1px solid var(--ncmw-line);
    background: #f9fbfd;
    color: #68778b;
    font-size: 11px;
    line-height: 1.55;
}

/* ── Global comparison ──────────────────────────────────────────────── */
.ncmw-global-scope .ncmw-wrap {
    overflow: hidden;
    border: 1px solid var(--ncmw-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 43, 91, .07);
}

.ncmw-global-scope .ncmw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 21px 22px;
    border-bottom: 1px solid var(--ncmw-line);
    background: linear-gradient(135deg, #f7faff 0%, #edf3fa 100%);
}

.ncmw-global-scope .ncmw-header-copy {
    min-width: 0;
}

.ncmw-global-scope .ncmw-title {
    margin: 0;
    color: var(--ncmw-blue);
    font-size: clamp(22px, 1.8vw, 29px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.024em;
}

.ncmw-global-scope .ncmw-header-subtitle {
    max-width: 840px;
    margin: 7px 0 0;
    color: var(--ncmw-muted);
    font-size: 13px;
    line-height: 1.55;
}

.ncmw-global-scope .ncmw-dataset-meta {
    flex: 0 0 auto;
    margin: 0;
    color: #69788c;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    text-align: right;
    white-space: nowrap;
}

.ncmw-global-scope .ncmw-dataset-meta strong {
    color: var(--ncmw-blue);
    font-weight: 800;
}

.ncmw-global-scope .ncmw-dataset-meta span {
    display: inline-block;
    margin: 0 5px;
    color: #9aa8b8;
}

.ncmw-global-scope table {
    font-size: clamp(12px, .95vw, 14px);
}

.ncmw-global-scope th {
    padding: 13px 10px;
    border: 0;
    border-bottom: 1px solid var(--ncmw-blue);
    background: var(--ncmw-blue);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
}

.ncmw-global-scope th:first-child {
    text-align: left;
}

.ncmw-global-scope th:nth-child(1),
.ncmw-global-scope td:nth-child(1) { width: 24%; }
.ncmw-global-scope th:nth-child(2),
.ncmw-global-scope td:nth-child(2),
.ncmw-global-scope th:nth-child(3),
.ncmw-global-scope td:nth-child(3),
.ncmw-global-scope th:nth-child(4),
.ncmw-global-scope td:nth-child(4),
.ncmw-global-scope th:nth-child(5),
.ncmw-global-scope td:nth-child(5) { width: 14%; }
.ncmw-global-scope th:nth-child(6),
.ncmw-global-scope td:nth-child(6) { width: 10%; }
.ncmw-global-scope th:nth-child(7),
.ncmw-global-scope td:nth-child(7) { width: 10%; }

.ncmw-global-scope td {
    padding: 13px 10px;
    border: 0;
    border-bottom: 1px solid #edf1f6;
    color: #26344a;
    text-align: center;
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.ncmw-global-scope td:first-child {
    color: #223a57;
    font-weight: 800;
    text-align: left;
}

.ncmw-global-scope tr.ncmw-nga {
    background: #eaf4ff;
}

.ncmw-global-scope tr.ncmw-nga:hover {
    background: #dceeff;
}

.ncmw-global-scope .ncmw-country-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.ncmw-global-scope .ncmw-country-text {
    overflow-wrap: anywhere;
}

.ncmw-global-scope .ncmw-flag {
    display: inline-block;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(15, 43, 91, .14);
    object-fit: cover;
    vertical-align: middle;
}

.ncmw-global-scope .ncmw-na {
    color: #98a5b5;
    font-size: 12px;
}

.ncmw-global-scope .ncmw-cell-year {
    display: block;
    margin-top: 2px;
    color: #98a5b5;
    font-size: 10px;
}

.ncmw-global-scope .ncmw-foot {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 22px;
    border-top: 1px solid var(--ncmw-line);
    background: #f9fbfd;
    color: #68778b;
    font-size: 11px;
    line-height: 1.55;
}

.ncmw-global-scope .ncmw-data-unavailable {
    padding: 34px 22px;
    background: #fff;
    color: #68778b;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.ncmw-global-scope :focus-visible,
.ncmw-dom-scope :focus-visible {
    outline: 3px solid rgba(29, 95, 168, .55);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Container-based responsiveness works even inside a narrow page-builder column. */
@container ncmw-dashboard (max-width: 1050px) {
    .ncmw-dom-scope .ncmw-dom-wrap {
        grid-template-columns: 1fr;
    }
}

@container ncmw-dashboard (max-width: 760px) {
    .ncmw-dashboard-shell {
        padding: 14px;
        border-radius: 18px;
    }

    .ncmw-dom-scope .ncmw-section-title {
        font-size: 25px;
    }

    .ncmw-global-scope .ncmw-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 17px;
    }

    .ncmw-global-scope .ncmw-dataset-meta {
        text-align: left;
        white-space: normal;
    }

    .ncmw-global-scope .ncmw-foot {
        flex-direction: column;
        padding: 12px 17px;
    }

    .ncmw-dom-scope .ncmw-dom-head {
        padding: 15px 16px;
    }

    .ncmw-dom-scope .ncmw-dom-foot {
        padding: 11px 16px;
    }

    .ncmw-dom-scope table,
    .ncmw-dom-scope thead,
    .ncmw-dom-scope tbody,
    .ncmw-dom-scope th,
    .ncmw-dom-scope td,
    .ncmw-dom-scope tr,
    .ncmw-global-scope table,
    .ncmw-global-scope thead,
    .ncmw-global-scope tbody,
    .ncmw-global-scope th,
    .ncmw-global-scope td,
    .ncmw-global-scope tr {
        display: block;
    }

    .ncmw-dom-scope thead,
    .ncmw-global-scope thead {
        display: none;
    }

    .ncmw-dom-scope tbody,
    .ncmw-global-scope tbody {
        display: grid;
        grid-template-columns: 1fr;
        gap: 11px;
        padding: 12px;
    }

    .ncmw-dom-scope tr,
    .ncmw-global-scope tr {
        overflow: hidden;
        margin: 0;
        border: 1px solid var(--ncmw-line);
        border-radius: 13px;
        background: #fff;
    }

    .ncmw-global-scope tr.ncmw-nga {
        border-color: #acd0f3;
        background: #eef7ff;
    }

    .ncmw-dom-scope td,
    .ncmw-global-scope td {
        display: flex;
        width: auto !important;
        align-items: baseline;
        justify-content: space-between;
        gap: 18px;
        padding: 9px 12px;
        border-bottom: 1px solid #edf1f6;
        text-align: right;
    }

    .ncmw-dom-scope td::before,
    .ncmw-global-scope td::before {
        content: attr(data-label);
        min-width: 42%;
        color: #6c7a8d;
        font-size: 11px;
        font-weight: 800;
        text-align: left;
    }

    .ncmw-dom-scope td:first-child,
    .ncmw-global-scope td:first-child {
        display: block;
        padding: 12px;
        background: var(--ncmw-soft);
        text-align: left;
    }

    .ncmw-dom-scope td:first-child::before,
    .ncmw-global-scope td:first-child::before {
        display: none;
        content: "";
    }

    .ncmw-dom-scope td:last-child,
    .ncmw-global-scope td:last-child {
        border-bottom: 0;
    }
}

/* Viewport fallbacks for browsers without container-query support. */
@media (max-width: 1050px) {
    .ncmw-dom-scope .ncmw-dom-wrap {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .ncmw-full-section.ncmw-layout-wide {
        width: var(--ncmw-runtime-width, calc(100vw - 20px)) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ncmw-full-section *,
    .ncmw-global-scope *,
    .ncmw-dom-scope * {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
