/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* TOTAL SIZE */
html, body {
    height: 100%;
}

/* BODY */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #0f0f0f;
    color: #e5e5e5;
    display: flex;
    flex-direction: column;
}

/* CONTAINER */
.container {
    flex: 1;
    width: 100%;
    margin: auto;
    padding: 30px 20px;
}

.container.full-width {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* HEADER */
.header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header img {
    width: 200px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.header h1 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}

.nav-links a::before {
    margin-right: 6px;
    font-family: "Segoe UI Symbol", "Arial Unicode MS", Arial, sans-serif;
    font-weight: 800;
    color: currentColor;
    filter: grayscale(1) saturate(0);
}

.nav-links a[href$="/apo"]::before,
.nav-links a[href$="/apo/"]::before {
    content: "⌂";
}

.nav-links a[href*="logout.php"]::before {
    content: "⏻";
}

.nav-links a[href$="/apo"]::before,
.nav-links a[href$="/apo/"]::before {
    content: "" !important;
    display: inline-block !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    margin-right: 6px !important;
    background-color: transparent !important;
    background-image: url("/apo/icon/icon-home.png") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    filter: brightness(0) invert(1) !important;
}

.nav-links a[href*="logout.php"]::before {
    content: "" !important;
    display: inline-block !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    margin-right: 6px !important;
    background-color: transparent !important;
    background-image: url("/apo/icon/icon-logout.png") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    filter: brightness(0) invert(1) !important;
}

.nav-links a[href*="/apo/pref.php"]::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background-color: transparent;
    background-image: url("/apo/icon/icon-settings.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.nav-links a:hover {
    color: #fff;
}

@media (min-width: 851px) {
    body {
        background: #0f0f0f;
        --side-menu-base: 30px;
        --side-menu-step: 50px;
        --side-menu-report-space: 0px;
        --side-menu-dashboard-space: 0px;
        --side-menu-handling-space: 0px;
        --side-menu-atem-space: 0px;
        --side-menu-map-space: 0px;
        --side-menu-pref-space: 0px;
    }

    body:has(.nav-links a[href*="/apo/pref.php"]) {
        --side-menu-pref-space: var(--side-menu-step);
    }

    body:has(.card.highlight > a[href*="/apo/report/"]) {
        --side-menu-report-space: var(--side-menu-step);
    }

    body:has(.card.highlight > a[href*="/apo/dashboard/"]) {
        --side-menu-dashboard-space: var(--side-menu-step);
    }

    body:has(.card.highlight > a[href*="/handling.php"]) {
        --side-menu-handling-space: var(--side-menu-step);
    }

    body:has(.card.highlight > a[href*="/atem.php"]) {
        --side-menu-atem-space: var(--side-menu-step);
    }

    body:has(.card.highlight > a[href*="/apo/map/"]) {
        --side-menu-map-space: var(--side-menu-step);
    }

    .container {
        padding-left: 235px;
        padding-right: 28px;
    }

    .container.full-width {
        padding: 0;
    }

    .container.full-width:has(.menu-group) {
        padding-left: 235px;
        padding-right: 28px;
        padding-bottom: 70px;
    }

    .footer {
        margin-left: 235px;
    }

    .header {
        position: fixed;
        top: 16px;
        left: 16px;
        bottom: 16px;
        z-index: 1000;
        width: 190px;
        margin: 0;
        padding: 18px 14px;
        background: linear-gradient(180deg, #1d1d1d 0%, #141414 100%);
        border: 1px solid #2a2a2a;
        border-radius: 22px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, .34);
    }

    .header img {
        width: 132px;
        max-height: 82px;
        object-fit: contain;
        margin-bottom: 12px;
        border-radius: 0;
    }

    .header h1 {
        max-width: 100%;
        margin-bottom: 14px;
        color: #f5f5f5;
        font-size: 14px;
        line-height: 1.25;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-links {
        position: static;
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .nav-links a {
        position: fixed;
        left: 30px;
        z-index: 1010;
        width: 162px;
    }

    .nav-links a,
    .card.highlight:has(> a[href*="/apo/report/"]),
    .card.highlight:has(> a[href*="/apo/dashboard/"]),
    .card.highlight:has(> a[href*="/handling.php"]),
    .card.highlight:has(> a[href*="/atem.php"]),
    .card.highlight:has(> a[href*="/apo/map/"]) {
        min-height: 42px;
        border: 1px solid #2d2d2d;
        border-radius: 13px;
        background: #191919;
        color: #e5e5e5;
        box-shadow: none;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        padding: 10px 12px;
        font-weight: 700;
    }

    .nav-links a[href$="/apo"],
    .nav-links a[href$="/apo/"] {
        bottom: calc(
            var(--side-menu-base)
            + var(--side-menu-step)
            + var(--side-menu-map-space)
            + var(--side-menu-atem-space)
            + var(--side-menu-handling-space)
            + var(--side-menu-dashboard-space)
            + var(--side-menu-report-space)
            + var(--side-menu-pref-space)
        );
    }

    .nav-links a[href*="/apo/pref.php"] {
        bottom: calc(
            var(--side-menu-base)
            + var(--side-menu-step)
            + var(--side-menu-map-space)
            + var(--side-menu-atem-space)
            + var(--side-menu-handling-space)
            + var(--side-menu-dashboard-space)
            + var(--side-menu-report-space)
        );
    }

    .nav-links a[href*="logout.php"] {
        bottom: var(--side-menu-base);
    }

    .nav-links a:hover,
    .card.highlight:has(> a[href*="/apo/report/"]):hover,
    .card.highlight:has(> a[href*="/apo/dashboard/"]):hover,
    .card.highlight:has(> a[href*="/handling.php"]):hover,
    .card.highlight:has(> a[href*="/atem.php"]):hover,
    .card.highlight:has(> a[href*="/apo/map/"]):hover {
        background: #F58634;
        border-color: #F58634;
        color: #000;
        transform: none;
    }

    .card.highlight:has(> a[href*="/apo/report/"]),
    .card.highlight:has(> a[href*="/apo/dashboard/"]),
    .card.highlight:has(> a[href*="/handling.php"]),
    .card.highlight:has(> a[href*="/atem.php"]),
    .card.highlight:has(> a[href*="/apo/map/"]) {
        position: fixed;
        left: 30px;
        z-index: 1008;
        width: 162px;
        max-width: 162px;
        min-height: 42px;
        height: auto;
        padding: 0;
        overflow: visible;
    }

    .card.highlight:has(> a[href*="/apo/dashboard/"]) {
        bottom: calc(
            var(--side-menu-base)
            + var(--side-menu-step)
            + var(--side-menu-map-space)
            + var(--side-menu-atem-space)
            + var(--side-menu-handling-space)
        );
    }

    .card.highlight:has(> a[href*="/apo/report/"]) {
        bottom: calc(
            var(--side-menu-base)
            + var(--side-menu-step)
            + var(--side-menu-map-space)
            + var(--side-menu-atem-space)
            + var(--side-menu-handling-space)
            + var(--side-menu-dashboard-space)
        );
    }

    .card.highlight:has(> a[href*="/handling.php"]) {
        bottom: calc(
            var(--side-menu-base)
            + var(--side-menu-step)
            + var(--side-menu-map-space)
            + var(--side-menu-atem-space)
        );
    }

    .card.highlight:has(> a[href*="/atem.php"]) {
        bottom: calc(
            var(--side-menu-base)
            + var(--side-menu-step)
            + var(--side-menu-map-space)
        );
    }

    .card.highlight:has(> a[href*="/apo/map/"]) {
        bottom: calc(var(--side-menu-base) + var(--side-menu-step));
    }

    .card.highlight:has(> a[href*="/apo/report/"])::before,
    .card.highlight:has(> a[href*="/apo/dashboard/"])::before,
    .card.highlight:has(> a[href*="/handling.php"])::before,
    .card.highlight:has(> a[href*="/atem.php"])::before,
    .card.highlight:has(> a[href*="/apo/map/"])::before {
        position: absolute;
        left: 10px;
        top: 50%;
        width: auto;
        height: auto;
        margin: 0;
        background: transparent;
        color: inherit;
        font-size: 15px;
        transform: translateY(-50%);
    }

    .card.highlight:has(> a[href*="/apo/report/"]) a,
    .card.highlight:has(> a[href*="/apo/dashboard/"]) a,
    .card.highlight:has(> a[href*="/handling.php"]) a,
    .card.highlight:has(> a[href*="/atem.php"]) a,
    .card.highlight:has(> a[href*="/apo/map/"]) a {
        display: flex;
        min-height: 42px;
        align-items: center;
        justify-content: flex-start;
        padding: 10px 12px 10px 34px;
        font-size: 13px;
        font-weight: 800;
        text-align: left;
    }
}

/* GRID SUMMARY */
.summary {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
}

@media (min-width: 851px) {
    .summary:has(> .card:not(.highlight) > a[href*="/apo/business/place/?b="]) {
        align-content: flex-start;
        align-items: stretch;
    }

    .summary:has(> .card:not(.highlight) > a[href*="/apo/business/place/?b="]) > .card:not(.highlight) {
        flex: 0 1 260px;
        max-width: 260px;
        min-height: 145px;
        padding: 26px 22px;
        border-radius: 22px;
        background: linear-gradient(145deg, #242424 0%, #181818 100%);
        border-color: #333333;
        box-shadow: 0 18px 38px rgba(0, 0, 0, .28);
    }

    .summary:has(> .card:not(.highlight) > a[href*="/apo/business/place/?b="]) > .card:not(.highlight)::before {
        margin-bottom: 14px;
        color: #F58634;
        font-size: 26px;
    }

    .summary:has(> .card:not(.highlight) > a[href*="/apo/business/place/?b="]) > .card:not(.highlight) a {
        font-size: 15px;
        font-weight: 800;
        letter-spacing: .01em;
    }

    .summary:has(> .card:not(.highlight) > a[href*="/apo/business/place/?b="]) > .card:not(.highlight):hover {
        background: linear-gradient(145deg, #2b2b2b 0%, #1d1d1d 100%);
        border-color: rgba(245, 134, 52, .55);
        transform: translateY(-6px);
        box-shadow: 0 24px 48px rgba(0, 0, 0, .34);
    }
}

.summary-caos {
    max-width: 920px;
    margin: 0 auto 30px;
    gap: 12px;
    align-items: center;
}

.summary-separator {
    margin-top: 30px;
}

/* CARDS */
.card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #202020 0%, #181818 100%);
    color: #f5f5f5;
    padding: 20px 18px;
    border-radius: 18px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #2d2d2d;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
    flex: 1 1 190px;
    max-width: 230px;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.card::before {
    content: "▦";
    display: inline-flex;
    width: auto;
    height: auto;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    border-radius: 0;
    background: transparent;
    color: #F58634;
    font-family: "Segoe UI Symbol", "Arial Unicode MS", Arial, sans-serif;
    font-weight: 800;
    font-size: 20px;
    line-height: 1;
    filter: grayscale(1) saturate(0);
}

.card::after {
    display: none;
}

.card.status-ok {
    background: linear-gradient(145deg, #2f8f46 0%, #1f6f35 100%);
    color: #ffffff;
    border-color: #3fbf62;
}

.card.status-notok {
    background: linear-gradient(145deg, #b82f2f 0%, #821f1f 100%);
    color: #ffffff;
    border-color: #e04848;
}

.card.status-disabled {
    background: linear-gradient(145deg, #4b5563 0%, #374151 100%);
    color: #9ca3af;
    border-color: #6b7280;
}

.caos-lam {
    background: #f77f00;
    color: #000;
}

.caos-mark {
    background: #d62828;
    color: #000;
}

.caos-fup {
    background: #fcbf49;
    color: #000;
}

.caos-inac {
    background: #ffffff;
    color: #000;
}

.card a {
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: inherit;
    display: block;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/apo/business/?b="]),
.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/apo/business/place/?b="]),
.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/monit/"]),
.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/apo/business/place/group/"]) {
    cursor: pointer;
}

.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail) > a[href*="/apo/business/?b="]::after,
.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail) > a[href*="/apo/business/place/?b="]::after,
.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail) > a[href*="/monit/"]::after,
.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail) > a[href*="/apo/business/place/group/"]::after {
    content: "";
    position: absolute;
    inset: -999px;
    z-index: 3;
}

.card:hover {
    background: linear-gradient(145deg, #252525 0%, #1b1b1b 100%);
    transform: translateY(-5px);
    border-color: rgba(245, 134, 52, .45);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .3);
}

.card.highlight {
    background: linear-gradient(145deg, #F58634 0%, #dd7428 100%);
    color: #000;
    border-color: rgba(255, 255, 255, .18);
}

.card.highlight::before {
    content: "●";
    background: transparent;
    color: #000;
}

.card.highlight:has(> a[href*="/apo/report/"])::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background-color: transparent;
    background-image: url("/apo/icon/icon-report.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.card.highlight:has(> a[href*="/apo/dashboard/"])::before {
    content: "📊︎";
}

.card.highlight:has(> a[href*="/apo/dashboard/"])::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    background-color: transparent;
    background-image: url("/apo/icon/icon-dashboard.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.card.highlight:has(> a[href*="/handling.php"])::before {
    content: "⚠︎";
}

.card.highlight:has(> a[href*="/apo/map/"])::before {
    content: "⌖";
}

.card.highlight:has(> a[href*="profile=quali"])::before {
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    background-color: transparent;
    background-image: url("/apo/icon/icon-quality.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0);
}

.card.highlight:has(> a[href*="profile=oper"])::before {
    content: "";
    display: block;
    width: 28px;
    height: 28px;
    background-color: transparent;
    background-image: url("/apo/icon/icon-operation.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0);
}

.card.highlight::after {
    background: #000;
    opacity: .45;
}

.card:not(.highlight):has(> a[href*="/apo/business/?b="])::before {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    background-color: transparent;
    background-image: url("/apo/icon/icon-business.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.card:not(.highlight):has(> a[href*="/apo/business/place/?b="])::before {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    background-color: transparent;
    background-image: url("/apo/icon/icon-place.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.card:not(.highlight):has(> a[href*="/monit/"])::before {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    background-color: transparent;
    background-image: url("/apo/icon/icon-cold-room.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.card:not(.highlight):has(> a[href*="/apo/business/place/group/"])::before {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    background-color: transparent;
    background-image: url("/apo/icon/icon-cold-room.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.card:not(.highlight):has(> a[href*="/monit/cof/"])::before,
.card:not(.highlight):has(> a[href*="/monit/comp"])::before,
.card:not(.highlight):has(> a[href*="/monit/compressor"])::before {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    background-color: transparent;
    background-image: url("/apo/icon/icon-compressor.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
}

/* Equipment icons in the regular place equipment cards. */
.card[class*="equip-boc" i]::before,
.card:not(.highlight):has(> a[href*="/monit/boc/" i])::before {
    background-image: url("/apo/icon/icon-counter.png");
}

.card[class*="equip-dipo" i]::before,
.card:not(.highlight):has(> a[href*="/monit/dipo/" i])::before {
    background-image: url("/apo/icon/icon-high-voltage.png");
}

.card[class*="equip-evo" i]::before,
.card:not(.highlight):has(> a[href*="/monit/evo/" i])::before {
    background-image: url("/apo/icon/icon-wave.png");
}

.card[class*="equip-hiro" i]::before,
.card[class*="equip-roof" i]::before,
.card:not(.highlight):has(> a[href*="/monit/hiro/" i])::before,
.card:not(.highlight):has(> a[href*="/monit/roof/" i])::before {
    background-image: url("/apo/icon/icon-compressor.png");
}

.card[class*="equip-pron" i]::before,
.card:not(.highlight):has(> a[href*="/monit/pron/" i])::before {
    background-image: url("/apo/icon/icon-wind.png");
}

.card[class*="equip-pyon" i]::before,
.card:not(.highlight):has(> a[href*="/monit/pyon/" i])::before {
    background-image: url("/apo/icon/icon-electric-current.png");
}

.card[class*="equip-raan" i]::before,
.card:not(.highlight):has(> a[href*="/monit/raan/" i])::before {
    background-image: url("/apo/icon/icon-liquid-level.png");
}

.card[class*="equip-sona" i]::before,
.card:not(.highlight):has(> a[href*="/monit/sona/" i])::before {
    background-image: url("/apo/icon/icon-datacenter.png");
}

.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/apo/business/place/?b="]) {
    flex: 0 1 260px;
    width: 260px;
    max-width: 260px;
    min-height: 145px;
}

.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/monit/"]),
.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/apo/business/place/group/"]) {
    flex: 0 1 260px;
    width: 260px;
    max-width: 260px;
    min-height: 130px;
}

.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/apo/business/place/?b="]) a,
.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/monit/"]) a,
.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/apo/business/place/group/"]) a {
    width: 100%;
}

.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/monit/"]),
.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/apo/business/place/group/"]) {
    justify-content: flex-start;
    gap: 10px;
    padding-top: 22px;
    padding-bottom: 16px;
}

.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/monit/"])::before,
.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/apo/business/place/group/"])::before {
    flex: 0 0 30px;
    margin: 0 auto;
}

.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/monit/"]) > a,
.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/apo/business/place/group/"]) > a {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(.card-sensors) > .card-sensors {
    margin: auto 0 0;
}

.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> .card-sensors) > .card-sensors {
    margin: 8px 0 0;
}

.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(.sensor-item.status-normal) {
    background: #009f5d;
    border-color: #18c47b;
    color: #ffffff;
    min-height: 190px;
    justify-content: space-between;
    box-shadow: 0 18px 34px rgba(0, 159, 93, .26);
}

.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(.sensor-item.status-anormal) {
    background: #d72828;
    border-color: #ff5a5a;
    color: #ffffff;
    min-height: 190px;
    justify-content: space-between;
    box-shadow: 0 18px 34px rgba(215, 40, 40, .28);
}

.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> .card-sensors)::before {
    content: "";
    display: block;
    width: 42px;
    height: 42px;
    min-width: 42px;
    margin: 8px auto 10px;
    background: transparent url("/apo/icon/icon-temperature.png") center / contain no-repeat;
    filter: brightness(0) invert(1);
    opacity: .95;
}

.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/monit/cof/"])::before,
.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/monit/comp"])::before,
.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/monit/compressor"])::before,
.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/monit/roof/"])::before,
.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/monit/hiro/"])::before,
.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="ccp"])::before,
.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="tcp"])::before,
.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="vcp"])::before {
    background-image: url("/apo/icon/icon-compressor.png");
}

