* {
    box-sizing: border-box;
}

:root {
    --blue: #0868c9;
    --blue-dark: #104b91;
    --client-blue: #0868c9;
    --client-blue-dark: #104b91;
    --client-blue-soft: #eef6ff;
    --client-menu-blue: #2f86df;
    --border: #c7d4e5;
    --text: #1d2e45;
    --muted: #5d6b80;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #f4f7fb;
}

button,
select {
    font: inherit;
}

.global-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 88px;
    z-index: 10000;
    background: #ffffff;
    border-bottom: 4px solid var(--client-blue);
    box-shadow: 0 3px 14px rgba(11, 59, 130, 0.10);
}

.global-header-inner {
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 18px;
}

.header-logo-box {
    width: 172px;
    height: 76px;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #dfe6f0;
    border-radius: 9px;
    background: #ffffff;
}

.header-logo-box img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 154px;
    max-height: 68px;
    object-fit: contain;
    object-position: center;
}

.header-logo-box:first-child img {
    transform: scale(1.18);
    transform-origin: center;
}

.assetplus-header-logo {
    width: 178px;
}

.assetplus-header-logo img {
    max-width: 164px;
}

.header-title-block {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    white-space: nowrap;
}

.header-main-title {
    color: var(--blue-dark);
    font-size: 30px;
    line-height: 1.05;
    font-weight: 900;
}

.portal-shell {
    min-height: 100vh;
    padding-top: 88px;
    display: flex;
}

.portal-sidebar {
    width: 255px;
    position: fixed;
    top: 88px;
    left: 0;
    bottom: 0;
    padding: 17px 15px;
    overflow-y: auto;
    background: #ffffff;
    border-right: 2px solid #d9e2ef;
    box-shadow: 3px 0 12px rgba(11, 59, 130, 0.05);
}

.portal-nav-title {
    margin-bottom: 15px;
    padding: 10px 12px;
    color: #ffffff;
    background: var(--client-blue-dark);
    border-left: 5px solid #ffffff;
    border-radius: 5px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 900;
}

.portal-filter-group {
    margin-bottom: 13px;
}

.portal-filter-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--blue-dark);
    font-size: 14px;
    font-weight: 900;
}

.portal-filter-group select {
    width: 100%;
    height: 42px;
    padding: 0 11px;
    border: 1.5px solid #bac7db;
    border-radius: 6px;
    outline: none;
    background: #ffffff;
    color: #263a5b;
    font-size: 14px;
    font-weight: 800;
}

.portal-filter-group select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(11, 59, 130, 0.11);
}

.portal-reset-button {
    width: 100%;
    height: 41px;
    margin-top: 3px;
    border: 2px solid var(--blue);
    border-radius: 6px;
    background: var(--client-blue);
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
}

.portal-main {
    width: calc(100% - 255px);
    min-height: calc(100vh - 88px);
    margin-left: 255px;
    padding: 14px 18px 20px;
}

.portal-actions {
    margin-bottom: 11px;
}

.selected-filter-summary {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 11px 14px;
    border: 1px solid #c7d2e2;
    border-left: 5px solid var(--client-blue);
    border-radius: 6px;
    background: #ffffff;
    color: var(--blue-dark);
    font-size: 15px;
    font-weight: 900;
}

.selected-filter-label {
    color: var(--blue);
    font-size: 15px;
    font-weight: 900;
}

