/* ================================================================
   BUILDRO ERP V3
   ACCORDION SIDEBAR
   ================================================================ */

.re-accordion-nav {
    padding-bottom: 24px;
}

.re-accordion-group {
    margin: 0 10px 8px;
}

.re-accordion-trigger {
    width: 100%;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);

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

    min-height: 48px;
    padding: 10px 12px;

    border-radius: 10px;

    font-size: 0.93rem;
    font-weight: 650;

    text-align: left;

    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease;
}

.re-accordion-trigger:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.re-accordion-trigger.active {
    color: #f0c236;
    background: rgba(240, 194, 54, 0.08);
}

.re-accordion-trigger-main {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.re-accordion-trigger-main > i {
    width: 22px;
    min-width: 22px;
    text-align: center;
    font-size: 1.05rem;
}

.re-accordion-arrow {
    font-size: 0.8rem;
    opacity: 0.7;

    transition:
        transform 0.22s ease,
        opacity 0.22s ease;
}

.re-accordion-trigger[aria-expanded="true"]
.re-accordion-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.re-accordion-body {
    position: relative;
    padding: 5px 0 7px 12px;
    margin-left: 11px;

    border-left:
        1px solid rgba(255, 255, 255, 0.08);
}

.re-accordion-body .re-menu-link {
    min-height: 42px;
    margin: 3px 0;
    padding: 9px 11px;

    border-radius: 9px;

    font-size: 0.89rem;
}

.re-accordion-body .re-menu-link i {
    width: 21px;
    min-width: 21px;
    text-align: center;
    opacity: 0.82;
}

.re-accordion-body .re-menu-link.active {
    background: rgba(240, 194, 54, 0.14);
    color: #f0c236;
}

.re-accordion-body .re-menu-link.active i {
    color: #f0c236;
    opacity: 1;
}

.re-sidebar-logout-area {
    margin: 16px 10px 0;
    padding-top: 12px;

    border-top:
        1px solid rgba(255, 255, 255, 0.08);
}

.re-sidebar-logout-link {
    color: rgba(255, 255, 255, 0.66);
}

.re-sidebar-logout-link:hover {
    color: #ffffff;
}


/* ================================================================
   MOBILE
   ================================================================ */

@media (max-width: 991.98px) {

    .re-accordion-trigger {
        min-height: 50px;
    }

    .re-accordion-body .re-menu-link {
        min-height: 44px;
    }
}


/* ================================================================
   ACCESSIBILITY
   ================================================================ */

.re-accordion-trigger:focus-visible {
    outline: 2px solid rgba(240, 194, 54, 0.75);
    outline-offset: 2px;
}


/* ================================================================
   BUILDRO ERP V3
   MOBILE SIDEBAR FINAL SCROLL FIX
   ================================================================ */

@media (max-width: 991.98px) {

    /* ------------------------------------------------------------
       SIDEBAR ANA GOVDE
       ------------------------------------------------------------ */

    .re-sidebar {
        position: fixed !important;

        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;

        width: min(88vw, 320px) !important;
        min-width: 0 !important;
        max-width: 320px !important;

        height: 100vh !important;
        height: 100dvh !important;

        max-height: 100dvh !important;

        display: flex !important;
        flex-direction: column !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        overscroll-behavior-y: contain;
        -webkit-overflow-scrolling: touch;

        transform: translateX(-105%) !important;

        z-index: 1060 !important;

        padding-bottom:
            max(
                24px,
                env(safe-area-inset-bottom)
            ) !important;
    }


    body.re-sidebar-open .re-sidebar {
        transform: translateX(0) !important;
    }


    /* ------------------------------------------------------------
       SIDEBAR ICINDEKI TUM WRAPPER'LAR
       SCROLL'U KESMESIN
       ------------------------------------------------------------ */

    .re-sidebar > *,
    .re-sidebar nav,
    .re-sidebar .re-sidebar-nav,
    .re-sidebar .re-accordion-nav,
    .re-sidebar #buildroSidebarAccordion {

        flex-shrink: 0;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        overflow: visible !important;
    }


    /* ------------------------------------------------------------
       ACCORDION
       ------------------------------------------------------------ */

    .re-sidebar .re-accordion-nav {
        width: 100% !important;

        padding-bottom:
            max(
                32px,
                env(safe-area-inset-bottom)
            ) !important;
    }


    .re-sidebar .re-accordion-group {
        display: block !important;

        width: auto !important;

        height: auto !important;
        max-height: none !important;

        overflow: visible !important;

        flex: 0 0 auto !important;
    }


    .re-sidebar .collapse.show {
        height: auto !important;
        max-height: none !important;

        overflow: visible !important;
    }


    .re-sidebar .collapsing {
        overflow: hidden !important;
    }


    .re-sidebar .re-accordion-body {
        height: auto !important;
        max-height: none !important;

        overflow: visible !important;
    }


    /* ------------------------------------------------------------
       MENU SATIRLARI
       ------------------------------------------------------------ */

    .re-sidebar .re-accordion-trigger,
    .re-sidebar .re-menu-link {

        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;

        flex-shrink: 0 !important;
    }


    .re-sidebar .re-accordion-trigger {
        min-height: 50px !important;
    }


    .re-sidebar .re-menu-link {
        min-height: 44px !important;
    }


    /* ------------------------------------------------------------
       LOGOUT / ALT BOLUMLER
       ------------------------------------------------------------ */

    .re-sidebar .re-sidebar-logout-area {
        display: block !important;

        position: static !important;

        height: auto !important;
        max-height: none !important;

        overflow: visible !important;

        flex-shrink: 0 !important;

        margin-bottom:
            max(
                20px,
                env(safe-area-inset-bottom)
            ) !important;
    }


    /* ------------------------------------------------------------
       OVERLAY
       ------------------------------------------------------------ */

    #sidebarOverlay,
    .re-overlay {

        position: fixed !important;
        inset: 0 !important;

        width: 100vw !important;
        height: 100dvh !important;

        background:
            rgba(15, 23, 42, .58) !important;

        z-index: 1050 !important;
    }


    /* ------------------------------------------------------------
       SIDEBAR ACIKKEN BODY
       ------------------------------------------------------------ */

    body.re-sidebar-open {
        overflow: hidden !important;
        touch-action: none;
    }


    body.re-sidebar-open .re-sidebar {
        touch-action: pan-y;
    }

}