.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/monit/boc/"])::before {
    background-image: url("/apo/icon/icon-counter.png");
}

.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/monit/dipo/"])::before {
    background-image: url("/apo/icon/icon-high-voltage.png");
}

.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/monit/evo/"])::before {
    background-image: url("/apo/icon/icon-wave.png");
}

.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/monit/hiro/"])::before {
    background-image: url("/apo/icon/icon-compressor.png");
}

.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/monit/pron/"])::before {
    background-image: url("/apo/icon/icon-wind.png");
}

.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/monit/pyon/"])::before {
    background-image: url("/apo/icon/icon-electric-current.png");
}

.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/monit/raan/"])::before {
    background-image: url("/apo/icon/icon-liquid-level.png");
}

.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/monit/sona/"])::before {
    background-image: url("/apo/icon/icon-datacenter.png");
}

.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> .card-sensors) > a {
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> .card-sensors) .card-sensors {
    gap: 8px;
    margin-top: 8px;
}

.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> .card-sensors) .sensor-item {
    background: rgba(0, 0, 0, .18);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #ffffff;
    border-radius: 10px;
    padding: 7px 9px;
}

.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> .card-sensors) .sensor-item .label,
.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> .card-sensors) .sensor-item .value {
    color: #ffffff;
}

.summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):hover {
    transform: translateY(-4px);
    filter: brightness(1.04);
}