.filter-separator {
    color: #8d99aa;
    font-weight: 800;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.overall-card,
.modelling-status-card {
    margin-bottom: 11px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(11, 59, 130, 0.05);
}

.overall-table,
.modelling-status-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.overall-table th,
.modelling-status-table th {
    padding: 11px 10px;
    border-right: 1px solid #315b96;
    background: var(--client-blue-dark);
    color: #ffffff;
    text-align: center;
    font-size: 11.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.25px;
}

.overall-table th:last-child,
.modelling-status-table th:last-child {
    border-right: 0;
}

.overall-table td,
.modelling-status-table td {
    padding: 11px 10px;
    border-right: 1px solid #d5deea;
    border-bottom: 1px solid #d5deea;
    background: #ffffff;
    color: #26364f;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.overall-table td {
    color: var(--blue-dark);
    font-size: 15px;
    font-weight: 900;
}

.modelling-status-table tbody tr:nth-child(even) td {
    background: #f7faff;
}

.modelling-status-table tbody tr:hover td {
    background: var(--client-blue-soft);
}

.modelling-status-badge {
    min-width: 108px;
    padding: 6px 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.status-completed {
    border: 1px solid #86cfa5;
    background: #e9f8ef;
    color: #126b3c;
}

.status-progress {
    border: 1px solid #efbd7b;
    background: #fff3df;
    color: #a35600;
}

.status-not-started {
    border: 1px solid #ccd4df;
    background: #eef2f6;
    color: #5f6b7a;
}

.data-received-yes {
    color: #126b3c;
    font-weight: 900;
}

.status-table-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 8px 9px;
    border-bottom: 1px solid #d9e2ef;
    background: #f8fafc;
}

.compact-download-button,
.download-card-button {
    min-height: 36px;
    padding: 0 14px;
    border: 2px solid var(--blue);
    border-radius: 6px;
    background: var(--client-blue-dark);
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.compact-download-button:hover,
.download-card-button:hover {
    border-color: var(--blue-dark);
    background: var(--blue-dark);
}

.map-row-button {
    min-width: 88px;
    min-height: 32px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--blue);
    border-radius: 6px;
    background: var(--client-blue-dark);
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
}

.map-row-button:hover {
    background: var(--blue-dark);
}

.map-row-button.disabled {
    border-color: #aebbd0;
    background: #c1cad7;
    color: #eef3f8;
    cursor: default;
    pointer-events: none;
}

.downloads-grid {
    margin-bottom: 11px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.download-card {
    min-height: 76px;
    padding: 12px 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(11, 59, 130, 0.05);
}

.download-card-title {
    color: var(--blue-dark);
    font-size: 14px;
    font-weight: 900;
}

.embedded-map-section {
    margin-top: 11px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(11, 59, 130, 0.05);
}

.embedded-map {
    width: 100%;
    height: 720px;
    display: block;
    border: 0;
    background: #eef2f7;
}

.loading-row {
    padding: 18px !important;
    text-align: center !important;
    color: var(--muted) !important;
}

.portal-loading {
    position: fixed;
    inset: 88px 0 0 255px;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(245, 247, 251, 0.84);
    backdrop-filter: blur(2px);
}

.portal-loading.show {
    display: flex;
}

.portal-loading-card {
    width: min(430px, calc(100vw - 310px));
    padding: 24px 28px;
    border: 1.5px solid #b9c7db;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(8, 45, 99, 0.16);
    text-align: center;
}

.portal-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 13px;
    border: 5px solid #e1e8f3;
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: portal-spin 0.8s linear infinite;
}

@keyframes portal-spin {
    to {
        transform: rotate(360deg);
    }
}

.portal-loading-title {
    color: var(--blue-dark);
    font-size: 20px;
    font-weight: 900;
}

.portal-loading-status {
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.portal-loading-track {
    height: 8px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 99px;
    background: #e8edf5;
}

.portal-loading-bar {
    width: 32%;
    height: 100%;
    border-radius: 99px;
    background: var(--client-blue);
    animation: portal-load-slide 1.25s ease-in-out infinite alternate;
}

@keyframes portal-load-slide {
    from {
        transform: translateX(-35%);
    }

    to {
        transform: translateX(220%);
    }
}

.portal-loading-time {
    margin-top: 11px;
    color: #687790;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .downloads-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .global-header {
        position: relative;
        height: auto;
        min-height: 80px;
    }

    .global-header-inner {
        min-height: 80px;
        display: grid;
        grid-template-columns: 65px minmax(0, 1fr) 85px;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
    }

    .header-logo-box {
        width: 65px !important;
        height: 58px;
        min-width: 0;
        padding: 3px;
    }

    .assetplus-header-logo {
        width: 85px !important;
    }

    .header-logo-box img {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 52px;
        object-fit: contain;
    }

    .header-logo-box:first-child img {
        transform: scale(1.12);
    }

    .header-title-block {
        position: static;
        width: auto;
        transform: none;
        white-space: normal;
    }

    .header-main-title {
        font-size: 16px;
        line-height: 1.15;
    }

    .portal-shell {
        width: 100%;
        padding-top: 0;
        display: flex;
        flex-direction: column;
    }

    .portal-sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 14px;
        border-right: 0;
        border-bottom: 1px solid #d7dde5;
        box-shadow: none;
    }

    .portal-main {
        width: 100%;
        min-height: auto;
        margin-left: 0;
        padding: 14px;
    }

    .selected-filter-summary {
        font-size: 13px;
        line-height: 1.4;
    }

    .overall-table {
        min-width: 900px;
    }

    .modelling-status-table {
        min-width: 980px;
    }

    .download-card {
        flex-direction: column;
        align-items: stretch;
    }

    .download-card-button {
        width: 100%;
    }

    .embedded-map {
        height: 620px;
    }

    .portal-loading {
        inset: 0;
    }

    .portal-loading-card {
        width: min(430px, calc(100vw - 30px));
    }
}


