/* =========================================================
   SINN - MACHINE HEALTH REPORT
   Shortcode: [sinn_mhr_fleet_overview]
   ========================================================= */

.sinn-mhr-fleet {
    --fleet-yellow: #ffc500;
    --fleet-black: #111111;
    --fleet-surface: #f6f7f5;
    --fleet-line: #d9dcdf;
    --fleet-text: #4b4f54;
    --fleet-muted: #6f7479;
    --fleet-caption: #858a90;
    --fleet-success: #237a3b;

    box-sizing: border-box;

    width: 100%;
    margin: 0;
    padding: 38px 0;

    color: var(--fleet-black);
    background: var(--fleet-surface);

    border-bottom: 1px solid #e2e4e2;

    font-family:
        Inter,
        "Helvetica Neue",
        "Segoe UI",
        Arial,
        sans-serif;
}

.sinn-mhr-fleet *,
.sinn-mhr-fleet *::before,
.sinn-mhr-fleet *::after {
    box-sizing: border-box;
}

.sinn-mhr-fleet__inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.sinn-mhr-fleet__header {
    margin-bottom: 20px;
}

.sinn-mhr-fleet__title {
    margin: 0 0 10px;

    color: var(--fleet-black);

    font-size: clamp(27px, 3vw, 36px);
    line-height: 1.15;
    font-weight: 800;

    letter-spacing: -.025em;
}

.sinn-mhr-fleet__lead {
    max-width: 78ch;

    margin: 0;

    color: var(--fleet-muted);

    font-size: 14px;
    line-height: 1.6;
}

.sinn-mhr-fleet__dashboard {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #cfd2d0;
    border-radius: 8px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.sinn-mhr-fleet__browser {
    height: 38px;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 0 12px;

    background: #eceeed;

    border-bottom: 1px solid #d8dbda;
}

.sinn-mhr-fleet__dot {
    width: 9px;
    height: 9px;

    flex: 0 0 9px;

    background: #b7bbba;

    border-radius: 50%;
}

.sinn-mhr-fleet__address {
    min-width: 0;
    height: 22px;

    display: flex;
    align-items: center;

    flex: 1;

    margin-left: 6px;
    padding: 0 10px;

    overflow: hidden;

    color: #8a8d8d;
    background: #ffffff;

    border-radius: 3px;

    font-size: 11px;
    line-height: 1;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.sinn-mhr-fleet__appbar {
    height: 48px;

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

    gap: 16px;

    padding: 0 16px;

    color: #ffffff;
    background: var(--fleet-black);
}

.sinn-mhr-fleet__appbar strong,
.sinn-mhr-fleet__appbar span {
    color: var(--fleet-yellow);

    font-size: 12px;
    line-height: 1.2;
    font-weight: 900;
}

.sinn-mhr-fleet__body {
    display: grid;

    grid-template-columns:
        150px minmax(0, 1fr);

    min-height: 510px;
}

.sinn-mhr-fleet__sidebar {
    display: grid;
    align-content: start;

    gap: 7px;

    padding: 16px 12px;

    background: #f2f3f1;

    border-right: 1px solid #dedfdd;
}

.sinn-mhr-fleet__sidebar span {
    padding: 10px;

    color: #666666;

    border-radius: 4px;

    font-size: 11px;
    line-height: 1.25;
}

.sinn-mhr-fleet__sidebar .is-active {
    color: #2d2700;
    background: #fff2b3;

    font-weight: 900;
}

.sinn-mhr-fleet__main {
    min-width: 0;

    padding: 18px;
}

.sinn-mhr-fleet__metrics {
    display: grid;

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

    gap: 10px;
}

.sinn-mhr-fleet__metric {
    min-width: 0;

    padding: 12px;

    background: #ffffff;

    border: 1px solid #e1e3e1;
    border-radius: 6px;
}

.sinn-mhr-fleet__metric > span {
    display: block;

    color: var(--fleet-caption);

    font-size: 10px;
    line-height: 1.3;
}

.sinn-mhr-fleet__metric > strong {
    display: block;

    margin-top: 4px;

    color: var(--fleet-black);

    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
}

.sinn-mhr-fleet__metric > small {
    display: block;

    margin-top: 4px;

    color: #92979d;

    font-size: 9px;
    line-height: 1.35;
}

.sinn-mhr-fleet__chartbox {
    margin-top: 12px;
    padding: 12px;

    background: #ffffff;

    border: 1px solid #e1e3e1;
    border-radius: 6px;
}

.sinn-mhr-fleet__chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 6px;

    color: #444444;

    font-size: 11px;
    line-height: 1.3;
}

.sinn-mhr-fleet__chart-head small {
    color: var(--fleet-caption);

    font-size: 9px;
}

.sinn-mhr-fleet__chart {
    display: block;

    width: 100%;
    height: 170px;
}

.sinn-mhr-fleet__table {
    margin-top: 12px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e1e3e1;
    border-radius: 6px;
}

.sinn-mhr-fleet__row {
    display: grid;

    grid-template-columns:
        1.2fr .8fr .9fr .8fr;

    gap: 8px;

    padding: 9px 10px;

    color: #666666;

    border-top: 1px solid #eceeed;

    font-size: 10px;
    line-height: 1.35;
}

.sinn-mhr-fleet__row:first-child {
    border-top: 0;
}

.sinn-mhr-fleet__row--head {
    color: #555555;
    background: #f6f7f5;

    font-weight: 900;
}

.sinn-mhr-fleet__row strong {
    color: var(--fleet-success);

    font-weight: 900;
}

.sinn-mhr-fleet__footer-note {
    padding: 10px 14px;

    color: #6a6248;
    background: #fffaf0;

    border-top: 1px solid #eee3b0;

    font-size: 10px;
    line-height: 1.45;
}


/* =========================================================
   TABLET <= 990
   ========================================================= */

@media (max-width: 990px) {

    .sinn-mhr-fleet__metrics {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE LANDSCAPE <= 766
   ========================================================= */

@media (max-width: 766px) {

    .sinn-mhr-fleet {
        padding: 30px 0;
    }

    .sinn-mhr-fleet__inner {
        width: min(100% - 24px, 1240px);
    }

    .sinn-mhr-fleet__title {
        font-size: 28px;
    }

    .sinn-mhr-fleet__body {
        grid-template-columns:
            108px minmax(0, 1fr);
    }

    .sinn-mhr-fleet__main {
        padding: 12px;
    }

    .sinn-mhr-fleet__metrics {
        grid-template-columns: 1fr;
    }

    .sinn-mhr-fleet__row {
        grid-template-columns:
            1.2fr .9fr .9fr;
    }

    .sinn-mhr-fleet__row > :nth-child(4) {
        display: none;
    }

}


/* =========================================================
   MOBILE PORTRAIT <= 477
   ========================================================= */

@media (max-width: 477px) {

    .sinn-mhr-fleet__inner {
        width: calc(100% - 20px);
    }

    .sinn-mhr-fleet__dashboard {
        overflow-x: auto;
    }

    .sinn-mhr-fleet__browser,
    .sinn-mhr-fleet__appbar,
    .sinn-mhr-fleet__body,
    .sinn-mhr-fleet__footer-note {
        min-width: 620px;
    }

}
