/* BoredSystems site theme; diagnostic layout and behavior remain in vdconsole.css. */
.vd-body {
    --vd-topbar-height: 70px;
    --vd-panel-border: #dce4eb;
    --tz-body-bg: #eaf1f3;
    --tz-body-color: #56616e;
    --tz-secondary-color: #6c757d;
    --tz-secondary-bg: #f4f7fa;
    --tz-primary: #4489e4;
    --tz-primary-rgb: 68, 137, 228;
    --tz-primary-text-emphasis: #3d7bcd;
    --tz-primary-bg-subtle: #dae7fa;
    --tz-primary-border-subtle: #b4d0f4;
    --tz-code-color: #3d7bcd;
    background: var(--tz-body-bg);
    color: var(--tz-body-color);
}

.vd-app-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    grid-template-rows: var(--vd-topbar-height) minmax(0, 1fr);
    height: 100vh;
    min-height: 700px;
}

.vd-site-nav {
    background: #1a2942;
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 1 / -1;
    min-width: 0;
    padding: 22px 14px 18px;
}

.vd-site-logo {
    display: block;
    margin: 0 4px 32px;
}

.vd-site-logo img {
    display: block;
    height: auto;
    max-width: 100%;
    width: 204px;
}

.vd-nav-label {
    color: #99abc3;
    display: block;
    font-size: .6875rem;
    letter-spacing: .09em;
    margin: 0 14px 12px;
    text-transform: uppercase;
}

.vd-site-nav .nav-tabs {
    border: 0;
    flex-direction: column;
    gap: 5px;
}

.vd-site-nav .nav-link {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 4px;
    color: #b5c2d5;
    display: flex;
    font-size: .875rem;
    gap: 11px;
    margin: 0;
    padding: 12px 14px;
    text-align: left;
    width: 100%;
}

.vd-site-nav .nav-link i {
    font-size: 1.125rem;
    line-height: 1;
}

.vd-site-nav .nav-link:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.vd-site-nav .nav-link.active {
    background: #3674c9;
    color: #fff;
}

.vd-site-nav .nav-link:focus-visible,
.vd-site-logo:focus-visible,
.vd-site-link:focus-visible {
    outline: 2px solid #b4d0f4;
    outline-offset: 3px;
}

.vd-site-link {
    align-items: center;
    color: #b5c2d5;
    display: flex;
    font-size: .8125rem;
    justify-content: space-between;
    margin-top: auto;
    padding: 18px 14px 0;
}

.vd-site-link:hover {
    color: #fff;
}

.vd-topbar {
    background: #fff;
    box-shadow: 0 1px 3px rgba(27, 23, 30, .06);
    grid-column: 2;
    grid-row: 1;
    left: auto;
    margin-left: 0 !important;
    padding: 0;
    position: relative;
    right: auto;
    width: auto;
}

.vd-topbar .topbar {
    height: var(--vd-topbar-height);
    padding: 0 24px;
}

.vd-brand,
.vd-brand:hover {
    color: #1a2942;
}

.vd-brand strong {
    font-size: 1.125rem;
    font-weight: 700;
}

.vd-brand small {
    color: #6c757d;
    font-size: .75rem;
    margin-top: .3rem;
}

.vd-content-page {
    grid-column: 2;
    grid-row: 2;
    min-height: 0;
    min-width: 0;
}

.vd-content-page > .content {
    height: 100%;
    margin-top: 0;
    padding: 0;
}

.vd-shell {
    height: 100%;
    min-height: 0;
    padding: 20px 24px 24px;
}

.vd-shell .card {
    --tz-card-bg: #fff;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(27, 23, 30, .1);
}

.vd-vehicle-strip {
    margin-bottom: 16px;
    overflow: hidden;
}

.vd-vehicle-strip > .card-body {
    padding: 14px 18px !important;
}

.vd-field-label {
    font-size: .6875rem;
}

.vd-field-value {
    color: #354458;
    font-size: .875rem;
    margin-top: 3px;
}

.vd-main-content > .tab-pane {
    padding-top: 0;
}

.vd-diagnostic-workspace {
    gap: 16px;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
}

.vd-shell .card-header {
    background: #fff;
    border-bottom: 1px solid #edf0f3;
    padding: 14px 16px !important;
}

