:root {

    --wf-navy:
        #102235;

    --wf-navy-dark:
        #091724;

    --wf-blue:
        #246fa8;

    --wf-blue-soft:
        #eaf2f8;

    --wf-green:
        #2e8b57;

    --wf-green-soft:
        #e7f3ec;

    --wf-amber:
        #d9a404;

    --wf-amber-soft:
        #fff5d7;

    --wf-red:
        #c0392b;

    --wf-red-soft:
        #f9e6e4;

    --wf-bg:
        #f4f7fa;

    --wf-surface:
        #ffffff;

    --wf-border:
        #e1e7ed;

    --wf-text:
        #22313f;

    --wf-muted:
        #72808d;

    --wf-sidebar-width:
        260px;

    --wf-radius:
        16px;

    --wf-shadow:
        0 5px 24px
        rgba(
            16,
            34,
            53,
            .07
        );
}


/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing:
        border-box;
}

html,
body {
    margin: 0;

    min-height: 100%;

    font-family:
        "Inter",
        sans-serif;

    background:
        var(--wf-bg);

    color:
        var(--wf-text);
}

body {
    font-size:
        14px;
}

a {
    color:
        var(--wf-blue);
}


/* =========================================================
   SHELL
   ========================================================= */

.wf-shell {
    min-height:
        100vh;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.wf-sidebar {

    position:
        fixed;

    inset:
        0 auto 0 0;

    width:
        var(--wf-sidebar-width);

    background:
        var(--wf-navy);

    color:
        #fff;

    display:
        flex;

    flex-direction:
        column;

    z-index:
        1030;

    overflow-y:
        auto;
}


.wf-sidebar-brand {

    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    padding:
        22px 20px;

    border-bottom:
        1px solid
        rgba(
            255,
            255,
            255,
            .09
        );
}


.wf-brand-mark {

    width:
        42px;

    height:
        42px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        12px;

    background:
        var(--wf-blue);

    color:
        #fff;

    font-weight:
        800;

    letter-spacing:
        .04em;
}


.wf-brand-name {

    font-size:
        1.05rem;

    font-weight:
        800;
}


.wf-brand-tagline {

    margin-top:
        2px;

    font-size:
        .68rem;

    color:
        rgba(
            255,
            255,
            255,
            .55
        );

    text-transform:
        uppercase;

    letter-spacing:
        .08em;
}


.wf-nav {

    padding:
        14px
        12px;

    flex:
        1;
}


.wf-nav-section {

    margin:
        18px
        10px
        7px;

    color:
        rgba(
            255,
            255,
            255,
            .38
        );

    font-size:
        .65rem;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        .11em;
}


.wf-nav-link {

    display:
        flex;

    align-items:
        center;

    gap:
        12px;

    padding:
        11px
        12px;

    margin-bottom:
        3px;

    border-radius:
        10px;

    color:
        rgba(
            255,
            255,
            255,
            .72
        );

    text-decoration:
        none;

    font-size:
        .86rem;

    font-weight:
        500;

    transition:
        .15s ease;
}


.wf-nav-link:hover {

    color:
        #fff;

    background:
        rgba(
            255,
            255,
            255,
            .08
        );
}


.wf-nav-link.active {

    color:
        #fff;

    background:
        var(--wf-blue);

    box-shadow:
        0 4px 14px
        rgba(
            36,
            111,
            168,
            .3
        );
}


.wf-nav-link i {

    width:
        18px;

    font-size:
        1rem;

    text-align:
        center;
}


.wf-sidebar-footer {

    padding:
        16px
        20px;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            .08
        );
}


.wf-system-status {

    display:
        flex;

    align-items:
        center;

    gap:
        7px;

    color:
        rgba(
            255,
            255,
            255,
            .7
        );

    font-size:
        .72rem;
}


.wf-status-dot {

    width:
        7px;

    height:
        7px;

    border-radius:
        50%;

    display:
        inline-block;
}


.wf-status-dot.online {

    background:
        #4bd37b;

    box-shadow:
        0 0 0 3px
        rgba(
            75,
            211,
            123,
            .13
        );
}


.wf-version {

    margin-top:
        6px;

    font-size:
        .65rem;

    color:
        rgba(
            255,
            255,
            255,
            .3
        );
}


/* =========================================================
   MAIN / TOP BAR
   ========================================================= */

.wf-main {

    margin-left:
        var(--wf-sidebar-width);

    min-height:
        100vh;
}


.wf-topbar {

    height:
        72px;

    position:
        sticky;

    top:
        0;

    z-index:
        1020;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    padding:
        0
        28px;

    background:
        rgba(
            255,
            255,
            255,
            .96
        );

    backdrop-filter:
        blur(12px);

    border-bottom:
        1px solid
        var(--wf-border);
}


.wf-topbar-company {

    font-weight:
        700;

    color:
        var(--wf-navy);
}


.wf-topbar-actions {

    display:
        flex;

    align-items:
        center;

    gap:
        14px;
}


.wf-icon-button {

    position:
        relative;

    width:
        40px;

    height:
        40px;

    border:
        1px solid
        var(--wf-border);

    border-radius:
        10px;

    background:
        #fff;

    color:
        var(--wf-muted);
}


.wf-notification-dot {

    position:
        absolute;

    top:
        7px;

    right:
        7px;

    width:
        7px;

    height:
        7px;

    border-radius:
        50%;

    background:
        var(--wf-red);

    border:
        2px solid
        #fff;
}


.wf-user-button {

    display:
        flex;

    align-items:
        center;

    gap:
        9px;

    border:
        0;

    background:
        transparent;

    padding:
        4px;
}


.wf-user-avatar {

    width:
        36px;

    height:
        36px;

    border-radius:
        10px;

    background:
        var(--wf-blue-soft);

    color:
        var(--wf-blue);

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    font-weight:
        800;
}


.wf-user-meta {

    display:
        flex;

    flex-direction:
        column;

    text-align:
        left;
}


.wf-user-meta strong {

    font-size:
        .78rem;
}


.wf-user-meta span {

    color:
        var(--wf-muted);

    font-size:
        .66rem;
}