/* ================================================================
   SMALL PHONE
   ================================================================ */

@media (max-width: 575.98px) {

    .re-sidebar {
        width: min(92vw, 300px) !important;
        max-width: 300px !important;
    }


    .re-sidebar .re-accordion-group {
        margin-left: 7px !important;
        margin-right: 7px !important;
    }


    .re-sidebar .re-accordion-trigger {
        min-height: 48px !important;

        padding:
            9px
            10px !important;
    }


    .re-sidebar .re-accordion-body {
        padding-left: 8px !important;
    }

}


/* ================================================================
   BUILDRO ERP V3
   MOBILE HAMBURGER STATE - FINAL AUTHORITY
   ================================================================ */

@media (max-width: 991.98px) {

    /* ============================================================
       KAPALI
       ============================================================ */

    html body #sidebar.re-sidebar {
        position: fixed !important;

        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;

        width: min(88vw, 320px) !important;
        max-width: 320px !important;

        height: 100vh !important;
        height: 100dvh !important;

        margin: 0 !important;

        transform:
            translate3d(-105%, 0, 0) !important;

        visibility: hidden !important;
        opacity: 0 !important;

        pointer-events: none !important;

        transition:
            transform .24s ease,
            opacity .18s ease,
            visibility .18s ease !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        -webkit-overflow-scrolling: touch;

        z-index: 1065 !important;
    }


    /* ============================================================
       ACIK
       ============================================================ */

    html body.re-sidebar-open #sidebar.re-sidebar {
        transform:
            translate3d(0, 0, 0) !important;

        visibility: visible !important;
        opacity: 1 !important;

        pointer-events: auto !important;
    }


    /* ============================================================
       OVERLAY KAPALI
       ============================================================ */

    html body #sidebarOverlay.re-overlay {
        position: fixed !important;

        inset: 0 !important;

        display: block !important;

        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;

        background:
            rgba(15, 23, 42, .58) !important;

        opacity: 0 !important;
        visibility: hidden !important;

        pointer-events: none !important;

        transition:
            opacity .2s ease,
            visibility .2s ease !important;

        z-index: 1060 !important;
    }


    /* ============================================================
       OVERLAY ACIK
       ============================================================ */

    html body.re-sidebar-open #sidebarOverlay.re-overlay {
        opacity: 1 !important;
        visibility: visible !important;

        pointer-events: auto !important;
    }


    /* ============================================================
       ESKI SIDEBAR STATE'LERINI ETKISIZLESTIR
       ============================================================ */

    html body.sidebar-open #sidebar.re-sidebar,
    html body #sidebar.re-sidebar.show {

        transform:
            translate3d(-105%, 0, 0) !important;

        visibility: hidden !important;
        opacity: 0 !important;

        pointer-events: none !important;
    }


    html body.re-sidebar-open.sidebar-open #sidebar.re-sidebar,
    html body.re-sidebar-open #sidebar.re-sidebar.show {

        transform:
            translate3d(0, 0, 0) !important;

        visibility: visible !important;
        opacity: 1 !important;

        pointer-events: auto !important;
    }


    body.re-sidebar-open {
        overflow: hidden !important;
    }

}