.vd-shell .header-title {
    color: #354458;
    font-size: 1rem;
}

.vd-feature-tabs {
    padding: 4px 8px 0;
}

.vd-feature-tabs .nav-link {
    color: #6c757d;
}

.vd-detail-card .vd-feature-tabs .nav-link {
    font-size: .875rem;
    padding: 12px 10px;
}

.vd-feature-tabs .nav-link.active {
    color: #4489e4;
}

.vd-body .btn-primary {
    --tz-btn-bg: #4489e4;
    --tz-btn-border-color: #4489e4;
    --tz-btn-hover-bg: #3d7bcd;
    --tz-btn-hover-border-color: #3d7bcd;
    --tz-btn-active-bg: #366eb6;
    --tz-btn-active-border-color: #366eb6;
    --tz-btn-disabled-bg: #4489e4;
    --tz-btn-disabled-border-color: #4489e4;
    --tz-btn-focus-shadow-rgb: 68, 137, 228;
}

.vd-body .btn-outline-primary {
    --tz-btn-color: #4489e4;
    --tz-btn-border-color: #4489e4;
    --tz-btn-hover-bg: #4489e4;
    --tz-btn-hover-border-color: #4489e4;
    --tz-btn-active-bg: #3d7bcd;
    --tz-btn-active-border-color: #3d7bcd;
    --tz-btn-disabled-color: #4489e4;
    --tz-btn-disabled-border-color: #4489e4;
    --tz-btn-focus-shadow-rgb: 68, 137, 228;
}

.vd-body .form-check-input:checked {
    background-color: #4489e4;
    border-color: #4489e4;
}

.vd-shell .table {
    --tz-table-bg: #fff;
    --tz-table-hover-bg: #f4f7fa;
}

.vd-shell .table thead {
    background: #f4f7fa;
    color: #56616e;
}

.vd-shell .table th {
    font-weight: 700;
}

.vd-coding-helper,
.vd-coding-bits > *,
.vd-fault-detail,
.vd-measurement-basket,
.vd-measurement-monitor,
.vd-active-task {
    border-radius: 4px;
}

@media (max-width: 1199px) {
    .vd-app-layout {
        grid-template-columns: 210px minmax(0, 1fr);
    }

    .vd-shell {
        padding: 16px;
    }

    .vd-diagnostic-workspace {
        gap: 12px;
        grid-template-columns: 260px minmax(0, 1fr);
    }
}

@media (max-width: 991px) {
    .vd-app-layout {
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .vd-site-nav {
        padding: 14px 16px 0;
    }

    .vd-site-logo {
        margin: 0 0 14px;
    }

    .vd-site-logo img {
        width: 185px;
    }

    .vd-nav-label,
    .vd-site-link {
        display: none;
    }

    .vd-site-nav .nav-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 4px;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .vd-site-nav .nav-item {
        flex: 0 0 auto;
    }

    .vd-site-nav .nav-link {
        font-size: .8125rem;
        gap: 7px;
        padding: 9px 12px;
        white-space: nowrap;
    }

    .vd-topbar .topbar {
        padding: 0 16px;
    }

    .vd-shell {
        height: auto;
        padding: 16px;
    }

    .vd-diagnostic-workspace {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575px) {
    .vd-site-nav {
        padding: 12px 12px 0;
    }

    .vd-topbar .topbar {
        padding: 0 12px;
    }

    .vd-brand strong {
        font-size: 1rem;
    }

    .vd-shell {
        padding: 12px;
    }

    .vd-vehicle-strip > .card-body {
        padding: 12px !important;
    }
}

.vd-connector-help { position: relative; }
.vd-connector-help summary {
    display: grid; place-items: center; width: 22px; height: 22px;
    list-style: none; cursor: pointer; border: 1px solid #b8c4d1;
    border-radius: 50%; color: #526275; font-size: 13px;
}
.vd-connector-help summary::-webkit-details-marker { display: none; }
.vd-connector-help p {
    position: absolute; right: 0; top: 30px; z-index: 1050; width: 235px;
    margin: 0; padding: 12px; border: 1px solid #d6dee7; border-radius: 6px;
    background: #fff; color: #334155; font-size: 13px; line-height: 1.5;
    box-shadow: 0 4px 16px #172b4526;
}