.wf-mobile-menu {

    display:
        none;

    border:
        0;

    background:
        transparent;

    font-size:
        1.5rem;

    color:
        var(--wf-navy);
}


/* =========================================================
   CONTENT
   ========================================================= */

.wf-content {

    padding:
        28px;

    max-width:
        1700px;

    margin:
        0 auto;
}


.page-header {

    margin-bottom:
        24px;
}


.page-title {

    margin:
        0;

    font-weight:
        800;

    letter-spacing:
        -.02em;

    color:
        var(--wf-navy);
}


/* =========================================================
   DASHBOARD HEADER
   ========================================================= */

.wf-dashboard-heading {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        flex-start;

    gap:
        20px;

    margin-bottom:
        24px;
}


.wf-dashboard-heading h1 {

    margin:
        0;

    font-size:
        1.85rem;

    font-weight:
        800;

    color:
        var(--wf-navy);
}


.wf-dashboard-subtitle {

    margin-top:
        5px;

    color:
        var(--wf-muted);
}


.wf-live-pill {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        8px;

    padding:
        9px 13px;

    border:
        1px solid
        var(--wf-border);

    border-radius:
        100px;

    background:
        #fff;

    color:
        var(--wf-muted);

    font-size:
        .72rem;

    font-weight:
        600;
}


/* =========================================================
   KPI GRID
   ========================================================= */

.wf-kpi-grid {

    display:
        grid;

    grid-template-columns:
        repeat(
            5,
            minmax(
                0,
                1fr
            )
        );

    gap:
        16px;

    margin-bottom:
        20px;
}


.wf-kpi-card {

    padding:
        18px;

    background:
        var(--wf-surface);

    border:
        1px solid
        var(--wf-border);

    border-radius:
        var(--wf-radius);

    box-shadow:
        var(--wf-shadow);

    transition:
        transform
        .15s ease;
}


.wf-kpi-card:hover {

    transform:
        translateY(-2px);
}


.wf-kpi-icon {

    width:
        38px;

    height:
        38px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin-bottom:
        14px;

    border-radius:
        11px;

    background:
        var(--wf-blue-soft);

    color:
        var(--wf-blue);

    font-size:
        1.1rem;
}


.wf-kpi-label {

    color:
        var(--wf-muted);

    font-size:
        .7rem;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        .06em;
}


.wf-kpi-value {

    margin-top:
        5px;

    color:
        var(--wf-navy);

    font-size:
        1.75rem;

    line-height:
        1.15;

    font-weight:
        800;

    letter-spacing:
        -.03em;
}


.wf-kpi-sub {

    margin-top:
        7px;

    color:
        var(--wf-muted);

    font-size:
        .7rem;
}


.wf-kpi-positive {

    color:
        var(--wf-green);

    font-weight:
        700;
}


.wf-kpi-warning {

    color:
        var(--wf-amber);

    font-weight:
        700;
}


/* =========================================================
   PANELS
   ========================================================= */

.wf-panel {

    display: flex;
    flex-direction: column;

    background: var(--wf-surface);

    border: 1px solid var(--wf-border);

    border-radius: var(--wf-radius);

    box-shadow: var(--wf-shadow);

    overflow: hidden;
}


.wf-panel-header {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    padding:
        17px
        19px;

    border-bottom:
        1px solid
        var(--wf-border);
}


.wf-panel-title {

    font-size:
        .85rem;

    font-weight:
        700;

    color:
        var(--wf-navy);
}


.wf-panel-subtitle {

    color:
        var(--wf-muted);

    font-size:
        .68rem;
}


