.edrive-sidebar {
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 240px;
    max-width: 240px;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 22px 0 20px;
    overflow-x: hidden;
    overflow-y: auto;;
    border-radius: 0;
    color: #e6eef8;
}

.edrive-sidebar ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    font-family: inherit;
    font-size: 13px;
}

.edrive-sidebar ul li {
    position: relative;
    display: flex;
    min-height: 38px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 0;
    padding: 0 18px;
    border-radius: 0 6px 6px 0;
    color: #d5e1ef;
    font-weight: 500;
    transition: background-color .18s ease, color .18s ease;
}

.edrive-sidebar ul li a {
    display: flex;
    width: 100%;
    min-height: 38px;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.edrive-sidebar ul li:hover {
    background: rgba(77, 133, 190, .16);
    color: #fff;
}

.edrive-sidebar ul li.active {
    background: linear-gradient(90deg, #1e4269 0%, #1a385b 100%);
    color: #fff;
    font-weight: 600;
}

.edrive-sidebar ul li.active::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    border-radius: 0 3px 3px 0;
    background: #1689e8;
    content: "";
}

.edrive-sidebar ul svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.edrive-sidebar ul li svg path,
.edrive-sidebar ul li svg circle,
.edrive-sidebar ul li svg rect,
.edrive-sidebar ul li svg line,
.edrive-sidebar ul li svg polyline,
.edrive-sidebar ul li svg polygon {
    stroke: currentColor;
    fill: currentColor;
}

.sidebar-footer {
    position: absolute;
    right: 18px;
    bottom: 24px;
    left: 18px;
    display: flex;
    justify-content: start;
    align-items: center;
    gap:6px;
}

.sidebar-footer a {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 7px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f27632;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-decoration: none;
}

.sidebar-footer a:hover {
    background: transparent;
    color: #ff985e;
}

.sidebar-footer  svg {
    width: 16px;
    height: 16px;
}

.edrive-container .hide-desktop {
    display: none;
}

body .edrive-container .nav-mobile {
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    .edrive-container .hide-desktop {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .edrive-side-nav {
        display: none;
    }

    body.nav-active .edrive-side-nav {
        display: block;
    }

    body.nav-active .edrive-sidebar {
        left: 0;
        z-index: 9999;
    }

    body.nav-active {
        overflow: hidden;
    }

    .menu-mob {
        display: block;
        width: 50px;
        height: 4px;
        background-color: var(--color-accent);
        transition: all .3s ease;
    }

    .menu-mob-bottom {
        width: 25px;
        margin-left: auto;
    }

    .edrive-container {
        position: relative;
        padding-bottom: 50px;
    }

    .edrive-vehicle-nav-buttons {
        position: absolute;
        bottom: 0;
        left: 0;
    }
}

.edrive-vehicle-nav-buttons a.btn {
    padding: 5px 20px;
    border-radius: 8px;
}

.edrive-vehicle-nav-buttons .btn-top-active {
    background-color: #fff;
    opacity: .8;
}

.edrive-vehicle-nav-buttons .btn-top-available {
    background-color: #ffffff5b;
    opacity: 1;
}

.edrive-dashboard-header {
    box-sizing: border-box;
    min-height: 58px;
    border-bottom: 1px solid #e5ebf2;
    background: #fff;
}

.edrive-dashboard-header .edrive-dashboard-header-inner {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    gap: 18px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 20px;
}

.edrive-dashboard-header .edrive-dashboard-header-left,
.edrive-dashboard-header .edrive-header-right,
.edrive-dashboard-header .edrive-header-user-tools,
.edrive-dashboard-header .edrive-user-greeting {
    display: flex;
    align-items: center;
}

.edrive-dashboard-header .edrive-dashboard-header-left {
    flex: 0 1 auto;
    gap: 14px;
    min-width: 0;
}

.edrive-dashboard-header .edrive-dashboard-header-spacer {
    flex: 1 1 auto;
    min-width: 20px;
}

.edrive-dashboard-header .edrive-desktop-menu,
.edrive-dashboard-header .edrive-notification-button {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #50627a;
    cursor: pointer;
}

.edrive-dashboard-header .edrive-desktop-menu:hover,
.edrive-dashboard-header .edrive-notification-button:hover {
    background: #f1f5f9;
}

.edrive-dashboard-header .edrive-desktop-menu svg {
    width: 20px;
    height: 20px;
}

.edrive-dashboard-header .nav-mobile.hide-desktop {
    display: none;
}

.edrive-dashboard-header .edrive-header-search {
    position: relative;
    z-index: 20;
    width: min(440px, 42vw);
    min-width: 280px;
}

.edrive-dashboard-header .edrive-header-search .gssync-search-box {
    display: block;
    width: 100%;
    margin: 0;
}

.edrive-dashboard-header .edrive-header-search #gssync-vehicle-search-input {
    box-sizing: border-box;
    width: 100%;
    height: 36px;
    margin: 0;
    padding: 0 12px 0 38px;
    border: 1px solid #d8e0ea;
    border-radius: 6px;
    outline: 0;
    background: #f8fafc;
    color: #263f5c;
    font-size: 12px;
    box-shadow: none;
}

.edrive-dashboard-header .edrive-header-search #gssync-vehicle-search-input:focus {
    border-color: #7ca9d3;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(57, 125, 190, .12);
}