.card.quali {
    flex: 1 1 340px;
    max-width: 340px;
    height: auto;
    min-height: 190px;
    padding: 22px 20px;
    justify-content: space-between;
    gap: 10px;
}

.card.quali > a:first-child {
    font-size: 14px;
    font-weight: 800;
    color: #f6f6f6;
}

.card.quali > a:last-child {
    display: inline-flex;
    width: auto;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 9px 16px;
    border: 1px solid rgba(245, 134, 52, .45);
    border-radius: 999px;
    background: rgba(245, 134, 52, .12);
    color: #F58634;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.card.quali > a:last-child::before {
    content: "▤";
    margin-right: 7px;
    font-family: "Segoe UI Symbol", "Arial Unicode MS", Arial, sans-serif;
}

.card.quali > a:last-child:hover {
    background: #F58634;
    border-color: #F58634;
    color: #111111;
    transform: translateY(-1px);
}

.card.quali .card-sensors {
    margin: 4px 0;
    gap: 6px;
}

.card.quali .sensor-item {
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 10px;
    font-size: 12px;
    gap: 6px;
}

.card.handling {
    flex: 0 1 260px;
    width: 260px;
    max-width: 260px;
    height: auto;
    min-height: 130px;
    overflow: hidden;
}

.card.index {
    height: 50px;
    min-height: 50px;
    font-size: 12px;
}

.card.card-caos {
    flex: 0 0 auto;
    max-width: none;
    width: auto;
    min-width: 128px;
    height: auto;
    min-height: 58px;
    padding: 11px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 900;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, .14);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .22);
}