.wf-panel-body {

    padding:
        19px;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.wf-summary {

    display:
        flex;

    gap:
        14px;

    padding:
        18px
        20px;

    margin-bottom:
        20px;

    background:
        linear-gradient(
            135deg,
            var(--wf-navy),
            #173b59
        );

    border-radius:
        var(--wf-radius);

    color:
        #fff;

    box-shadow:
        var(--wf-shadow);
}


.wf-summary-icon {

    width:
        42px;

    height:
        42px;

    flex:
        0 0 auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        11px;

    background:
        rgba(
            255,
            255,
            255,
            .1
        );

    font-size:
        1.1rem;
}


.wf-summary-label {

    margin-bottom:
        5px;

    color:
        rgba(
            255,
            255,
            255,
            .55
        );

    font-size:
        .66rem;

    font-weight:
        700;

    text-transform:
        uppercase;

    letter-spacing:
        .08em;
}


.wf-summary-text {

    line-height:
        1.6;

    color:
        rgba(
            255,
            255,
            255,
            .9
        );
}


/* =========================================================
   GRID
   ========================================================= */

.wf-dashboard-grid {

    display:
        grid;

    grid-template-columns:
        2fr 1fr;

    gap:
        20px;

    margin-bottom:
        20px;
}


.wf-dashboard-grid.equal {

    grid-template-columns:
        1fr 1fr;
}


/* =========================================================
   MAP PLACEHOLDER
   ========================================================= */

.wf-map {

    position: relative;

    flex: 1;

    min-height: 500px;

    background: var(--wf-navy);
}


.wf-map::before {

    content:
        "";

    position:
        absolute;

    inset:
        0;

    opacity:
        .15;

    background-image:
        radial-gradient(
            circle,
            #fff 1px,
            transparent 1px
        );

    background-size:
        28px 28px;
}


.wf-map-center {

    position:
        absolute;

    inset:
        0;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        center;

    color:
        rgba(
            255,
            255,
            255,
            .65
        );

    z-index:
        2;
}


.wf-map-center i {

    margin-bottom:
        8px;

    font-size:
        2rem;

    color:
        rgba(
            255,
            255,
            255,
            .85
        );
}


/* =========================================================
   ACTIVITY
   ========================================================= */

.wf-activity {

    display:
        grid;

    gap:
        0;
}


.wf-activity-item {

    display:
        flex;

    gap:
        11px;

    padding:
        13px 0;

    border-bottom:
        1px solid
        var(--wf-border);
}


.wf-activity-item:last-child {

    border-bottom:
        0;
}


.wf-activity-icon {

    width:
        32px;

    height:
        32px;

    flex:
        0 0 auto;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        9px;
}


.wf-activity-icon.success {

    background:
        var(--wf-green-soft);

    color:
        var(--wf-green);
}


.wf-activity-icon.warning {

    background:
        var(--wf-amber-soft);

    color:
        var(--wf-amber);
}


.wf-activity-title {

    font-weight:
        600;

    font-size:
        .78rem;
}


.wf-activity-meta {

    margin-top:
        3px;

    color:
        var(--wf-muted);

    font-size:
        .67rem;
}


/* =========================================================
   CHARTS
   ========================================================= */

.wf-chart {

    position:
        relative;

    height:
        280px;
}


/* =========================================================
   BADGES
   ========================================================= */

.badge-verified {

    background:
        var(--wf-green-soft);

    color:
        var(--wf-green);
}


.badge-warning-soft {

    background:
        var(--wf-amber-soft);

    color:
        #8a6813;
}


.badge-exception {

    background:
        var(--wf-red-soft);

    color:
        var(--wf-red);
}


.badge-pending {

    background:
        #edf0f3;

    color:
        #5d6872;
}


/* =========================================================
   LEGACY CARDS / TABLES
   ========================================================= */

.metric-card,
.content-card {

    border:
        1px solid
        var(--wf-border);

    border-radius:
        var(--wf-radius);

    box-shadow:
        var(--wf-shadow);
}


.content-card .card-header {

    background:
        #fff;

    border-bottom:
        1px solid
        var(--wf-border);

    font-weight:
        700;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (
    max-width:
    1200px
) {

    .wf-kpi-grid {

        grid-template-columns:
            repeat(
                3,
                1fr
            );
    }
}


@media (
    max-width:
    900px
) {

    .wf-sidebar {

        transform:
            translateX(
                -100%
            );

        transition:
            transform
            .2s ease;
    }

    .wf-sidebar.open {

        transform:
            translateX(
                0
            );
    }

    .wf-main {

        margin-left:
            0;
    }

    .wf-mobile-menu {

        display:
            block;
    }

    .wf-dashboard-grid,
    .wf-dashboard-grid.equal {

        grid-template-columns:
            1fr;
    }

    .wf-kpi-grid {

        grid-template-columns:
            repeat(
                2,
                1fr
            );
    }
}


@media (
    max-width:
    600px
) {

    .wf-content {

        padding:
            18px;
    }

    .wf-topbar {

        padding:
            0
            16px;
    }

    .wf-user-meta {

        display:
            none;
    }

    .wf-kpi-grid {

        grid-template-columns:
            1fr 1fr;
    }

    .wf-kpi-value {

        font-size:
            1.35rem;
    }

    .wf-dashboard-heading {

        flex-direction:
            column;
    }
}

/* =========================================================
   OPERATIONS MAP
   ========================================================= */

#operationsMap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
.wf-map {
    position: relative;
    height: 430px;
    background: var(--wf-navy);
}

.wf-map .leaflet-container {
    background: #102235;
    font-family: "Inter", sans-serif;
}

.wf-map-legend {
    position: absolute;

    left: 16px;
    bottom: 16px;

    z-index: 500;

    display: flex;
    gap: 14px;

    padding: 10px 13px;

    border-radius: 10px;

    background:
        rgba(
            255,
            255,
            255,
            .94
        );

    box-shadow:
        0 3px 14px
        rgba(
            0,
            0,
            0,
            .12
        );

    font-size: .68rem;
    font-weight: 600;
}

.wf-map-legend div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wf-map-dot {
    width: 8px;
    height: 8px;

    display: inline-block;

    border-radius: 50%;
}

.wf-map-dot.normal {
    background: var(--wf-green);
}

.wf-map-dot.warning {
    background: var(--wf-amber);
}

.wf-map-dot.exception {
    background: var(--wf-red);
}


/* =========================================================
   CUSTOM WELL MARKERS
   ========================================================= */

.wf-marker {
    width: 22px;
    height: 22px;

    border-radius: 50%;

    border:
        3px solid #fff;

    box-shadow:
        0 2px 8px
        rgba(
            0,
            0,
            0,
            .28
        );
}

.wf-marker.normal {
    background:
        var(--wf-green);
}

.wf-marker.warning {
    background:
        var(--wf-amber);
}

.wf-marker.exception {
    background:
        var(--wf-red);
}

.wf-marker-pulse {
    position: relative;
}

.wf-marker-pulse::after {
    content: "";

    position: absolute;

    inset: -7px;

    border-radius: 50%;

    border:
        2px solid
        currentColor;

    opacity: .3;

    animation:
        wfPulse
        2s
        infinite;
}

@keyframes wfPulse {

    0% {
        transform:
            scale(.65);

        opacity:
            .5;
    }

    70% {
        transform:
            scale(1.3);

        opacity:
            0;
    }

    100% {
        opacity:
            0;
    }
}


/* =========================================================
   MAP POPUP
   ========================================================= */

.wf-popup {
    min-width: 220px;
}

.wf-popup-name {
    font-size: .95rem;
    font-weight: 800;

    color:
        var(--wf-navy);

    margin-bottom: 3px;
}

.wf-popup-meta {
    font-size: .7rem;

    color:
        var(--wf-muted);

    margin-bottom: 12px;
}

.wf-popup-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 9px;

    margin-bottom: 12px;
}

.wf-popup-stat {
    padding: 8px;

    border-radius: 8px;

    background:
        var(--wf-bg);
}

.wf-popup-stat span {
    display: block;

    font-size: .58rem;

    color:
        var(--wf-muted);

    text-transform: uppercase;

    letter-spacing: .05em;

    font-weight: 700;
}

.wf-popup-stat strong {
    display: block;

    margin-top: 2px;

    font-size: .8rem;

    color:
        var(--wf-text);
}

.wf-popup-status {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    margin-bottom: 12px;
}

.wf-popup-button {
    display: block;

    width: 100%;

    padding: 8px 10px;

    border-radius: 8px;

    background:
        var(--wf-blue);

    color: #fff !important;

    text-align: center;

    text-decoration: none;

    font-size: .7rem;

    font-weight: 700;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
}

.leaflet-popup-content {
    margin: 14px;
}

/* =========================================================
   TANK WATCH
   ========================================================= */

.wf-tank-watch {
    display: grid;

    grid-template-columns:
        repeat(
            6,
            minmax(
                0,
                1fr
            )
        );

    gap: 14px;
}


.wf-tank-card {
    position: relative;

    min-height: 225px;

    padding: 14px;

    border:
        1px solid
        var(--wf-border);

    border-radius:
        14px;

    background:
        #fff;

    overflow: hidden;

    transition:
        transform
        .15s ease,
        box-shadow
        .15s ease;
}


.wf-tank-card:hover {
    transform:
        translateY(-2px);

    box-shadow:
        var(--wf-shadow);
}


.wf-tank-name {
    position: relative;

    z-index: 3;

    font-size: .78rem;

    font-weight: 800;

    color:
        var(--wf-navy);
}


.wf-tank-well {
    position: relative;

    z-index: 3;

    margin-top: 2px;

    color:
        var(--wf-muted);

    font-size: .65rem;
}


.wf-tank-vessel {
    position: relative;

    width: 70px;
    height: 105px;

    margin:
        17px auto 10px;

    border:
        3px solid
        #9ba8b3;

    border-radius:
        14px 14px 10px 10px;

    overflow: hidden;

    background:
        #f1f4f6;
}


.wf-tank-vessel::before {
    content: "";

    position: absolute;

    top: 8px;
    left: 10px;
    right: 10px;

    height: 3px;

    border-radius: 10px;

    background:
        rgba(
            255,
            255,
            255,
            .65
        );

    z-index: 2;
}


.wf-tank-fill {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 0;

    background:
        linear-gradient(
            180deg,
            #4ca0d7,
            #246fa8
        );

    transition:
        height
        1.1s
        cubic-bezier(
            .22,
            .61,
            .36,
            1
        );
}


.wf-tank-fill.warning {
    background:
        linear-gradient(
            180deg,
            #efc247,
            #d9a404
        );
}


.wf-tank-fill.exception {
    background:
        linear-gradient(
            180deg,
            #df6b60,
            #c0392b
        );
}


.wf-tank-percent {
    position: absolute;

    inset: 0;

    z-index: 3;

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: .9rem;

    font-weight: 800;

    color:
        var(--wf-navy);
}


.wf-tank-stats {
    position: relative;

    z-index: 3;

    text-align: center;
}


.wf-tank-volume {
    font-size: .8rem;

    font-weight: 800;

    color:
        var(--wf-text);
}


.wf-tank-temp {
    margin-top: 2px;

    color:
        var(--wf-muted);

    font-size: .65rem;
}


.wf-tank-status {
    display: inline-block;

    margin-top: 7px;

    padding:
        4px 7px;

    border-radius: 100px;

    font-size: .58rem;

    font-weight: 800;

    letter-spacing: .04em;
}


.wf-tank-status.normal {
    background:
        var(--wf-green-soft);

    color:
        var(--wf-green);
}


.wf-tank-status.warning {
    background:
        var(--wf-amber-soft);

    color:
        #896700;
}


.wf-tank-status.exception {
    background:
        var(--wf-red-soft);

    color:
        var(--wf-red);
}


@media (max-width: 1400px) {

    .wf-tank-watch {
        grid-template-columns:
            repeat(3, 1fr);
    }
}


@media (max-width: 700px) {

    .wf-tank-watch {
        grid-template-columns:
            repeat(2, 1fr);
    }
}

/* =========================================================
   ASSET EXPLORER
   ========================================================= */

.wf-asset-explorer {
    display: grid;

    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(340px, .8fr);

    gap: 20px;

    min-height: 650px;
}


.wf-asset-map-panel,
.wf-asset-list-panel {
    min-height: 650px;
}


.wf-asset-map-panel {
    display: flex;
    flex-direction: column;
}


.wf-asset-map {
    position: relative;

    flex: 1;

    min-height: 580px;
}


#assetMap {
    position: absolute;

    inset: 0;
}