.portal-filter-group select {
    cursor: pointer;
}

.portal-filter-group select option {
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 800;
}

.portal-filter-group select optgroup {
    color: var(--blue-dark);
    background: #eef4fc;
    font-size: 12px;
    font-weight: 900;
}

#filter-substation {
    height: 44px;
    border-width: 2px;
    border-color: #9fb0c8;
    background-color: #ffffff;
    color: var(--blue-dark);
    font-size: 14px;
    font-weight: 900;
}

#filter-substation:hover,
#filter-substation:focus {
    border-color: var(--blue);
}


#all-substation-view[hidden],
#single-substation-view[hidden] {
    display: none !important;
}

.summary-block {
    margin-bottom: 11px;
    overflow: hidden;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(11, 59, 130, 0.05);
}

.summary-strip-title {
    min-height: 39px;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-bottom: 2px solid #d6e2f0;
    color: var(--client-blue-dark);
    font-size: 14px;
    font-weight: 900;
}

.summary-title-with-action {
    min-height: 48px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    background: #ffffff;
    border-bottom: 2px solid #d6e2f0;
}

.summary-title-with-action .summary-strip-title {
    flex: 1;
    border-bottom: 0;
}

.single-model-download {
    margin: 7px 9px 7px 0;
    min-width: 210px;
    background: var(--blue) !important;
    color: #ffffff !important;
}

#filter-substation {
    appearance: auto;
    background-image: none;
}

#filter-substation option {
    font-size: 14px;
    font-weight: 800;
}

@media (max-width: 768px) {
    .summary-title-with-action {
        flex-direction: column;
        gap: 0;
    }

    .single-model-download {
        width: calc(100% - 18px);
        margin: 8px 9px;
    }
}


/* ====================================================================================
   APEPDCL CLIENT THEME REFINEMENTS
   ==================================================================================== */

.global-header {
    background: #ffffff;
    border-bottom-color: var(--client-blue);
}

.portal-nav-title {
    background: var(--client-blue);
    border-left-color: var(--client-blue-dark);
}

.portal-reset-button {
    background: var(--client-blue);
    border-color: var(--client-blue);
    color: #ffffff;
}

.portal-reset-button:hover {
    background: var(--client-blue-dark);
    border-color: var(--client-blue-dark);
}

.selected-filter-summary {
    border-left-color: var(--client-blue);
}

.summary-block {
    border-color: #cbd8e8;
}

.summary-strip-title {
    background: #ffffff;
    color: var(--client-blue-dark);
    border-bottom-color: #d6e2f0;
}

.summary-title-with-action {
    background: #ffffff;
    border-bottom-color: #d6e2f0;
}

.overall-table th,
.modelling-status-table th {
    background: var(--client-blue-dark);
    border-right-color: #3d6da4;
}

.compact-download-button,
.download-card-button,
.map-row-button,
.single-model-download {
    background: var(--client-blue-dark) !important;
    color: #ffffff !important;
}

.modelling-status-table tbody tr:hover td {
    background: var(--client-blue-soft);
}

.portal-loading-bar {
    background: var(--client-blue);
}


/* ====================================================================================
   V9 CLIENT THEME
   Section titles use the APEPDCL menu blue from the client reference.
   ==================================================================================== */

.summary-strip-title,
.summary-title-with-action {
    background: var(--client-menu-blue) !important;
    color: #ffffff !important;
    border-bottom: 1px solid var(--client-menu-blue) !important;
}

.summary-strip-title h2,
.summary-strip-title h3,
.summary-title-with-action h2,
.summary-title-with-action h3,
.summary-title-with-action span {
    color: #ffffff !important;
}