.card.card-caos::before {
    display: inline-flex;
    width: 30px;
    height: 30px;
    min-width: 30px;
    align-items: center;
    justify-content: center;
    margin: 0;
    border-radius: 10px;
    background: rgba(0, 0, 0, .13);
    color: currentColor;
    font-size: 16px;
    line-height: 1;
    filter: grayscale(1) saturate(0);
}

.card.card-caos a {
    display: block;
    line-height: 1.15;
    width: auto;
    white-space: nowrap;
    text-align: center;
}

.card.card-caos:hover {
    transform: translateY(-3px);
    filter: brightness(1.04);
    box-shadow: 0 18px 34px rgba(0, 0, 0, .3);
}

.card.card-caos.caos-lam:hover {
    background: #f77f00;
}

.card.card-caos.caos-mark:hover {
    background: #d62828;
}

.card.card-caos.caos-fup:hover {
    background: #fcbf49;
}

.card.card-caos.caos-inac:hover {
    background: #ffffff;
}

.card.card-caos.caos-lam::before {
    content: "⚠︎";
}

.card.card-caos.caos-mark::before {
    content: "△";
}

.card.card-caos.caos-fup::before {
    content: "⌕";
}

.card.card-caos.caos-inac::before {
    content: "○";
}

.card.card-caos::before {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .16);
    font-family: "Segoe UI Symbol", Arial, sans-serif;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
}

.card.card-caos a {
    flex: 1;
    text-align: center;
}

.card.card-caos.caos-lam::before {
    content: "\26A0";
}

.card.card-caos.caos-mark::before {
    content: "\0021";
}

.card.card-caos.caos-fup::before {
    content: "\23F1";
}

.card.card-caos.caos-inac::before {
    content: "\25CB";
}

.card.card-caos.caos-inac {
    color: #111;
}

.card.card-caos.caos-inac::before {
    background: rgba(0, 0, 0, .08);
    color: #111;
}

.card.card-caos-detail {
    flex: 1 1 320px;
    max-width: 320px;
    height: 50px;
    min-height: 50px;
    font-size: 12px;
}

.card.index::before,
.card.card-caos-detail::before,
.card.handling::before,
.card.index::after,
.card.card-caos::after,
.card.card-caos-detail::after,
.card.handling::after {
    display: none;
}

.card-sensors {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 5px;
}

.sensor-item {
    display: flex;
    justify-content: center;
    background: transparent;
    padding: 2px 2px;
    border-radius: 4px;
    font-size: 0.95rem;
    gap: 2px;
}

.sensor-item .label {
    color: white;
    font-weight: bold;
}

.sensor-item .value {
    font-weight: bold;
    text-shadow: 0px 0px 1px rgba(0,0,0,0.1);
}