.wf-asset-list-panel {
    display: flex;
    flex-direction: column;
}


.wf-asset-list {
    flex: 1;

    overflow-y: auto;

    max-height: 650px;
}


.wf-asset-item {
    display: block;

    position: relative;

    color: inherit;

    text-decoration: none;

    border-bottom:
        1px solid
        var(--wf-border);

    transition:
        background
        .15s ease;
}


.wf-asset-item:hover {
    background:
        #f7f9fb;
}


.wf-asset-item-main {
    display: flex;

    align-items: stretch;

    min-height: 105px;
}


.wf-asset-status-bar {
    width: 5px;

    flex: 0 0 auto;
}


.wf-asset-status-bar.normal {
    background:
        var(--wf-green);
}


.wf-asset-status-bar.warning {
    background:
        var(--wf-amber);
}


.wf-asset-status-bar.exception {
    background:
        var(--wf-red);
}


.wf-asset-status-bar.inactive {
    background:
        #9aa4ad;
}


.wf-asset-item-copy {
    flex: 1;

    padding:
        15px
        12px;
}


.wf-asset-name {
    color:
        var(--wf-navy);

    font-weight:
        800;

    font-size:
        .84rem;
}


.wf-asset-location {
    margin-top:
        3px;

    color:
        var(--wf-muted);

    font-size:
        .66rem;
}


.wf-asset-mini-stats {
    display: flex;

    gap: 12px;

    flex-wrap: wrap;

    margin-top:
        11px;

    color:
        var(--wf-muted);

    font-size:
        .63rem;
}


.wf-asset-mini-stats span {
    display: inline-flex;

    align-items: center;

    gap: 4px;
}


.wf-asset-status {
    width: 115px;

    flex: 0 0 auto;

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    justify-content: center;

    gap: 10px;

    padding:
        12px;
}


.wf-asset-status-pill {
    display: inline-flex;

    padding:
        5px 8px;

    border-radius:
        100px;

    white-space: nowrap;

    font-size:
        .57rem;

    font-weight:
        800;
}


.wf-asset-status-pill.normal {
    background:
        var(--wf-green-soft);

    color:
        var(--wf-green);
}


.wf-asset-status-pill.warning {
    background:
        var(--wf-amber-soft);

    color:
        #806000;
}


