/* =========================================================
   SIMFAR TOPBAR
   ========================================================= */

.simfar-topbar {
    height: 64px;
    width: 100%;

    display: flex;
    align-items: center;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    box-sizing: border-box;

    padding: 0 24px;

    position: relative;
    z-index: 900;
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu-btn {
    width: 38px;
    height: 38px;

    display: none;

    align-items: center;
    justify-content: center;

    border: 1px solid #d9e1e5;
    border-radius: 7px;

    background: #ffffff;

    color: #0d4f56;

    cursor: pointer;
}


.mobile-menu-btn svg {
    width: 21px;
    height: 21px;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.topbar-breadcrumb {
    display: flex;
    align-items: center;

    gap: 9px;

    min-width: 210px;

    color: #64748b;

    font-size: 13px;

    white-space: nowrap;
}


.topbar-breadcrumb .breadcrumb-home {
    color: #315d64;

    font-weight: 500;
}


.topbar-breadcrumb strong {
    color: #172b35;

    font-weight: 700;
}


.topbar-breadcrumb svg {
    width: 15px;
    height: 15px;

    color: #94a3b8;
}


/* =========================================================
   SEARCH
   ========================================================= */

.topbar-search {
    position: relative;

    width: 340px;

    margin-left: 28px;
}


.topbar-search svg {
    position: absolute;

    left: 13px;
    top: 50%;

    width: 18px;
    height: 18px;

    transform: translateY(-50%);

    color: #64748b;

    pointer-events: none;
}


.topbar-search input {
    width: 100%;
    height: 40px;

    padding: 0 14px 0 40px;

    box-sizing: border-box;

    border: 1px solid #dce3e7;

    border-radius: 9px;

    background: #f8fafb;

    color: #1e293b;

    font-size: 12px;

    outline: none;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


.topbar-search input::placeholder {
    color: #94a3b8;
}


.topbar-search input:focus {
    background: #ffffff;

    border-color: #0d7f88;

    box-shadow: 0 0 0 3px rgba(13,127,136,.08);
}


/* =========================================================
   TOPBAR ACTIONS
   ========================================================= */

.topbar-actions {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 17px;
}


/* =========================================================
   NOTIFICATION
   ========================================================= */

.topbar-icon-btn {
    position: relative;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    background: transparent;

    color: #334155;

    border-radius: 8px;

    cursor: pointer;
}


.topbar-icon-btn:hover {
    background: #f1f5f6;
}


.topbar-icon-btn svg {
    width: 20px;
    height: 20px;
}


.notification-dot {
    position: absolute;

    top: 1px;
    right: 1px;

    min-width: 17px;
    height: 17px;

    padding: 0 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    background: #ef4444;

    color: #ffffff;

    border: 2px solid #ffffff;

    border-radius: 10px;

    font-size: 9px;
    font-weight: 800;
}


/* =========================================================
   USER
   ========================================================= */

.topbar-user {
    display: flex;
    align-items: center;

    gap: 9px;

    min-width: 185px;

    cursor: pointer;

    padding: 5px 7px;

    border-radius: 9px;
}


.topbar-user:hover {
    background: #f5f8f9;
}


.topbar-avatar {
    width: 35px;
    height: 35px;

    min-width: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f4e84a;

    color: #16474c;

    border-radius: 50%;

    font-size: 11px;
    font-weight: 800;
}


.topbar-user-info {
    display: flex;
    flex-direction: column;

    min-width: 0;
}


.topbar-user-info strong {
    color: #172b35;

    font-size: 11px;
    font-weight: 700;

    line-height: 1.3;

    white-space: nowrap;
}


.topbar-user-info span {
    color: #64748b;

    font-size: 9px;

    line-height: 1.3;

    white-space: nowrap;
}


.user-chevron {
    width: 15px;
    height: 15px;

    margin-left: 2px;

    color: #64748b;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {

    .topbar-search {
        width: 280px;
        margin-left: 18px;
    }

    .topbar-breadcrumb {
        min-width: 170px;
    }

}


@media (max-width: 768px) {

    .simfar-topbar {
        height: 60px;

        padding: 0 14px;
    }


    .mobile-menu-btn {
        display: flex;

        margin-right: 12px;
    }


    .topbar-breadcrumb {
        min-width: auto;
    }


    .topbar-breadcrumb .breadcrumb-home,
    .topbar-breadcrumb svg {
        display: none;
    }


    .topbar-search {
        flex: 1;

        width: auto;

        margin-left: 12px;
    }


    .topbar-actions {
        gap: 4px;
    }


    .topbar-user-info,
    .user-chevron {
        display: none;
    }


    .topbar-user {
        min-width: auto;

        padding: 3px;
    }

}


@media (max-width: 480px) {

    .topbar-breadcrumb {
        display: none;
    }


    .topbar-search {
        margin-left: 0;
    }

}