/* BUILDRO_MOBILE_SIDEBAR_SINGLE_AUTHORITY_START */

/* ================================================================
   BUILDRO ERP V3
   MOBILE SIDEBAR - SINGLE FINAL AUTHORITY
   ================================================================ */

@media (max-width: 991.98px) {

    /* Sidebar kapalı */
    #sidebar.re-sidebar {
        position: fixed !important;

        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;

        width: min(86vw, 320px) !important;
        max-width: 320px !important;

        height: 100vh !important;
        height: 100dvh !important;

        margin: 0 !important;

        transform: translate3d(-105%, 0, 0) !important;

        transition:
            transform 0.22s ease !important;

        z-index: 1055 !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;

        visibility: visible !important;
        opacity: 1 !important;
    }


    /* Sidebar açık */
    body.re-sidebar-open #sidebar.re-sidebar {
        transform: translate3d(0, 0, 0) !important;
    }


    /* Overlay kapalı */
    #sidebarOverlay {
        position: fixed !important;
        inset: 0 !important;

        display: block !important;

        background:
            rgba(7, 24, 17, 0.52) !important;

        opacity: 0 !important;
        visibility: hidden !important;

        pointer-events: none !important;

        transition:
            opacity 0.20s ease,
            visibility 0.20s ease !important;

        z-index: 1050 !important;
    }


    /* Overlay açık */
    body.re-sidebar-open #sidebarOverlay {
        opacity: 1 !important;
        visibility: visible !important;

        pointer-events: auto !important;
    }


    /* Mobil açıkken arka plan kaymasın */
    body.re-sidebar-open {
        overflow: hidden !important;
        touch-action: none;
    }


    /* Mobil ana içerik */
    .re-main {
        width: 100% !important;
        max-width: 100% !important;

        margin-left: 0 !important;
    }


    /* Hamburger her zaman erişilebilir */
    #sidebarToggle.re-sidebar-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;

        position: relative;
        z-index: 1;
    }
}


/* Desktop'ta mobil state kalmış olsa bile etkisizleştir */
@media (min-width: 992px) {

    #sidebarOverlay {
        display: none !important;
    }

    body.re-sidebar-open {
        overflow: auto !important;
    }
}

/* BUILDRO_MOBILE_SIDEBAR_SINGLE_AUTHORITY_END */



