:root {
    --eva-bg: #eef3f8;
    --eva-surface: #ffffff;
    --eva-border: #d8e2ec;
    --eva-text: #142033;
    --eva-muted: #66768a;
    --eva-primary: #111111;
    --eva-primary-dark: #000000;
    --eva-danger: #b42318;
    --eva-shadow: 0 18px 45px rgba(20, 32, 51, 0.10);
}

html {
    -webkit-text-size-adjust: 100%;
    background: var(--eva-bg);
}

body {
    background: var(--eva-bg);
    color: var(--eva-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    min-height: 100vh;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, svg, video {
    height: auto;
    max-width: 100%;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    border: 0;
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

a {
    color: var(--eva-primary);
}

button,
input,
select,
textarea {
    font: inherit;
}

.eva-site-shell {
    min-height: 100vh;
}

.eva-site-header {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--eva-border);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    min-height: 64px;
    padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
    position: sticky;
    top: 0;
    z-index: 100;
}

.eva-brand {
    align-items: center;
    color: inherit;
    display: inline-flex;
    flex: 1 1 auto;
    gap: 18px;
    justify-content: space-between;
    min-width: 0;
    text-decoration: none;
}

.eva-brand-logo {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    height: 28px;
    justify-content: flex-end;
    overflow: hidden;
    width: 104px;
}

.eva-brand-logo img {
    display: block;
    height: 22px;
    max-width: 104px;
    object-fit: contain;
    object-position: right center;
    width: auto;
}

.eva-brand-text {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.eva-brand-text strong {
    font-size: 22px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.xfleet-word {
    align-items: center;
    display: inline-flex;
    gap: 1px;
}

.xfleet-x {
    background: url("../images/xact-x.png") center / contain no-repeat;
    display: inline-block;
    height: .72em;
    margin-right: 2px;
    width: .82em;
}


.eva-nav {
    min-width: 0;
}

.eva-menu {
    align-items: center;
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.eva-menu a {
    border: 1px solid transparent;
    color: var(--eva-muted);
    display: block;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 10px;
    text-decoration: none;
    white-space: nowrap;
}

.eva-menu a:hover,
.eva-menu .current-menu-item > a {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: var(--eva-primary-dark);
}

.eva-main {
    min-height: calc(100vh - 64px);
}

.eva-site-footer {
    align-items: center;
    background: #111111;
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 800;
    gap: 8px 18px;
    justify-content: center;
    line-height: 1.4;
    padding: 12px 14px;
    text-align: center;
}

.eva-content {
    margin: 0 auto;
    padding: 22px 14px;
    width: 100%;
}

.eva-content-narrow {
    max-width: 860px;
}

.eva-article,
.eva-home-panel,
.eva-plugin-missing {
    background: var(--eva-surface);
    border: 1px solid var(--eva-border);
    box-shadow: var(--eva-shadow);
    padding: 18px;
}

.eva-article h1,
.eva-home h1 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    margin: 0 0 16px;
}

.eva-entry-content > :first-child {
    margin-top: 0;
}

.eva-entry-content > :last-child {
    margin-bottom: 0;
}

.eva-home {
    align-items: center;
    display: grid;
    min-height: calc(100vh - 64px);
    padding: 18px;
}

.eva-home-panel {
    margin: 0 auto;
    max-width: 920px;
    width: 100%;
}

.eva-kicker {
    color: var(--eva-primary);
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.eva-app-content {
    min-height: calc(100vh - 64px);
}

.eva-app-content .eva-entry-content {
    min-height: inherit;
}

.eva-app-content .evc-operator-app {
    max-width: none;
    min-height: calc(100vh - 64px);
    width: 100%;
}

.eva-app-content .evc-app-header {
    top: 64px;
}


.eva-app-content [data-nok-field][hidden],
.eva-app-content [data-nok-field][aria-hidden="true"] {
    display: none !important;
}

.eva-app-content .evc-reader[hidden] {
    display: none;
}

.eva-app-content .evc-task-list {
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}

.eva-app-content .evc-vehicle-card,
.eva-app-content .evc-task,
.eva-app-content .evc-workbar,
.eva-app-content .evc-search,
.eva-app-content .evc-vehicle-navigator,
.eva-app-content .evc-sequence-meta {
    border-radius: 0;
}

.eva-plugin-missing {
    color: var(--eva-danger);
    font-weight: 800;
    margin: 18px;
}

@media (max-width: 720px) {
    .eva-site-header {
        align-items: flex-start;
        display: grid;
        gap: 8px;
    }

    .eva-menu {
        flex-wrap: wrap;
    }

    .eva-menu a {
        padding: 8px 9px;
    }

    .eva-brand-text strong {
        max-width: calc(100vw - 86px);
    }

    .eva-app-content .evc-app-header {
        top: 84px;
    }
}

@media (min-width: 1100px) {
    .eva-site-header {
        padding-left: 22px;
        padding-right: 22px;
    }

    .eva-app-content .evc-operator-app {
        padding-left: 24px;
        padding-right: 24px;
    }
}