.wf-asset-status-pill.exception {
    background:
        var(--wf-red-soft);

    color:
        var(--wf-red);
}


.wf-asset-status-pill.inactive {
    background:
        #edf0f2;

    color:
        #697681;
}

.wf-map-dot.inactive,
.wf-marker.inactive {
    background: #9aa4ad;
}


.wf-asset-empty {
    display: flex;

    min-height: 300px;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 30px;

    text-align: center;

    color:
        var(--wf-muted);
}


.wf-asset-empty i {
    margin-bottom: 12px;

    font-size: 2rem;
}


.wf-asset-empty strong {
    color:
        var(--wf-text);
}


.wf-asset-empty span {
    margin-top: 5px;

    font-size: .75rem;
}


@media (max-width: 1100px) {

    .wf-asset-explorer {
        grid-template-columns:
            1fr;
    }

    .wf-asset-list {
        max-height:
            none;
    }
}

/* =========================================================
   WELL EDITOR
   ========================================================= */

.wf-well-editor-map-panel {
    position: sticky;
    top: 92px;
}

.wf-well-editor-map {
    position: relative;

    height: 450px;

    background:
        var(--wf-navy);
}

#wellEditorMap {
    position: absolute;
    inset: 0;
}


@media (max-width: 1199px) {

    .wf-well-editor-map-panel {
        position: static;
    }

    .wf-well-editor-map {
        height: 400px;
    }
}

/* =========================================================
   WELL DETAIL
   ========================================================= */

.wf-detail-label {
    color: var(--wf-muted);
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.wf-detail-value {
    margin-top: 4px;
    color: var(--wf-navy);
    font-size: .9rem;
    font-weight: 700;
}


.wf-well-detail-map {
    position: relative;
    min-height: 350px;
    height: 100%;
}

#wellDetailMap {
    position: absolute;
    inset: 0;
}


/* =========================================================
   DIGITAL TANKS
   ========================================================= */

.wf-digital-tank-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        );

    gap: 16px;
}


.wf-digital-tank-card {
    padding: 16px;

    border:
        1px solid
        var(--wf-border);

    border-radius: 15px;

    background:
        linear-gradient(
            180deg,
            #fff,
            #fafbfd
        );
}


.wf-digital-tank-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}


.wf-digital-tank-name {
    color: var(--wf-navy);
    font-weight: 800;
}


.wf-digital-tank-number {
    margin-top: 2px;
    color: var(--wf-muted);
    font-size: .65rem;
}


.wf-digital-vessel {
    position: relative;

    width: 95px;
    height: 145px;

    margin: 20px auto 15px;

    overflow: hidden;

    border:
        4px solid
        #929eaa;

    border-radius:
        22px 22px 13px 13px;

    background:
        #edf1f4;

    box-shadow:
        inset
        0 0 15px
        rgba(
            16,
            34,
            53,
            .07
        );
}


.wf-digital-vessel::before {
    content: "";

    position: absolute;

    z-index: 3;

    top: 12px;
    left: 15px;

    width: 12px;
    height: 80px;

    border-radius: 10px;

    background:
        rgba(
            255,
            255,
            255,
            .35
        );
}


.wf-digital-water {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    background:
        linear-gradient(
            180deg,
            #57a7d9,
            #246fa8
        );

    transition:
        height
        .8s ease;
}


.wf-digital-water.warning {
    background:
        linear-gradient(
            180deg,
            #efc44d,
            #d9a404
        );
}


.wf-digital-water.exception {
    background:
        linear-gradient(
            180deg,
            #e46b60,
            #c0392b
        );
}


.wf-digital-water.inactive {
    background:
        #a8b0b7;
}


.wf-digital-level {
    position: absolute;
    inset: 0;

    z-index: 4;

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

    color: var(--wf-navy);

    font-size: 1.05rem;
    font-weight: 900;
}


.wf-digital-volume {
    text-align: center;

    color: var(--wf-navy);

    font-size: 1.25rem;
    font-weight: 900;
}


.wf-digital-volume span {
    color: var(--wf-muted);
    font-size: .6rem;
    font-weight: 700;
}


.wf-digital-capacity {
    margin-top: 3px;

    text-align: center;

    color: var(--wf-muted);

    font-size: .64rem;
}


.wf-digital-tank-meta {
    display: flex;

    justify-content: center;

    gap: 14px;

    margin: 12px 0;

    color: var(--wf-muted);

    font-size: .63rem;
}


.wf-empty-state {
    display: flex;

    min-height: 200px;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    color: var(--wf-muted);
}


.wf-empty-state i {
    margin-bottom: 10px;

    font-size: 2rem;
}


.wf-empty-state strong {
    color: var(--wf-text);
}


.wf-empty-state span {
    margin-top: 5px;
}


.wf-empty-state.compact {
    min-height: 130px;
}


.wf-exception-row {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    padding: 13px 0;

    border-bottom:
        1px solid
        var(--wf-border);
}


.wf-exception-row:last-child {
    border-bottom: 0;
}


@media (max-width: 1300px) {

    .wf-digital-tank-grid {
        grid-template-columns:
            repeat(
                2,
                1fr
            );
    }
}


@media (max-width: 650px) {

    .wf-digital-tank-grid {
        grid-template-columns:
            1fr;
    }
}

.wf-marker.verifying,
.wf-map-dot.verifying,
.wf-asset-status-bar.verifying {
    background: var(--wf-blue);
}

.wf-asset-status-pill.verifying {
    background: var(--wf-blue-soft);
    color: var(--wf-blue);
}

.wf-marker.verifying {
    animation:
        wfVerifyPulse
        1.4s
        infinite;
}

@keyframes wfVerifyPulse {

    0% {
        box-shadow:
            0 0 0 0
            rgba(
                36,
                111,
                168,
                .45
            );
    }

    70% {
        box-shadow:
            0 0 0 12px
            rgba(
                36,
                111,
                168,
                0
            );
    }

    100% {
        box-shadow:
            0 0 0 0
            rgba(
                36,
                111,
                168,
                0
            );
    }
}

/* =========================================================
   LiquidLedger V2 — SITE OPERATIONS
   ========================================================= */

.wf-site-operations-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(380px, .85fr);

    gap: 20px;

    align-items: stretch;
}