/* ====================================================================================
   V11 LARGE HEADER LOGOS
   Both APEPDCL and AssetPlus logos are large and clearly visible.
   Borders removed.
   ==================================================================================== */

.header-logo-box {
    width: 230px !important;
    height: 105px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}

.header-logo-box:first-child img {
    width: 210px !important;
    height: 95px !important;
    max-width: 210px !important;
    max-height: 95px !important;
    object-fit: contain !important;
    transform: none !important;
}

.assetplus-header-logo {
    width: 250px !important;
    height: 105px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}

.assetplus-header-logo img {
    width: 235px !important;
    height: 95px !important;
    max-width: 235px !important;
    max-height: 95px !important;
    object-fit: contain !important;
    transform: none !important;
}

.global-header img {
    object-fit: contain !important;
}

.global-header {
    min-height: 118px !important;
}

.global-header-inner {
    min-height: 118px !important;
    padding: 6px 25px !important;
}

@media (max-width: 768px) {
    .header-logo-box {
        width: 125px !important;
        height: 75px !important;
    }

    .header-logo-box:first-child img {
        width: 115px !important;
        height: 68px !important;
        max-width: 115px !important;
        max-height: 68px !important;
    }

    .assetplus-header-logo {
        width: 140px !important;
        height: 75px !important;
    }

    .assetplus-header-logo img {
        width: 130px !important;
        height: 68px !important;
        max-width: 130px !important;
        max-height: 68px !important;
    }

    .global-header,
    .global-header-inner {
        min-height: 88px !important;
    }
}


/* ====================================================================================
   V12 FINAL HEADER + CLIENT BLUE + VIEW MAP RULES
   ==================================================================================== */

:root {
    --portal-navy: #104b91;
    --portal-navy-dark: #0b3b78;
    --portal-blue: #0b66c3;
    --header-height-v12: 108px;
    --header-gap-v12: 12px;
}

/* ------------------------------------------------------------------
   MAIN HEADER
   Dark client blue. Logos remain on clean white surfaces.
   ------------------------------------------------------------------ */

.global-header {
    height: var(--header-height-v12) !important;
    min-height: var(--header-height-v12) !important;
    background: var(--portal-navy) !important;
    border-bottom: 3px solid var(--portal-blue) !important;
    box-shadow: 0 3px 12px rgba(5, 40, 90, 0.18) !important;
}

.global-header-inner {
    height: 100% !important;
    min-height: var(--header-height-v12) !important;
    padding: 8px 22px !important;
    gap: 22px !important;
}

/* Keep enough fixed room on both sides so the title can never overlap logos. */
.header-logo-box {
    width: 190px !important;
    height: 86px !important;
    min-width: 190px !important;
    flex: 0 0 190px !important;

    padding: 4px 8px !important;

    border: none !important;
    border-radius: 8px !important;
    box-shadow: none !important;

    background: #ffffff !important;

    overflow: hidden !important;
}

.header-logo-box:first-child img {
    width: 176px !important;
    height: 76px !important;
    max-width: 176px !important;
    max-height: 76px !important;

    object-fit: contain !important;
    transform: none !important;
}

.assetplus-header-logo {
    width: 205px !important;
    min-width: 205px !important;
    flex-basis: 205px !important;
}

.assetplus-header-logo img {
    width: 192px !important;
    height: 76px !important;
    max-width: 192px !important;
    max-height: 76px !important;

    object-fit: contain !important;
    transform: none !important;
}

/* Title stays centered and cannot collide with either logo. */
.header-title-block {
    position: static !important;
    transform: none !important;

    flex: 1 1 auto !important;
    min-width: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 18px !important;
    text-align: center !important;
    white-space: normal !important;
}

.header-main-title {
    color: #ffffff !important;
    font-size: clamp(24px, 2.3vw, 34px) !important;
    line-height: 1.08 !important;
    font-weight: 900 !important;
    letter-spacing: 0.2px !important;
}

/* ------------------------------------------------------------------
   SPACE BELOW FIXED HEADER
   Prevent header / selected text / sidebar overlap.
   ------------------------------------------------------------------ */

.portal-shell {
    padding-top: calc(
        var(--header-height-v12) + var(--header-gap-v12)
    ) !important;
}