.edrive-dashboard-header .edrive-header-search .gssync-vehicle-search-results {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dbe4ee;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(22, 45, 71, .14);
}

.edrive-dashboard-header .edrive-header-search .gssync-vehicle-search-result {
    display: block;
    padding: 9px 12px;
    border-bottom: 1px solid #edf1f5;
    color: #2f4d6e;
    font-size: 12px;
    text-decoration: none;
}

.edrive-dashboard-header .edrive-header-search .gssync-vehicle-search-result:hover {
    background: #f1f6fb;
}

.edrive-dashboard-header .edrive-header-search .gssync-no-vehicle-results {
    display: none;
    padding: 10px 12px;
    color: #7b8ca0;
    font-size: 12px;
}

.edrive-dashboard-header .edrive-header-right {
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 18px;
    min-width: 0;
}

.edrive-dashboard-header .edrive-vehicle-nav-buttons {
    position: static;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.edrive-dashboard-header .edrive-vehicle-nav-buttons a.btn {
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid #dce4ed;
    border-radius: 5px;
    color: #52677f;
    font-size: 11px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.edrive-dashboard-header .edrive-vehicle-nav-buttons .btn-top-active {
    border-color: #1e4269;
    background: #1e4269;
    color: #fff;
    opacity: 1;
}

.edrive-dashboard-header .edrive-vehicle-nav-buttons .btn-top-available {
    background: #fff;
    color: #52677f;
    opacity: 1;
}

.edrive-dashboard-header .edrive-header-user-tools {
    flex: 0 0 auto;
    gap: 12px;
}

.edrive-dashboard-header .edrive-notification-button {
    position: relative;
}

.edrive-dashboard-header .edrive-notification-button svg {
    width: 19px;
    height: 19px;
}

.edrive-dashboard-header .edrive-notification-count {
    position: absolute;
    top: 1px;
    right: 1px;
    display: grid;
    width: 12px;
    height: 12px;
    place-items: center;
    border-radius: 50%;
    background: #e54855;
    color: #fff;
    font-size: 8px;
    line-height: 1;
}

.edrive-dashboard-header .edrive-user-greeting {
    gap: 8px;
    color: #294360;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.edrive-dashboard-header .edrive-user-avatar {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #1478e4;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.edrive-dashboard-header .edrive-user-chevron {
    width: 13px;
    height: 13px;
    color: #60758d;
}

@media (max-width: 1050px) {
    .edrive-dashboard-header .edrive-dashboard-header-inner {
        gap: 10px;
        padding: 0 12px;
    }

    .edrive-dashboard-header .edrive-header-search {
        width: min(380px, 34vw);
        min-width: 220px;
    }

    .edrive-dashboard-header .edrive-header-right {
        gap: 10px;
    }

    .edrive-dashboard-header .edrive-vehicle-nav-buttons {
        gap: 4px;
    }

    .edrive-dashboard-header .edrive-vehicle-nav-buttons a.btn {
        padding-right: 9px;
        padding-left: 9px;
    }
}

@media (max-width: 768px) {
    .edrive-dashboard-header {
        width: 100%;
        margin: 0;
    }

    .edrive-dashboard-header .edrive-dashboard-header-inner {
        min-height: 56px;
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px 12px;
    }

    .edrive-dashboard-header .edrive-desktop-menu {
        display: none;
    }

    .edrive-dashboard-header .nav-mobile.hide-desktop {
        display: flex;
        flex: 0 0 28px;
        width: 28px;
        height: 34px;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 0 5px;
    }

    .edrive-dashboard-header .nav-mobile .menu-mob,
    .edrive-dashboard-header .nav-mobile .menu-mob-bottom {
        width: 18px;
        height: 2px;
        margin: 0;
        border-radius: 2px;
        background: #52677f;
    }

    .edrive-dashboard-header .edrive-dashboard-header-left {
        flex: 1 1 auto;
        gap: 8px;
    }

    .edrive-dashboard-header .edrive-header-search {
        width: auto;
        min-width: 0;
        flex: 1 1 230px;
    }

    .edrive-dashboard-header .edrive-dashboard-header-spacer {
        display: none;
    }

    .edrive-dashboard-header .edrive-header-right {
        flex: 1 1 100%;
        justify-content: space-between;
        gap: 8px;
    }

    .edrive-dashboard-header .edrive-vehicle-nav-buttons {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .edrive-dashboard-header .edrive-header-user-tools {
        gap: 6px;
    }
}

.edrive-sidebar {
    background: linear-gradient(155deg, #132d4b 0%, #0d2038 60%, #102944 100%);
    box-shadow: 3px 0 15px rgba(4, 15, 29, .2);
}

.edrive-sidebar > .edrive-container {
    box-sizing: border-box;
    display: block;
    width: 100% !important;
    max-width: none !important;
    margin: 20px 0 0 0 !important;
    padding: 0 18px !important;
}

.edrive-sidebar .edrive-logo img {
    display: block;
    width: 160px;
    max-width: 100%;
    height: auto;
}

.edrive-sidebar ul {
    margin-top: 38px;
}

.edrive-sidebar ul li.active {
    color: #fff !important;
}

.edrive-sidebar ul li.active svg path,
.edrive-sidebar ul li.active svg circle,
.edrive-sidebar ul li.active svg rect,
.edrive-sidebar ul li.active svg line,
.edrive-sidebar ul li.active svg polyline,
.edrive-sidebar ul li.active svg polygon {
    fill: currentColor !important;
    stroke: currentColor !important;
}

.sidebar-promo {
    position: absolute;
    right: 18px;
    bottom: 86px;
    left: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #32cb88;
}

.sidebar-promo svg {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
}

.sidebar-promo span {
    display: grid;
    gap: 2px;
    color: #34d18a;
    font-size: 11px;
    line-height: 1.3;
}

.sidebar-promo strong {
    font-weight: 700;
}

.sidebar-promo small {
    color: #a9d9c2;
    font-size: 10px;
}

.sidebar-footer {
    bottom: 22px;
    left: 18px;
}

.edrive-header.edrive-dashboard-header {
    position: relative;
    z-index: 100;
    box-sizing: border-box;
    width: calc(100% - 240px);
    min-height: 58px;
    margin: 0 0 0 240px;
    border: 0;
    border-bottom: 1px solid #dfe7f0;
    background: #fff;
    box-shadow: 0 3px 12px rgba(22, 45, 71, .1);
}

.edrive-header.edrive-dashboard-header .edrive-dashboard-header-inner {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    min-height: 58px;
    margin: 0 !important;
    padding: 0 22px !important;
}

.edrive-header.edrive-dashboard-header .edrive-header-search {
    width: min(450px, 44vw);
    min-width: 320px;
}

.edrive-header.edrive-dashboard-header .edrive-header-search #gssync-vehicle-search-input {
    height: 38px !important;
    border-color: #d7e0eb !important;
    border-radius: 6px !important;
    background: #f4f7fb !important;
    color: #263f5c !important;
    font-size: 12px !important;
    box-shadow: none !important;
}

.edrive-header.edrive-dashboard-header .edrive-header-search #gssync-vehicle-search-input:focus {
    border-color: #83a9d0 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(57, 125, 190, .12) !important;
}

.edrive-header.edrive-dashboard-header .edrive-header-search .gssync-search-box::before{content:'';position:absolute;left:15px;top:50%;transform:translateY(-50%);width:18px;height:18px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44' fill='none'%3E%3Cpath d='M32.1238 32.0559L41.5 41.5M37.1667 19.8333C37.1667 29.4063 29.4063 37.1667 19.8333 37.1667C10.2604 37.1667 2.5 29.4063 2.5 19.8333C2.5 10.2604 10.2604 2.5 19.8333 2.5C29.4063 2.5 37.1667 10.2604 37.1667 19.8333Z' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;pointer-events:none;}


.edrive-header.edrive-dashboard-header .edrive-vehicle-nav-buttons a.btn {
    min-height: 34px;
    padding: 8px 14px !important;
    border: 1px solid #dce4ed !important;
    border-radius: 5px !important;
    background: #fff !important;
    color: #405873 !important;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
}

.edrive-header.edrive-dashboard-header .edrive-vehicle-nav-buttons a.btn:hover {
    border-color: #9bb7d3 !important;
    background: #f4f8fc !important;
}

.edrive-header.edrive-dashboard-header .edrive-vehicle-nav-buttons a.btn.btn-top-active {
    border-color: #1d4169 !important;
    background: #1d4169 !important;
    color: #fff !important;
}

.edrive-header.edrive-dashboard-header .edrive-vehicle-nav-buttons a.btn.btn-top-active:hover {
    background: #27527f !important;
}

.edrive-header.edrive-dashboard-header .edrive-user-greeting {
    color: #263f5c;
    font-size: 12px;
    font-weight: 600;
}

body.role-vehicle_owner .edrive-header.edrive-dashboard-header {
    width: 100%;
    margin-left: 0;
}

@media (max-width: 1050px) {
    .edrive-header.edrive-dashboard-header .edrive-header-search {
        width: min(380px, 36vw);
        min-width: 230px;
    }
}

@media (max-width: 768px) {
    .edrive-header.edrive-dashboard-header {
        width: 100%;
        margin-left: 0;
    }

    .edrive-header.edrive-dashboard-header .edrive-dashboard-header-inner {
        padding: 8px 12px !important;
    }

    .edrive-header.edrive-dashboard-header .edrive-header-search {
        width: auto;
        min-width: 0;
    }
}

body.edrive-sidebar-collapsed .edrive-sidebar {
    width: 72px;
    max-width: 72px;
}

body.edrive-sidebar-collapsed .edrive-sidebar > .edrive-container,
body.edrive-sidebar-collapsed .sidebar-promo {
    display: none;
}

body.edrive-sidebar-collapsed .edrive-sidebar ul {
    margin-top: 18px;
}

body.edrive-sidebar-collapsed .edrive-sidebar ul li {
    justify-content: center;
    gap: 0;
    padding: 0;
}

body.edrive-sidebar-collapsed .edrive-sidebar ul li > svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

body.edrive-sidebar-collapsed .edrive-sidebar ul li > a {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

body.edrive-sidebar-collapsed .sidebar-footer {
    right: 0;
    left: 0;
    justify-content: center;
}

body.edrive-sidebar-collapsed .sidebar-footer a {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

body.edrive-sidebar-collapsed .edrive-header.edrive-dashboard-header,body.edrive-sidebar-collapsed .edrive-main-content {
    width: calc(100% - 72px);
    margin-left: 72px;
}

body.edrive-sidebar-collapsed .edrive-header .edrive-desktop-menu {
    background: #eef4fa;
    color: #1e4269;
}

@media (max-width: 768px) {
    body.edrive-sidebar-collapsed .edrive-sidebar {
        width: 240px;
        max-width: 240px;
    }

    body.edrive-sidebar-collapsed .edrive-sidebar > .edrive-container,
    body.edrive-sidebar-collapsed .sidebar-promo {
        display: block;
    }

    body.edrive-sidebar-collapsed .edrive-sidebar ul {
        margin-top: 38px;
    }

    body.edrive-sidebar-collapsed .edrive-sidebar ul li {
        justify-content: flex-start;
        gap: 12px;
        padding: 0 18px;
    }

    body.edrive-sidebar-collapsed .edrive-sidebar ul li > a,
    body.edrive-sidebar-collapsed .sidebar-footer a {
        position: static;
        width: 100%;
        height: auto;
        min-height: 38px;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }

    body.edrive-sidebar-collapsed .edrive-header.edrive-dashboard-header {
        width: 100%;
        margin-left: 0;
    }
}