.wf-site-map-panel,
.wf-site-list-panel {
    min-height: 690px;
}


.wf-site-map-wrap {
    position: relative;
    min-height: 620px;
    height: calc(100% - 70px);
}


#siteOperationsMap {
    position: absolute;
    inset: 0;
}


.wf-site-list {
    max-height: 620px;
    overflow-y: auto;
}


.wf-site-item {
    position: relative;

    display: flex;

    color: inherit;
    text-decoration: none;

    border-bottom:
        1px solid var(--wf-border);

    background: #fff;

    transition:
        background .15s ease;
}


.wf-site-item:hover {
    background: #f8fafb;
}


.wf-site-status-bar {
    width: 5px;
    flex: 0 0 5px;
}


.wf-site-status-bar.normal {
    background: var(--wf-green);
}


.wf-site-status-bar.warning {
    background: #d9a404;
}


.wf-site-status-bar.exception {
    background: #c0392b;
}


.wf-site-status-bar.verifying {
    background: var(--wf-blue);
}


.wf-site-status-bar.inactive {
    background: #98a2ab;
}


.wf-site-item-body {
    width: 100%;
    padding: 17px 18px;
}


.wf-site-item-top {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;
}


.wf-site-name {
    color: var(--wf-navy);

    font-size: .95rem;
    font-weight: 800;
}


.wf-site-location {
    margin-top: 3px;

    color: var(--wf-muted);

    font-size: .68rem;
}


.wf-site-stat-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 8px;

    margin-top: 15px;
}


.wf-site-stat-grid > div {
    padding: 9px 8px;

    border-radius: 8px;

    background: #f4f7f9;
}


.wf-site-stat-grid span {
    display: block;

    color: var(--wf-muted);

    font-size: .56rem;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .05em;
}


.wf-site-stat-grid strong {
    display: block;

    margin-top: 2px;

    color: var(--wf-navy);

    font-size: .77rem;
}


.wf-site-logistics {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 12px;

    color: var(--wf-muted);

    font-size: .62rem;
}


.wf-site-logistics i {
    margin-right: 3px;
}


.wf-site-popup-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 7px;

    margin: 12px 0;
}


.wf-site-popup-grid > div {
    padding: 7px 8px;

    border-radius: 7px;

    background: #f3f6f8;
}


.wf-site-popup-grid span {
    display: block;

    color: #6f7c87;

    font-size: .55rem;

    text-transform: uppercase;
}


.wf-site-popup-grid strong {
    display: block;

    margin-top: 2px;

    color: #14293d;

    font-size: .75rem;
}


@media (max-width: 1200px) {

    .wf-site-operations-grid {
        grid-template-columns: 1fr;
    }

    .wf-site-map-panel,
    .wf-site-list-panel {
        min-height: auto;
    }

    .wf-site-map-wrap {
        height: 520px;
        min-height: 520px;
    }

    .wf-site-list {
        max-height: none;
    }
}


@media (max-width: 600px) {

    .wf-site-stat-grid {
        grid-template-columns:
            repeat(
                2,
                1fr
            );
    }

    .wf-site-map-wrap {
        height: 420px;
        min-height: 420px;
    }
}

/* =========================================================
   V2 SITE DETAIL
   ========================================================= */

.wf-site-detail-top,
.wf-site-detail-two {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 20px;
}


.wf-site-detail-map-wrap {
    position: relative;

    min-height: 360px;
}


#siteDetailMap {
    position: absolute;
    inset: 0;
}


.wf-v2-well-row {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px 18px;

    border-bottom:
        1px solid
        var(--wf-border);
}


.wf-v2-well-row:last-child {
    border-bottom: 0;
}


.wf-v2-well-state {
    width: 10px;
    height: 10px;

    flex: 0 0 10px;

    border-radius: 999px;

    background:
        var(--wf-green);
}


.wf-battery-summary {
    color: var(--wf-muted);

    font-size: .8rem;
    font-weight: 700;
}


.wf-v2-tank-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                180px,
                1fr
            )
        );

    gap: 16px;
}


.wf-v2-tank-card {
    padding: 16px;

    border:
        1px solid
        var(--wf-border);

    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            #fff,
            #f8fafb
        );
}


.wf-v2-tank-heading {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 10px;
}


.wf-v2-vessel {
    position: relative;

    width: 88px;
    height: 135px;

    margin:
        18px auto
        14px;

    overflow: hidden;

    border:
        4px solid
        #929eaa;

    border-radius:
        21px 21px 12px 12px;

    background:
        #edf1f4;
}


.wf-v2-liquid {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    background:
        linear-gradient(
            180deg,
            #63a9d2,
            #276f9e
        );
}


.wf-v2-liquid.warning {
    background:
        linear-gradient(
            180deg,
            #efc44d,
            #d9a404
        );
}


.wf-v2-liquid.exception {
    background:
        linear-gradient(
            180deg,
            #e46b60,
            #c0392b
        );
}


.wf-v2-level {
    position: absolute;
    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    z-index: 2;

    color: var(--wf-navy);

    font-size: 1rem;
    font-weight: 900;
}


.wf-v2-tank-volume {
    text-align: center;

    color: var(--wf-navy);

    font-size: 1.3rem;
    font-weight: 900;
}


.wf-v2-tank-volume span {
    color: var(--wf-muted);

    font-size: .65rem;
}


.wf-v2-tank-capacity,
.wf-v2-tank-reading {
    margin-top: 4px;

    text-align: center;

    color: var(--wf-muted);

    font-size: .66rem;
}


.wf-v2-tank-reading {
    margin-top: 10px;
}


.wf-v2-roc-row,
.wf-v2-truck-row {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px 18px;

    border-bottom:
        1px solid
        var(--wf-border);
}


.wf-v2-roc-row:last-child,
.wf-v2-truck-row:last-child {
    border-bottom: 0;
}


.wf-v2-roc-icon,
.wf-v2-truck-icon {
    display: flex;

    width: 38px;
    height: 38px;

    align-items: center;
    justify-content: center;

    flex: 0 0 38px;

    border-radius: 10px;

    background: #eef3f6;

    color: var(--wf-navy);
}