.portal-sidebar {
    top: calc(
        var(--header-height-v12) + var(--header-gap-v12)
    ) !important;
}

.portal-actions {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

/* ------------------------------------------------------------------
   SUMMARY SECTION HEADERS
   Use dark client blue, not bright blue / white / yellow.
   ------------------------------------------------------------------ */

.summary-strip-title,
.summary-title-with-action {
    background: var(--portal-navy) !important;
    color: #ffffff !important;
    border-bottom: 1px solid var(--portal-navy-dark) !important;
}

.summary-strip-title h2,
.summary-strip-title h3,
.summary-title-with-action h2,
.summary-title-with-action h3,
.summary-title-with-action span {
    color: #ffffff !important;
}

/* Table headers use the same dark client blue family. */
.overall-table th,
.modelling-status-table th {
    background: var(--portal-navy) !important;
    color: #ffffff !important;
}

/* ------------------------------------------------------------------
   VIEW MAP
   Only Completed rows become blue links.
   All other statuses stay visibly disabled and are not clickable.
   ------------------------------------------------------------------ */

.map-row-button {
    background: var(--portal-navy) !important;
    border-color: var(--portal-navy) !important;
    color: #ffffff !important;
}

.map-row-button:hover {
    background: var(--portal-navy-dark) !important;
    border-color: var(--portal-navy-dark) !important;
}

.map-row-button.disabled {
    background: #edf2f7 !important;
    border: 1px solid #cbd5e1 !important;
    color: #8a98aa !important;

    cursor: not-allowed !important;
    pointer-events: none !important;

    box-shadow: none !important;
    opacity: 1 !important;
}

/* ------------------------------------------------------------------
   RESPONSIVE HEADER
   ------------------------------------------------------------------ */

@media (max-width: 900px) {
    :root {
        --header-height-v12: 96px;
        --header-gap-v12: 10px;
    }

    .global-header-inner {
        padding: 7px 12px !important;
        gap: 10px !important;
    }

    .header-logo-box {
        width: 138px !important;
        min-width: 138px !important;
        flex-basis: 138px !important;
        height: 76px !important;
    }

    .header-logo-box:first-child img {
        width: 124px !important;
        height: 66px !important;
        max-width: 124px !important;
        max-height: 66px !important;
    }

    .assetplus-header-logo {
        width: 150px !important;
        min-width: 150px !important;
        flex-basis: 150px !important;
    }

    .assetplus-header-logo img {
        width: 138px !important;
        height: 66px !important;
        max-width: 138px !important;
        max-height: 66px !important;
    }

    .header-title-block {
        padding: 0 6px !important;
    }

    .header-main-title {
        font-size: clamp(18px, 3vw, 26px) !important;
    }
}

@media (max-width: 620px) {
    :root {
        --header-height-v12: 86px;
        --header-gap-v12: 8px;
    }

    .global-header-inner {
        gap: 6px !important;
        padding: 5px 7px !important;
    }

    .header-logo-box {
        width: 90px !important;
        min-width: 90px !important;
        flex-basis: 90px !important;
        height: 66px !important;
        padding: 2px 4px !important;
    }

    .header-logo-box:first-child img {
        width: 82px !important;
        height: 58px !important;
        max-width: 82px !important;
        max-height: 58px !important;
    }

    .assetplus-header-logo {
        width: 98px !important;
        min-width: 98px !important;
        flex-basis: 98px !important;
    }

    .assetplus-header-logo img {
        width: 90px !important;
        height: 58px !important;
        max-width: 90px !important;
        max-height: 58px !important;
    }

    .header-main-title {
        font-size: 16px !important;
    }
}


/* ====================================================================================
   V13 LIGHT SUMMARY HEADERS + LARGER EASTERN POWER LOGO
   ==================================================================================== */

/* Make all summary/section title bars light blue */
.summary-strip-title,
.summary-title-with-action {
    background: #dceeff !important;
    color: #104b91 !important;
    border-bottom: 1px solid #b9d8f5 !important;
}

.summary-strip-title h2,
.summary-strip-title h3,
.summary-title-with-action h2,
.summary-title-with-action h3,
.summary-title-with-action span {
    color: #104b91 !important;
}

/* Eastern Power logo slightly larger */
.header-logo-box:first-child {
    width: 205px !important;
    min-width: 205px !important;
    flex-basis: 205px !important;
}

.header-logo-box:first-child img {
    width: 190px !important;
    height: 80px !important;
    max-width: 190px !important;
    max-height: 80px !important;
    object-fit: contain !important;
}

/* Keep AssetPlus as-is */
.assetplus-header-logo {
    width: 205px !important;
    min-width: 205px !important;
    flex-basis: 205px !important;
}

/* Responsive */
@media (max-width: 900px) {
    .header-logo-box:first-child {
        width: 150px !important;
        min-width: 150px !important;
        flex-basis: 150px !important;
    }

    .header-logo-box:first-child img {
        width: 138px !important;
        height: 68px !important;
        max-width: 138px !important;
        max-height: 68px !important;
    }
}

@media (max-width: 620px) {
    .header-logo-box:first-child {
        width: 98px !important;
        min-width: 98px !important;
        flex-basis: 98px !important;
    }

    .header-logo-box:first-child img {
        width: 90px !important;
        height: 60px !important;
        max-width: 90px !important;
        max-height: 60px !important;
    }
}


/* ====================================================================================
   FIXED ZOOMED HEADER LOGOS
   AssetPlus no longer gets cut. Both logos remain large and visible.
   ==================================================================================== */

/* GENERAL */
.header-logo-box,
.assetplus-header-logo {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;
}


/* EASTERN POWER */
.header-logo-box:first-child {
    width: 205px !important;
    min-width: 205px !important;
    height: 86px !important;

    flex: 0 0 205px !important;

    padding: 0 !important;
}

.header-logo-box:first-child img {
    width: 175px !important;
    height: 74px !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: contain !important;

    transform: scale(1.20) !important;
    transform-origin: center center !important;
}


/* ASSETPLUS - WIDER BOX SO NOTHING IS CUT */
.assetplus-header-logo {
    width: 245px !important;
    min-width: 245px !important;
    height: 86px !important;

    flex: 0 0 245px !important;

    padding: 0 8px !important;
}

.assetplus-header-logo img {
    width: 215px !important;
    height: 72px !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: contain !important;

    transform: scale(1.08) !important;
    transform-origin: center center !important;
}


/* KEEP TITLE SAFE */
.header-title-block {
    flex: 1 1 auto !important;
    min-width: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 18px !important;

    text-align: center !important;
}

.header-main-title {
    margin: 0 !important;
    text-align: center !important;
    white-space: normal !important;
}


/* HEADER */
.global-header {
    height: 108px !important;
    min-height: 108px !important;
}

.global-header-inner {
    height: 108px !important;
    min-height: 108px !important;

    padding: 8px 18px !important;

    display: flex !important;
    align-items: center !important;

    gap: 18px !important;
}


/* TABLET */
@media (max-width: 900px) {

    .header-logo-box:first-child {
        width: 145px !important;
        min-width: 145px !important;
        flex-basis: 145px !important;
    }

    .header-logo-box:first-child img {
        width: 128px !important;
        height: 62px !important;
        transform: scale(1.15) !important;
    }

    .assetplus-header-logo {
        width: 175px !important;
        min-width: 175px !important;
        flex-basis: 175px !important;
    }

    .assetplus-header-logo img {
        width: 155px !important;
        height: 62px !important;
        transform: scale(1.04) !important;
    }

    .header-title-block {
        padding: 0 6px !important;
    }
}


/* MOBILE */
@media (max-width: 620px) {

    .global-header {
        height: 86px !important;
        min-height: 86px !important;
    }

    .global-header-inner {
        height: 86px !important;
        min-height: 86px !important;

        padding: 5px 6px !important;
        gap: 5px !important;
    }

    .header-logo-box:first-child {
        width: 92px !important;
        min-width: 92px !important;
        height: 64px !important;
        flex-basis: 92px !important;
    }

    .header-logo-box:first-child img {
        width: 80px !important;
        height: 54px !important;
        transform: scale(1.10) !important;
    }

    .assetplus-header-logo {
        width: 108px !important;
        min-width: 108px !important;
        height: 64px !important;
        flex-basis: 108px !important;
    }

    .assetplus-header-logo img {
        width: 98px !important;
        height: 54px !important;
        transform: scale(1.02) !important;
    }

    .header-main-title {
        font-size: 16px !important;
    }
}