.sensor-item.status-normal {
    background: linear-gradient(145deg, #2f8f46 0%, #1f6f35 100%);
    color: #ffffff;
    border: 1px solid #3fbf62;
}

.sensor-item.status-anormal {
    background: linear-gradient(145deg, #b82f2f 0%, #821f1f 100%);
    color: #ffffff;
    border: 1px solid #e04848;
}

.chart-container {
    width: 100%;
    margin-top: 40px;
}

.chart-container > div {
    width: 100% !important;
}

.group-equipment {
    width: 100%;
    margin-bottom: 22px;
    position: relative;
}

.group-equipment:last-of-type {
    margin-bottom: 70px;
}

.group-equipment-title {
    display: block !important;
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 58px;
    margin: 22px 0 14px;
    padding: 16px 20px 18px;
    border: 1px solid #333333;
    border-radius: 18px;
    background: #1c1c1c;
    color: #f5f5f5;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: .02em;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.group-equipment-title::after {
    display: none;
    content: none;
}

.group-equipment-frame {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.group-equipment-frame iframe {
    display: block;
    width: calc(100% + 235px) !important;
    max-width: none;
    margin-left: -235px;
    margin-bottom: -58px;
}

@media (max-width: 850px) {
    .group-equipment {
        margin-bottom: 18px;
    }

    .group-equipment:last-of-type {
        margin-bottom: 44px;
    }

    .group-equipment-title {
        min-height: 42px;
        margin-top: 14px;
        padding: 13px 12px 16px;
        font-size: 17px;
    }

    .group-equipment-frame iframe {
        width: 100% !important;
        margin-left: 0;
        margin-bottom: -46px;
    }
}

/* LOGIN */
.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: #1c1c1c;
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    text-align: center;
}

.login-card img {
    width: 200px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 34px;
    border-radius: 0;
}

.login-card h1 {
    margin: 0 0 28px;
}

.login-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #333;
    background: #111;
    color: #fff;
    font-size: 14px;
}

.login-card input:focus {
    outline: none;
    border-color: #555;
}

.login-card button {
    width: 100%;
    padding: 12px;
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.login-card button:hover {
    background: #3a3a3a;
}

.show-password {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #aaa;
    margin-top: -5px;
    margin-bottom: 15px;
    padding-left: 12px;
}

.show-password input {
    width: auto !important;
    margin: 0;
    cursor: pointer;
}

.show-password span {
    cursor: pointer;
}

.show-password:hover {
    color: #fff;
}

/* ALERT */
.alert {
    background: linear-gradient(145deg, #3a1f1f 0%, #2a1515 100%);
    color: #ffb3b3;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #7a3030;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

/* PREFERENCES */
.pref-table {
    width: 100%;
    max-width: 520px;
    margin: 46px auto;
    padding: 30px;
    display: block;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #2d2d2d;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(245, 134, 52, .12), transparent 34%),
        linear-gradient(145deg, #202020 0%, #171717 100%);
    box-shadow: 0 22px 48px rgba(0, 0, 0, .32);
    color: #f4f4f4;
}

.pref-table tbody,
.pref-table tr,
.pref-table th,
.pref-table td {
    display: block;
    width: 100%;
}

.pref-table th {
    padding: 0 0 22px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.15;
    text-align: left;
    letter-spacing: .01em;
}

.pref-table th::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 10px;
    vertical-align: -3px;
    background-image: url("/apo/icon/icon-settings.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.pref-table tr {
    margin: 0;
}

.pref-table td {
    padding: 0;
    color: #d8d8d8;
    text-align: left !important;
}

.pref-table tr:has(input[name="theme"]) {
    margin-top: 4px;
    padding: 18px;
    border: 1px solid #303030;
    border-radius: 18px;
    background: rgba(255, 255, 255, .035);
}

.pref-table tr:has(input[name="theme"]) td:first-child {
    margin-bottom: 12px;
    color: #a9a9a9;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pref-table tr:has(input[name="theme"]) td:last-child {
    color: #eeeeee;
    font-size: 15px;
    font-weight: 700;
    line-height: 2.15;
}

.pref-table input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 0 8px 0 0;
    accent-color: #F58634;
    vertical-align: -2px;
}

.pref-table tr:has(input[type="submit"]) {
    margin-top: 18px;
}

.pref-table input[type="submit"] {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: linear-gradient(145deg, #F58634 0%, #dd7428 100%);
    color: #111111;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    box-shadow: 0 14px 28px rgba(245, 134, 52, .18);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.pref-table input[type="submit"]:hover {
    background: linear-gradient(145deg, #ff9447 0%, #F58634 100%);
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(245, 134, 52, .26);
}

.pref-table .alert {
    margin: 0 0 18px;
    min-height: 48px;
    padding: 15px 18px;
    background: linear-gradient(145deg, #184f2b 0%, #10351e 100%);
    color: #c8ffd8;
    border-color: #2f9a53;
    line-height: 1.35;
    text-align: center !important;
}

@media (max-width: 480px) {
    .pref-table {
        margin: 26px auto;
        padding: 22px;
        border-radius: 20px;
    }

    .pref-table th {
        font-size: 21px;
    }

    .pref-table tr:has(input[name="theme"]) {
        padding: 15px;
    }
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #777;
}

.footer a {
    color: #777;
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

/* REPORT */
.report-table {
    width: 100%;
    max-width: 760px;
    margin: 40px auto;
    background: linear-gradient(145deg, #202020 0%, #181818 100%);
    border-radius: 22px;
    border: 1px solid #2d2d2d;
    padding: 34px;
    border-collapse: separate;
    border-spacing: 0 16px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.report-table th {
    text-align: right;
    font-weight: 800;
    color: #c9c9c9;
    padding-right: 18px;
    vertical-align: middle;
    width: 165px;
    font-size: 13px;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.report-table td {
    text-align: left;
    padding: 8px 10px;
    color: #f1f1f1;
    font-size: 14px;
    line-height: 1.7;
}

.report-table input:not([type="radio"]):not([type="submit"]),
.report-table input[type="text"],
.report-table input[type="submit"],
.report-table select {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    border-radius: 12px;
    border: 1px solid #343434;
    background: #111111;
    color: #fff;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.report-table input:not([type="radio"]):not([type="submit"]):focus,
.report-table input[type="text"]:focus,
.report-table select:focus {
    outline: none;
    border-color: #F58634;
    background: #151515;
    box-shadow: 0 0 0 3px rgba(245, 134, 52, .14);
}

.report-table input[type="radio"] {
    margin: 0 8px 10px 0;
    accent-color: #F58634;
    transform: translateY(1px);
}

.report-table input[type="submit"] {
    background: linear-gradient(145deg, #F58634 0%, #dd7428 100%);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #111;
    cursor: pointer;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: 0 12px 24px rgba(245, 134, 52, .18);
}

.report-table input[type="submit"]:hover {
    background: linear-gradient(145deg, #ff9447 0%, #F58634 100%);
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(245, 134, 52, .26);
}

/* REPORT CALENDAR */
.jcalendar {
    font-family: Arial, sans-serif;
    color: #f3f3f3;
}

.jcalendar .jcalendar-content {
    overflow: hidden;
    background: linear-gradient(145deg, #202020 0%, #151515 100%);
    border: 1px solid #343434;
    border-radius: 18px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, .45);
}

.jcalendar-header {
    padding: 16px 16px 8px;
    color: #ffffff;
}

.jcalendar-header span {
    font-size: 15px;
    font-weight: 900;
}

.jcalendar-prev,
.jcalendar-next {
    position: relative;
    width: 32px;
    height: 32px;
    opacity: .85;
    filter: none;
    border-radius: 10px;
    background-color: #1b1b1b;
    background-image: none !important;
    border: 1px solid #343434;
}

.jcalendar-prev::before,
.jcalendar-next::before {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F58634;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.jcalendar-prev::before {
    content: "‹";
}

.jcalendar-next::before {
    content: "›";
}

.jcalendar-prev:hover,
.jcalendar-next:hover {
    background-color: #F58634;
    border-color: #F58634;
    opacity: 1;
}

.jcalendar-prev:hover::before,
.jcalendar-next:hover::before {
    color: #111111;
}

.jcalendar-table {
    padding: 10px 14px 14px;
}

.jcalendar-table > table {
    overflow: hidden;
    background: transparent;
    border-collapse: separate;
    border-spacing: 4px;
}

.jcalendar-weekday {
    background: transparent;
    color: #F58634;
    padding: 8px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.jcalendar-table thead td {
    height: auto;
    padding: 6px;
}

.jcalendar-table > table > tbody > tr {
    height: auto;
}

.jcalendar-table > table > tbody td {
    min-width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    color: #d8d8d8;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.jcalendar-table > table > tbody td:hover {
    background: #2a2a2a;
    color: #ffffff;
    transform: translateY(-1px);
}

.jcalendar-selected,
.jcalendar-table > table > tbody td.jcalendar-selected {
    background: #F58634;
    color: #111111;
}

.jcalendar-sunday {
    color: #ff8c8c;
}

.jcalendar-disabled {
    color: #5f5f5f !important;
}

.jcalendar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px 16px;
    background: #121212;
    border-top: 1px solid #2d2d2d;
}

.jcalendar-reset,
.jcalendar-confirm,
.jcalendar-update {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: #F58634;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.jcalendar-reset,
.jcalendar-update {
    background: #1b1b1b;
    border-color: #343434;
}

.jcalendar-reset:hover,
.jcalendar-update:hover {
    background: #242424;
    border-color: rgba(245, 134, 52, .5);
    transform: translateY(-1px);
}

.jcalendar-confirm {
    color: #111111;
    background: linear-gradient(145deg, #F58634 0%, #dd7428 100%);
    border-color: rgba(255, 255, 255, .12);
    box-shadow: 0 10px 22px rgba(245, 134, 52, .2);
}

.jcalendar-confirm:hover {
    background: linear-gradient(145deg, #ff9447 0%, #F58634 100%);
    transform: translateY(-1px);
}

.jcalendar-container select {
    height: 34px;
    margin: 0 2px;
    padding: 6px 8px;
    border: 1px solid #343434;
    border-radius: 10px;
    background: #1b1b1b;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.jcalendar-time {
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.jcalendar-input {
    background-color: #111111 !important;
    background-position: top 50% right 12px !important;
}

/* TABLE DEFAULT */
.table-default {
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0 auto;
    border-collapse: collapse;
    background: #1c1c1c;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #2a2a2a;
}

.table-default th {
    background: #242424;
    padding: 14px;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    border-bottom: 1px solid #2a2a2a;
}

.table-default td {
    padding: 12px;
    font-size: 13px;
    color: #ccc;
    border-bottom: 1px solid #2a2a2a;
}

.table-default tr:hover td {
    background: #222;
}

.table-default tr:last-child td {
    border-bottom: none;
}

/* RESPONSIVO */
@media (max-width: 480px) {
    .login-card {
        padding: 30px;
    }
    .container {
        padding: 15px 10px;
    }
    .header {
        margin-bottom: 15px;
    }
    .header img {
        width: 120px;
        margin-bottom: 8px;
    }
    .header h1 {
        font-size: 16px;
        margin-bottom: 4px;
        line-height: 1.2;
    }
    .summary {
        gap: 10px;
    }
    .card {
        flex-basis: 100%;
        max-width: none;
    }
    .summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/apo/business/place/?b="]),
    .summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/monit/"]),
    .summary > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> a[href*="/apo/business/place/group/"]) {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
    }
    .summary.page-atem {
        align-items: stretch;
        gap: 10px;
    }
    .summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> .card-sensors) {
        flex: 1 1 calc(50% - 10px);
        width: calc(50% - 10px);
        max-width: none;
        min-height: 165px;
        padding: 14px 10px;
        border-radius: 14px;
    }
    .summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> .card-sensors)::before {
        width: 34px;
        height: 34px;
        min-width: 34px;
        margin: 6px auto 8px;
    }
    .summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> .card-sensors) > a {
        min-height: 34px;
        font-size: 11px;
        line-height: 1.2;
    }
    .summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> .card-sensors) .card-sensors {
        gap: 6px;
        margin-top: 6px;
    }
    .summary.page-atem > .card:not(.highlight):not(.card-caos):not(.card-caos-detail):has(> .card-sensors) .sensor-item {
        padding: 6px 7px;
        font-size: 11px;
        line-height: 1.15;
    }
    .card.index {
        flex: 1 1 calc(50% - 5px);
        max-width: calc(50% - 5px);
    }
    .report-table {
        display: block;
        width: 100%;
        max-width: none;
        margin: 20px 0;
        padding: 20px 16px;
        border-spacing: 0;
    }
    .report-table tbody,
    .report-table tr,
    .report-table th,
    .report-table td {
        display: block;
        width: 100%;
    }
    .report-table tr {
        margin-bottom: 16px;
    }
    .report-table th {
        padding: 0 0 6px 0;
        text-align: left !important;
        width: 100%;
        font-size: 11px;
    }
    .report-table td {
        padding: 0;
        text-align: left !important;
    }
    .report-table input[type="submit"] {
        margin-top: 4px;
    }
    .jcalendar.jcalendar-focus {
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
    }
    .jcalendar .jcalendar-content {
        width: calc(100vw - 20px) !important;
        max-width: 360px;
    }
    .jcalendar-table {
        padding: 8px;
    }
    .jcalendar-table > table {
        border-spacing: 2px;
    }
    .jcalendar-table > table > tbody td {
        min-width: 30px;
        height: 32px;
        font-size: 12px;
    }
    .chart-container {
        margin-top: 15px;
    }
}

.componentHide {
    display: none;
}
.componentShow {
    display: visible;
}

/* APO DASHBOARD POLISH */
.summary-caos {
    padding: 12px;
    border: 1px solid #252525;
    border-radius: 20px;
    background: rgba(255, 255, 255, .025);
}

.card.card-caos {
    min-width: 138px;
    padding: 12px 16px;
    border-radius: 18px;
}

.card.card-caos::before {
    background: rgba(255, 255, 255, .16);
}

.card.card-caos a {
    font-size: 12px;
    font-weight: 900;
}

.card.card-caos a br + * {
    font-size: 14px;
}

.report-table {
    position: relative;
}

.report-table::before {
    content: "Relatórios";
    display: block;
    margin-bottom: 18px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .01em;
}

.report-table tr:first-child td {
    padding: 14px;
    border: 1px solid #303030;
    border-radius: 16px;
    background: #171717;
    line-height: 2;
}

.report-table tr:first-child td input[type="radio"] {
    margin-left: 8px;
}

.report-table tr:first-child td input[type="radio"]:first-child {
    margin-left: 0;
}

.report-table select:hover,
.report-table input:not([type="radio"]):not([type="submit"]):hover {
    border-color: #464646;
    background: #151515;
}

.sensor-item {
    border: 1px solid transparent;
}

.sensor-item.status-normal,
.sensor-item.status-anormal {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
}

.sensor-item.status-normal::before,
.sensor-item.status-anormal::before {
    margin-right: 5px;
    font-family: "Segoe UI Symbol", "Arial Unicode MS", Arial, sans-serif;
    font-weight: 900;
}

.sensor-item.status-normal::before {
    content: "✓";
}

.sensor-item.status-anormal::before {
    content: "!";
}

.footer {
    opacity: .72;
    transition: opacity .2s ease;
}

.footer:hover {
    opacity: 1;
}

.footer a {
    padding: 6px 10px;
    border-radius: 999px;
}

.footer a:hover {
    background: rgba(245, 134, 52, .1);
    color: #F58634;
}

.table-default {
    box-shadow: 0 16px 36px rgba(0, 0, 0, .26);
}

.table-default th {
    background: #202020;
    color: #F58634;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.table-default tr:nth-child(even) td {
    background: rgba(255, 255, 255, .018);
}

.table-default tr:hover td {
    background: rgba(245, 134, 52, .08);
}

@media (max-width: 760px) {
    .summary-caos {
        padding: 10px;
        border-radius: 16px;
    }

    .card.card-caos {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
        max-width: none;
        justify-content: center;
        text-align: center;
    }

    .card.card-caos::before {
        width: 20px;
        height: 20px;
        min-width: 20px;
        border-radius: 0;
        background: transparent;
        color: currentColor;
        font-size: 13px;
    }

    .report-table::before {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .report-table tr:first-child td {
        padding: 12px;
        line-height: 2.2;
    }

    .table-default {
        width: 100%;
        max-width: 900px;
        margin: 40px auto 0;
        overflow: hidden;
    }

    .table-default th,
    .table-default td {
        text-align: center;
    }
}

.card.card-caos-detail:has(> a[href*="/monit/"]) {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 320px;
}

.card.card-caos-detail:has(> a[href*="/monit/"])::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    min-width: 24px;
    background-color: transparent;
    background-image: url("/apo/icon/icon-cold-room.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
}

.card.card-caos-detail:has(> a[href*="/monit/cof/"])::before,
.card.card-caos-detail:has(> a[href*="/monit/comp"])::before,
.card.card-caos-detail:has(> a[href*="/monit/compressor"])::before {
    background-image: url("/apo/icon/icon-compressor.png");
}

@media (max-width: 480px) {
    .footer {
        padding: 14px 10px;
        font-size: 12px;
    }

    .card.card-caos {
        flex-basis: 100%;
        min-height: 52px;
    }

    .sensor-item {
        font-size: 12px;
    }
}

.card.card-caos.caos-inac,
.card.card-caos.caos-inac a {
    color: #111 !important;
}

.card.card-caos.caos-inac:hover,
.card.card-caos.caos-inac:hover a {
    background: #ffffff !important;
    color: #111 !important;
}

.card.card-caos.caos-inac::before {
    content: "\25CB";
    color: #111 !important;
    background: rgba(0, 0, 0, .08) !important;
}

.card.card-caos.caos-inac:hover::before {
    color: #111 !important;
    background: rgba(0, 0, 0, .08) !important;
}

@media (max-width: 760px) {
    .card.card-caos.caos-inac::before {
        background: transparent !important;
        color: #111 !important;
    }
}

.card.caos-inac,
.card.caos-inac a,
.card.caos-inac:hover,
.card.caos-inac:hover a {
    background: #ffffff !important;
    color: #111111 !important;
}

.card.caos-inac::before,
.card.caos-inac:hover::before {
    color: #111111 !important;
    background: rgba(0, 0, 0, .08) !important;
    filter: none !important;
}

@media (max-width: 760px) {
    .card.card-caos::before,
    .card.card-caos:hover::before {
        background: transparent !important;
        color: #111111 !important;
        filter: none !important;
    }

    .card.card-caos.caos-inac,
    .card.card-caos.caos-inac:hover {
        background: #ffffff !important;
        color: #111111 !important;
    }
}

.card.card-caos.caos-inac::before,
.card.card-caos.caos-inac:hover::before,
.card.caos-inac::before,
.card.caos-inac:hover::before {
    content: "\25CB" !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #111111 !important;
    filter: none !important;
}

@media (max-width: 760px) {
    .summary-caos .card.card-caos,
    .summary-caos .card.card-caos:hover,
    .summary-caos .card.card-caos a,
    .summary-caos .card.card-caos:hover a {
        color: #111111 !important;
    }

    .summary-caos .card.card-caos::before,
    .summary-caos .card.card-caos:hover::before {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        color: #111111 !important;
        filter: none !important;
    }
}

.summary-caos .card.card-caos.caos-inac::before,
.summary-caos .card.card-caos.caos-inac:hover::before,
.card.card-caos.caos-inac::before,
.card.card-caos.caos-inac:hover::before {
    content: "\00D7" !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #111111 !important;
    filter: none !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
}

@media (max-width: 850px) {
    .card.highlight:has(> a[href*="/apo/report/"])::before,
    .card.highlight:has(> a[href*="/apo/dashboard/"])::before {
        filter: brightness(0) !important;
    }

    .card.highlight:has(> a[href*="/apo/report/"]),
    .card.highlight:has(> a[href*="/apo/dashboard/"]),
    .card.highlight:has(> a[href*="/handling.php"]),
    .card.highlight:has(> a[href*="/apo/map/"]),
    .card.highlight:has(> a[href*="/apo/report/"]) a,
    .card.highlight:has(> a[href*="/apo/dashboard/"]) a,
    .card.highlight:has(> a[href*="/handling.php"]) a,
    .card.highlight:has(> a[href*="/apo/map/"]) a,
    .card.highlight:has(> a[href*="/apo/report/"])::before,
    .card.highlight:has(> a[href*="/apo/dashboard/"])::before,
    .card.highlight:has(> a[href*="/handling.php"])::before,
    .card.highlight:has(> a[href*="/apo/map/"])::before {
        color: #111111 !important;
    }
}

.card.card-caos-detail.caos-inac,
.card.card-caos-detail.caos-inac a,
.card.card-caos-detail.caos-inac:hover,
.card.card-caos-detail.caos-inac:hover a {
    background: #ffffff !important;
    color: #111111 !important;
}

.card.card-caos-detail.caos-inac:has(> a[href*="/monit/"])::before,
.card.card-caos-detail.caos-inac:has(> a[href*="/monit/"]):hover::before {
    content: "" !important;
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    background-color: transparent !important;
    background-image: url("/apo/icon/icon-cold-room.png") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    filter: brightness(0) !important;
    opacity: 1 !important;
}

.card.card-caos-detail.caos-inac:has(> a[href*="/monit/cof/"])::before,
.card.card-caos-detail.caos-inac:has(> a[href*="/monit/comp"])::before,
.card.card-caos-detail.caos-inac:has(> a[href*="/monit/compressor"])::before,
.card.card-caos-detail.caos-inac:has(> a[href*="/monit/cof/"]):hover::before,
.card.card-caos-detail.caos-inac:has(> a[href*="/monit/comp"]):hover::before,
.card.card-caos-detail.caos-inac:has(> a[href*="/monit/compressor"]):hover::before {
    background-image: url("/apo/icon/icon-compressor.png") !important;
}

.card.card-caos-detail:has(> a[href*="/monit/"])::before,
.card.card-caos-detail:has(> a[href*="/monit/"]):hover::before {
    display: none !important;
    content: none !important;
    background-image: none !important;
}

@media (max-width: 850px) {
    .card.highlight:has(> a[href*="/apo/report/"])::before,
    .card.highlight:has(> a[href*="/apo/dashboard/"])::before,
    .card.highlight:has(> a[href*="/handling.php"])::before,
    .card.highlight:has(> a[href*="/apo/map/"])::before {
        color: #111111 !important;
        filter: brightness(0) !important;
    }
}

@media (max-width: 760px) {
    .summary-caos {
        align-items: stretch !important;
        gap: 10px !important;
    }

    .summary-caos .card.card-caos {
        flex: 1 1 calc(50% - 10px) !important;
        max-width: none !important;
        min-width: 140px !important;
        min-height: 52px !important;
        padding: 10px 12px !important;
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 7px !important;
        text-align: center !important;
    }

    .summary-caos .card.card-caos::before,
    .summary-caos .card.card-caos:hover::before {
        position: static !important;
        flex: 0 0 18px !important;
        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        margin: 0 !important;
        transform: none !important;
        font-size: 15px !important;
        line-height: 1 !important;
    }

    .summary-caos .card.card-caos a {
        flex: 0 1 auto !important;
        width: auto !important;
        text-align: center !important;
        white-space: normal !important;
        line-height: 1.15 !important;
    }
}

.card.highlight:has(> a[href*="/atem.php"])::before {
    content: "" !important;
    display: block !important;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    background-color: transparent !important;
    background-image: url("/apo/icon/icon-atem.png") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    filter: brightness(0) invert(1) !important;
}

@media (max-width: 850px) {
    .card.highlight:has(> a[href*="/atem.php"]),
    .card.highlight:has(> a[href*="/atem.php"]) a {
        color: #111111 !important;
    }

    .card.highlight:has(> a[href*="/atem.php"])::before {
        color: #111111 !important;
        filter: brightness(0) !important;
    }
}

#componentCAOSINAC .card.card-caos-detail::before,
#componentCAOSINAC .card.card-caos-detail:hover::before {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    background: none !important;
    background-image: none !important;
}

.report-table td.alert,
.report-table .alert {
    background: linear-gradient(145deg, #5f1616 0%, #3b0f0f 100%) !important;
    color: #ffd6d6 !important;
    border: 1px solid #d64545 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 26px rgba(214, 69, 69, .22) !important;
    font-weight: 800 !important;
}

@media (min-width: 851px) {
    .nav-links a[href*="/apo/pref.php"]::before {
        background-color: transparent !important;
        filter: brightness(0) invert(1) !important;
    }
}

@media (max-width: 850px) {
    .nav-links a[href*="/apo/pref.php"]::before {
        background-color: transparent !important;
        filter: brightness(0) invert(1) !important;
    }
}

@media (hover: hover) and (pointer: fine) {
    .nav-links a[href*="/apo/pref.php"]::before {
        background-color: transparent !important;
        filter: brightness(0) invert(1) !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .nav-links a[href*="/apo/pref.php"]::before {
        background-color: transparent !important;
        filter: brightness(0) invert(1) !important;
    }
}

.nav-links a[href*="/apo/pref.php"]::before,
.nav-links a:nth-child(2)::before {
    content: "" !important;
    display: inline-block !important;
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    margin-right: 6px !important;
    background-color: transparent !important;
    background-image: url("/apo/icon/icon-settings.png") !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
}

@media (max-width: 850px) {
    .nav-links a[href$="/apo"]::before,
    .nav-links a[href$="/apo/"]::before,
    .nav-links a[href*="/apo/pref.php"]::before,
    .nav-links a:nth-child(2)::before {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
    }

    .nav-links a[href*="logout.php"]::before {
        display: inline-flex !important;
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        align-items: center !important;
        justify-content: center !important;
        margin-right: 6px !important;
        font-size: 14px !important;
        line-height: 1 !important;
        filter: grayscale(1) saturate(0) !important;
    }
}

.nav-links a[href$="/apo"]::before,
.nav-links a[href$="/apo/"]::before {
    filter: brightness(0) invert(1) !important;
}

.nav-links a[href*="logout.php"]::before {
    filter: none !important;
}

@media (max-width: 850px) {
    .nav-links a[href$="/apo"]::before,
    .nav-links a[href$="/apo/"]::before,
    .nav-links a[href*="/apo/pref.php"]::before,
    .nav-links a:nth-child(2)::before,
    .nav-links a[href*="logout.php"]::before,
    .card.highlight:has(> a[href*="/apo/report/"])::before,
    .card.highlight:has(> a[href*="/apo/dashboard/"])::before,
    .card.highlight:has(> a[href*="/handling.php"])::before,
    .card.highlight:has(> a[href*="/apo/map/"])::before {
        color: #ffffff !important;
        filter: brightness(0) invert(1) !important;
    }

    .nav-links a[href$="/apo"]::before,
    .nav-links a[href$="/apo/"]::before {
        filter: brightness(0) invert(1) !important;
    }

    .nav-links a[href*="logout.php"]::before {
        filter: none !important;
    }
}

@media (max-width: 850px) {
    .nav-links a[href$="/apo"],
    .nav-links a[href$="/apo/"],
    .nav-links a[href*="/apo/pref.php"],
    .nav-links a[href*="logout.php"] {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        line-height: 1 !important;
        vertical-align: middle !important;
    }

    .nav-links a[href$="/apo"]::before,
    .nav-links a[href$="/apo/"]::before,
    .nav-links a[href*="/apo/pref.php"]::before,
    .nav-links a:nth-child(2)::before,
    .nav-links a[href*="logout.php"]::before {
        display: inline-flex !important;
        width: 16px !important;
        height: 16px !important;
        min-width: 16px !important;
        margin: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        vertical-align: middle !important;
        background-position: center !important;
        background-size: contain !important;
    }
}

@media (max-width: 850px) {
    .card.highlight:has(> a[href*="/apo/report/"])::before,
    .card.highlight:has(> a[href*="/apo/dashboard/"])::before,
    .card.highlight:has(> a[href*="/handling.php"])::before,
    .card.highlight:has(> a[href*="/apo/map/"])::before {
        color: #111111 !important;
        filter: brightness(0) !important;
    }
}

/* =========================================================
   EQUIPMENT TYPE
   ========================================================= */
.equip-group,
.equip-aram,
.equip-boc,
.equip-cof,
.equip-dipo,
.equip-evo,
.equip-hiro,
.equip-izuq,
.equip-nyon,
.equip-pat,
.equip-pron,
.equip-pyon,
.equip-raan,
.equip-roof,
.equip-sona,
.equip-tall,
.equip-zun,
.equip-zuq {
	border-color: #2d2d2d;
}

html:has(.summary > .card.handling),
body:has(.summary > .card.handling) {
    overflow-x: hidden !important;
    overflow-y: hidden !important;
}

@media (max-width: 600px) {
    .jcalendar.jcalendar-focus.jcalendar-fullsize {
        position: fixed !important;
        top: auto !important;
        left: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        display: block !important;
        width: 100vw !important;
        max-width: 100vw !important;
        max-height: 88vh !important;
        transform: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 9999 !important;
    }

    .jcalendar.jcalendar-focus.jcalendar-fullsize .jcalendar-backdrop {
        position: fixed !important;
        inset: 0 !important;
        display: block !important;
    }

    .jcalendar.jcalendar-focus.jcalendar-fullsize .jcalendar-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .jcalendar .jcalendar-content {
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        bottom: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 18px 18px 0 0 !important;
        overflow: hidden !important;
    }

    .jcalendar-header {
        display: table-cell !important;
        padding: 10px 4px !important;
        text-align: center !important;
        vertical-align: middle !important;
    }

    .jcalendar-header span {
        font-size: 13px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    .jcalendar-prev,
    .jcalendar-next {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        padding: 0 !important;
        vertical-align: middle !important;
    }

    .jcalendar-table {
        width: 100% !important;
        padding: 8px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .jcalendar-table > table {
        display: table !important;
        width: 100% !important;
        min-width: 0 !important;
        table-layout: fixed !important;
        border-collapse: separate !important;
        border-spacing: 2px !important;
    }

    .jcalendar-table > table > thead {
        display: table-header-group !important;
    }

    .jcalendar-table > table > tbody {
        display: table-row-group !important;
    }

    .jcalendar-table > table > thead > tr,
    .jcalendar-table > table > tbody > tr {
        display: table-row !important;
        width: auto !important;
        height: auto !important;
    }

    .jcalendar-table thead td,
    .jcalendar-weekday,
    .jcalendar-table > table > tbody td {
        display: table-cell !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        box-sizing: border-box !important;
        text-align: center !important;
        vertical-align: middle !important;
    }

    .jcalendar-weekday {
        padding: 5px 0 !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
    }

    .jcalendar-table > table > tbody td {
        height: 34px !important;
        padding: 0 !important;
        border-radius: 8px !important;
        font-size: 12px !important;
        line-height: 34px !important;
    }

    .jcalendar-controls {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 10px 10px 12px !important;
    }

    .jcalendar-reset,
    .jcalendar-confirm,
    .jcalendar-update {
        flex: 1 1 96px !important;
        min-height: 34px !important;
        padding: 8px 10px !important;
        font-size: 11px !important;
    }

    .jcalendar-time,
    .jcalendar-container {
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .jcalendar-time {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 0 8px 8px !important;
    }

    .jcalendar-container select {
        flex: 0 0 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;
        height: 32px !important;
        margin: 0 !important;
        padding: 5px 6px !important;
        font-size: 11px !important;
    }
}

/* Final equipment icon mapping: place, ATEM and expanded CAOS cards. */
.card:has(> a[href*="/monit/boc/" i])::before {
    background-image: url("/apo/icon/icon-counter.png") !important;
}

.card:has(> a[href*="/monit/dipo/" i])::before {
    background-image: url("/apo/icon/icon-high-voltage.png") !important;
}

.card:has(> a[href*="/monit/evo/" i])::before {
    background-image: url("/apo/icon/icon-wave.png") !important;
}

.card:has(> a[href*="/monit/hiro/" i])::before,
.card:has(> a[href*="/monit/roof/" i])::before {
    background-image: url("/apo/icon/icon-compressor.png") !important;
}

.card:has(> a[href*="/monit/pron/" i])::before {
    background-image: url("/apo/icon/icon-wind.png") !important;
}

.card:has(> a[href*="/monit/pyon/" i])::before {
    background-image: url("/apo/icon/icon-electric-current.png") !important;
}

.card:has(> a[href*="/monit/raan/" i])::before {
    background-image: url("/apo/icon/icon-liquid-level.png") !important;
}

.card:has(> a[href*="/monit/sona/" i])::before {
    background-image: url("/apo/icon/icon-datacenter.png") !important;
}