.wf-v2-roc-icon.normal {
    background:
        rgba(
            31,
            132,
            91,
            .1
        );

    color: var(--wf-green);
}


.wf-v2-roc-icon.warning {
    background:
        rgba(
            217,
            164,
            4,
            .12
        );

    color: #b28600;
}


.wf-v2-exception {
    padding: 15px 0;

    border-bottom:
        1px solid
        var(--wf-border);
}


.wf-v2-exception:last-child {
    border-bottom: 0;
}


.wf-truck-map-marker {
    display: flex;

    width: 32px;
    height: 32px;

    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: #102235;

    border:
        3px solid #fff;

    color: #fff;

    box-shadow:
        0 3px 10px
        rgba(
            0,
            0,
            0,
            .2
        );

    font-size: .9rem;
}


@media (max-width: 1000px) {

    .wf-site-detail-top,
    .wf-site-detail-two {
        grid-template-columns:
            1fr;
    }
}

.wf-well-marker {

    display:flex;

    align-items:center;
    justify-content:center;

    width:18px;
    height:18px;

    border-radius:50%;

    border:3px solid white;

    background:#1f845b;

    color:white;

    font-size:7px;

    box-shadow:
        0 2px 8px rgba(0,0,0,.25);

}

.wf-well-marker.inactive{

    background:#8b98a6;

}


/* =========================================================
   LIQUIDLEDGER V2 PRESENTATION REFINEMENTS
   ========================================================= */

.ll-page-eyebrow {
    margin-bottom: 6px;
    color: var(--wf-blue);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ll-dashboard-heading {
    align-items: center;
}

.ll-operations-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--wf-border);
    border-radius: var(--wf-radius);
    background:
        linear-gradient(
            135deg,
            var(--wf-navy),
            #173b59
        );
    box-shadow: var(--wf-shadow);
}

.ll-operations-summary > div {
    padding: 18px 20px;
    border-right:
        1px solid
        rgba(255,255,255,.09);
}

.ll-operations-summary > div:last-child {
    border-right: 0;
}

.ll-summary-label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255,255,255,.52);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ll-operations-summary strong {
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
}

.ll-kpi-card {
    position: relative;
    overflow: hidden;
}

.ll-kpi-card::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -34px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--wf-blue-soft);
    opacity: .55;
}

.ll-dashboard-map {
    position: relative;
    height: 520px;
    min-height: 420px;
    background: var(--wf-navy);
}

#dashboardV2Map {
    position: absolute;
    inset: 0;
}

.ll-map-key {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--wf-muted);
    font-size: .64rem;
    font-weight: 700;
}

.ll-map-key span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ll-key-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
}

.ll-key-dot.normal {
    background: var(--wf-green);
}

.ll-key-dot.warning {
    background: var(--wf-amber);
}

.ll-key-dot.exception {
    background: var(--wf-red);
}

.ll-fleet-state {
    padding-top: 9px;
    padding-bottom: 9px;
}

.ll-fleet-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 51px;
    border-bottom: 1px solid var(--wf-border);
}

.ll-fleet-row:last-child {
    border-bottom: 0;
}

.ll-fleet-row > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ll-fleet-row i {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--wf-blue-soft);
    color: var(--wf-blue);
}

.ll-fleet-row span {
    font-size: .76rem;
    font-weight: 600;
}

.ll-fleet-row strong {
    color: var(--wf-navy);
    font-size: .95rem;
}

.ll-attention-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    min-height: 74px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--wf-border);
    color: inherit;
    text-decoration: none;
    transition: background .15s ease;
}

.ll-attention-row:last-child {
    border-bottom: 0;
}

.ll-attention-row:hover {
    background: #f8fafb;
}

.ll-attention-row strong {
    color: var(--wf-navy);
}

.ll-empty-state {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 30px;
    text-align: center;
    color: var(--wf-muted);
}

.ll-empty-state i {
    margin-bottom: 5px;
    color: var(--wf-green);
    font-size: 2rem;
}

.ll-empty-state strong {
    color: var(--wf-text);
}

.ll-empty-state span {
    font-size: .72rem;
}

.ll-ledger-table thead th {
    padding-top: 13px;
    padding-bottom: 13px;
    color: var(--wf-muted);
    font-size: .61rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ll-ledger-table tbody td {
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: .74rem;
}

.ll-ledger-bbl {
    color: var(--wf-navy);
    font-size: .86rem;
}

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

    .ll-operations-summary > div:nth-child(2) {
        border-right: 0;
    }

    .ll-operations-summary > div:nth-child(-n+2) {
        border-bottom:
            1px solid
            rgba(255,255,255,.09);
    }
}

@media (max-width: 700px) {
    .ll-operations-summary {
        grid-template-columns: 1fr;
    }

    .ll-operations-summary > div {
        border-right: 0;
        border-bottom:
            1px solid
            rgba(255,255,255,.09);
    }

    .ll-operations-summary > div:last-child {
        border-bottom: 0;
    }

    .ll-map-key {
        display: none;
    }

    .ll-dashboard-map {
        height: 430px;
    }
}

/* =========================================================
   LIQUIDLEDGER OPERATIONS CENTER PRESENTATION ADDITIONS
   Append to the END of the current app.css.
   ========================================================= */

.ll-activity-feed {
    padding-top: 4px;
    padding-bottom: 4px;
}

.ll-activity-item {
    min-height: 66px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--wf-border);
}

.ll-activity-item:last-child {
    border-bottom: 0;
}

.ll-activity-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--wf-blue-soft);
    color: var(--wf-blue);
}

.ll-activity-copy strong,
.ll-activity-copy span {
    display: block;
}

.ll-activity-copy strong {
    color: var(--wf-navy);
    font-size: .76rem;
}

.ll-activity-copy span {
    margin-top: 2px;
    color: var(--wf-muted);
    font-size: .67rem;
}

.ll-activity-item time {
    color: var(--wf-muted);
    font-size: .65rem;
    font-weight: 700;
}


/* =========================================================
   LIQUIDLEDGER OPERATIONS CENTER PRESENTATION ADDITIONS
   Append to the END of the current app.css.
   ========================================================= */

.ll-activity-feed {
    padding-top: 4px;
    padding-bottom: 4px;
}