/* ============================================================
   BUILDRO SIDEBAR V10.1 PREMIUM ACCORDION
   ============================================================ */

.re-accordion-nav {
    padding:
        10px
        9px
        18px;
}


.re-accordion-group {
    margin-bottom: 5px;
}


.re-accordion-trigger {
    width: 100%;

    min-height: 44px;

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

    padding:
        9px
        11px;

    border: 1px solid transparent;
    border-radius: 10px;

    background: transparent;

    color: rgba(255,255,255,.74);

    transition:
        background .15s ease,
        color .15s ease,
        border-color .15s ease;
}


.re-accordion-trigger:hover {
    background:
        rgba(255,255,255,.055);

    color: #ffffff;
}


.re-accordion-trigger.active,
.re-accordion-trigger[aria-expanded="true"] {
    background:
        rgba(25,135,84,.13);

    border-color:
        rgba(25,135,84,.18);

    color: #ffffff;
}


.re-accordion-trigger-main {
    display: flex;
    align-items: center;

    gap: 11px;

    min-width: 0;
}


.re-accordion-trigger-main > i {
    width: 20px;

    flex:
        0 0 20px;

    color: #91a1ad;

    font-size: 16px;

    text-align: center;

    transition:
        color .15s ease;
}


.re-accordion-trigger.active
.re-accordion-trigger-main > i,
.re-accordion-trigger[aria-expanded="true"]
.re-accordion-trigger-main > i {
    color: #4fc487;
}


.re-accordion-trigger-main > span {
    overflow: hidden;

    color: inherit;

    font-size: 13px;
    font-weight: 700;

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


.re-accordion-arrow {
    flex: 0 0 auto;

    color: #71808c;

    font-size: 11px;

    transition:
        transform .18s ease,
        color .18s ease;
}


.re-accordion-trigger[aria-expanded="true"]
.re-accordion-arrow {
    transform:
        rotate(180deg);

    color: #4fc487;
}


.re-accordion-body {
    position: relative;

    margin:
        4px
        0
        7px
        20px;

    padding:
        3px
        0
        3px
        10px;

    border-left:
        1px solid
        rgba(255,255,255,.075);
}


.re-accordion-body .re-menu-link {
    position: relative;

    min-height: 36px;

    display: flex;
    align-items: center;

    gap: 9px;

    margin: 1px 0;

    padding:
        7px
        9px;

    border-radius: 8px;

    color: rgba(255,255,255,.60);

    font-size: 12.5px;

    transition:
        background .14s ease,
        color .14s ease;
}


.re-accordion-body .re-menu-link:hover {
    background:
        rgba(255,255,255,.045);

    color: #ffffff;
}


.re-accordion-body .re-menu-link.active {
    background:
        rgba(25,135,84,.15);

    color: #6bd99f;
}


.re-accordion-body
.re-menu-link.active::before {
    content: "";

    position: absolute;

    left: -11px;
    top: 8px;
    bottom: 8px;

    width: 2px;

    border-radius: 4px;

    background: #198754;
}


.re-accordion-body
.re-menu-link > i {
    width: 17px;

    flex:
        0 0 17px;

    color: #82909b;

    font-size: 13px;

    text-align: center;
}


.re-accordion-body
.re-menu-link.active > i {
    color: #4fc487;
}


/* Alt eski menu-group boşluklarını bastır */
.re-sidebar-nav > .re-menu-group {
    margin-top: 7px;
}


/* Logout diğer menülerden ayrışsın */
.re-sidebar-logout-area {
    margin-top: 10px;

    padding-top: 10px;

    border-top:
        1px solid
        rgba(255,255,255,.065);
}


.re-sidebar-logout-link {
    color:
        rgba(255,255,255,.55);
}


.re-sidebar-logout-link:hover {
    color: #ffffff;
}


/* Mobilde dokunmatik alan */
@media (max-width: 991.98px) {

    .re-accordion-trigger {
        min-height: 46px;
    }

    .re-accordion-body
    .re-menu-link {
        min-height: 42px;
    }

}