.ll-activity-item {
    min-height: 66px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--wf-border);
}

.ll-activity-item:last-child {
    border-bottom: 0;
}

.ll-activity-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--wf-blue-soft);
    color: var(--wf-blue);
}

.ll-activity-copy strong,
.ll-activity-copy span {
    display: block;
}

.ll-activity-copy strong {
    color: var(--wf-navy);
    font-size: .76rem;
}

.ll-activity-copy span {
    margin-top: 2px;
    color: var(--wf-muted);
    font-size: .67rem;
}

.ll-activity-item time {
    color: var(--wf-muted);
    font-size: .65rem;
    font-weight: 700;
}

/* LiquidLedger Operations Center site popup polish */

.ll-dashboard-site-popup {
    min-width: 250px;
}

.ll-dashboard-site-popup .wf-popup-grid {
    margin-top: 12px;
}

.ll-dashboard-site-popup .ll-popup-wide {
    grid-column: 1 / -1;
}

.ll-dashboard-site-popup .wf-asset-status-pill {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: .56rem;
}

.leaflet-popup-content {
    margin: 14px 16px;
}

.leaflet-popup-content-wrapper {
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(16,34,53,.16);
}
/* =========================================================
   LIQUIDLEDGER OPERATIONS CENTER ANIMATION LAYER
   Append to the END of app.css
   ========================================================= */


/* ---------------------------------------------------------
   KPI update
   --------------------------------------------------------- */

.wf-kpi-value {
    transition:
        transform .28s ease,
        color .28s ease,
        text-shadow .28s ease;
}

.wf-kpi-value.ll-live-value-active {
    transform: translateY(-2px) scale(1.025);
    color: var(--wf-blue);
    text-shadow: 0 8px 24px rgba(36,111,168,.15);
}


/* ---------------------------------------------------------
   Site marker status change
   --------------------------------------------------------- */

.leaflet-marker-icon.ll-site-status-pulse {
    animation:
        llSiteStatusPulse .9s ease-out;
}

@keyframes llSiteStatusPulse {

    0% {
        transform:
            scale(1);
        filter:
            brightness(1);
    }

    35% {
        transform:
            scale(1.32);
        filter:
            brightness(1.2);
    }

    100% {
        transform:
            scale(1);
        filter:
            brightness(1);
    }
}


/* ---------------------------------------------------------
   Live activity
   --------------------------------------------------------- */

.ll-activity-item {
    transition:
        background .35s ease,
        transform .35s ease,
        opacity .35s ease;
}

.ll-activity-item.ll-activity-new {
    animation:
        llActivityEnter .8s cubic-bezier(.22,.8,.32,1);
}

@keyframes llActivityEnter {

    0% {
        opacity:
            0;

        transform:
            translateY(-10px);

        background:
            rgba(36,111,168,.09);
    }

    55% {
        opacity:
            1;

        transform:
            translateY(0);

        background:
            rgba(36,111,168,.09);
    }

    100% {
        background:
            transparent;
    }
}


/* ---------------------------------------------------------
   Live timestamp + heartbeat
   --------------------------------------------------------- */

.ll-live-timestamp {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        7px;

    margin-top:
        8px;

    padding:
        6px 9px;

    border:
        1px solid var(--wf-border);

    border-radius:
        999px;

    background:
        rgba(255,255,255,.82);

    color:
        var(--wf-muted);

    font-size:
        .64rem;

    font-weight:
        700;

    white-space:
        nowrap;
}

.ll-live-heartbeat {
    width:
        7px;

    height:
        7px;

    border-radius:
        50%;

    background:
        #27a85d;

    box-shadow:
        0 0 0 0 rgba(39,168,93,.42);

    animation:
        llHeartbeat 2.1s ease-out infinite;
}

@keyframes llHeartbeat {

    0% {
        box-shadow:
            0 0 0 0 rgba(39,168,93,.42);
    }

    55% {
        box-shadow:
            0 0 0 7px rgba(39,168,93,0);
    }

    100% {
        box-shadow:
            0 0 0 7px rgba(39,168,93,0);
    }
}


/* ---------------------------------------------------------
   Presentation toggle
   --------------------------------------------------------- */

.ll-presentation-toggle {
    display:
        inline-flex;

    align-items:
        center;

    gap:
        7px;

    margin-left:
        8px;
}


/* ---------------------------------------------------------
   Presentation Mode
   --------------------------------------------------------- */

body.ll-presentation-mode {

    background:
        #eaf0f4;
}

body.ll-presentation-mode .wf-sidebar {
    transform:
        translateX(-100%);

    transition:
        transform .3s ease;
}

body.ll-presentation-mode .wf-main {
    margin-left:
        0 !important;

    transition:
        margin-left .3s ease;
}

body.ll-presentation-mode .wf-content {
    max-width:
        1600px;

    padding-left:
        30px;

    padding-right:
        30px;
}

body.ll-presentation-mode .wf-dashboard-heading h1 {
    font-size:
        clamp(
            2rem,
            3vw,
            3rem
        );
}

body.ll-presentation-mode .wf-kpi-card {
    transform:
        translateZ(0);

    box-shadow:
        0 16px 36px rgba(16,34,53,.08);
}

body.ll-presentation-mode .wf-kpi-value {
    font-size:
        clamp(
            2rem,
            3.2vw,
            3.1rem
        );
}

body.ll-presentation-mode #dashboardV2Map {
    min-height:
        560px;
}

body.ll-presentation-mode .wf-panel {
    box-shadow:
        0 16px 40px rgba(16,34,53,.08);
}


/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */

@media (
    prefers-reduced-motion:
    reduce
) {

    *,
    *::before,
    *::after {
        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;

        scroll-behavior:
            auto !important;
    }
}


/* ---------------------------------------------------------
   Smaller screens
   --------------------------------------------------------- */

@media (
    max-width:
    900px
) {

    .ll-presentation-toggle span {
        display:
            none;
    }

    body.ll-presentation-mode .wf-content {
        padding-left:
            16px;

        padding-right:
            16px;
    }

    body.ll-presentation-mode #dashboardV2Map {
        min-height:
            430px;
    }
}
