/* ==========================================================
   BUILDRO SIDEBAR V11 - FINAL POLISH
   Visual only.
   Layout width / mobile engine / routes untouched.
   ========================================================== */


/* ----------------------------------------------------------
   BRAND
   ---------------------------------------------------------- */

.re-sidebar .re-sidebar-brand {
    padding-top: 14px;
    padding-bottom: 14px;
}

.re-sidebar .re-brand-title {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.re-sidebar .re-brand-subtitle {
    margin-top: 3px;
    opacity: .72;
}


/* ----------------------------------------------------------
   ACTIVE WORKSPACE / SANTIYE
   ---------------------------------------------------------- */

.re-sidebar .re-v102-workspace {
    margin-top: 8px;
    margin-bottom: 8px;
}

.re-sidebar .re-v102-site-card {
    margin-left: 10px;
    margin-right: 10px;
    padding: 11px 10px;

    border:
        1px solid
        rgba(255, 255, 255, .09);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, .045);

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, .025);
}

.re-sidebar .re-v102-site-icon {
    opacity: .88;
}

.re-sidebar .re-v102-site-label {
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .08em;
    opacity: .62;
}

.re-sidebar .re-v102-site-name {
    margin-top: 2px;
    font-size: .88rem;
    font-weight: 700;
}

.re-sidebar .re-v102-site-switch {
    border-radius: 8px;
    transition:
        background-color .15s ease,
        transform .15s ease;
}

.re-sidebar .re-v102-site-switch:hover {
    transform: translateY(-1px);
}


/* ----------------------------------------------------------
   SEARCH
   ---------------------------------------------------------- */

.re-sidebar .re-v103-search {
    margin-top: 9px;
    margin-bottom: 10px;
}

.re-sidebar .re-v103-search-box {
    border-radius: 11px;
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background-color .15s ease;
}

.re-sidebar .re-v103-search-box:focus-within {
    border-color:
        rgba(240, 194, 54, .48);

    box-shadow:
        0 0 0 3px
        rgba(240, 194, 54, .08);
}


/* ----------------------------------------------------------
   MAIN GROUPS
   ---------------------------------------------------------- */

.re-sidebar .re-accordion-group {
    margin-top: 3px;
    margin-bottom: 3px;
}

.re-sidebar .re-accordion-trigger {
    min-height: 44px;

    border:
        1px solid
        transparent;

    border-radius: 10px;

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

.re-sidebar .re-accordion-trigger:hover {
    background:
        rgba(255, 255, 255, .045);
}

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

    border-color:
        rgba(255, 255, 255, .055);
}

.re-sidebar
.re-accordion-trigger[aria-expanded="true"]
.re-accordion-trigger-main {
    font-weight: 750;
}


/* ----------------------------------------------------------
   GROUP ICONS
   ---------------------------------------------------------- */

.re-sidebar
.re-accordion-trigger-main > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    min-width: 24px;
    height: 24px;

    border-radius: 7px;

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

.re-sidebar
.re-accordion-trigger[aria-expanded="true"]
.re-accordion-trigger-main > i {
    background:
        rgba(255, 255, 255, .065);

    color: #f0c236;
}


/* ----------------------------------------------------------
   SUBMENU
   ---------------------------------------------------------- */

.re-sidebar .re-accordion-body {
    position: relative;

    margin-top: 3px;
    margin-bottom: 6px;

    padding-top: 2px;
    padding-bottom: 2px;
}

.re-sidebar .re-accordion-body::before {
    content: "";

    position: absolute;

    left: 18px;
    top: 5px;
    bottom: 5px;

    width: 1px;

    background:
        rgba(255, 255, 255, .075);
}

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

    min-height: 39px;

    margin-top: 2px;
    margin-bottom: 2px;

    border:
        1px solid
        transparent;

    border-radius: 9px;

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

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

.re-sidebar
.re-accordion-body
.re-menu-link.active {
    background:
        linear-gradient(
            90deg,
            rgba(25, 135, 84, .22),
            rgba(25, 135, 84, .08)
        );

    border-color:
        rgba(240, 194, 54, .30);

    color: #f0c236;
    font-weight: 700;
}


/* Aktif alt menünün sol göstergesi */

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

    position: absolute;

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

    width: 3px;

    border-radius:
        0 4px 4px 0;

    background:
        #f0c236;

    box-shadow:
        0 0 10px
        rgba(240, 194, 54, .20);
}


/* ----------------------------------------------------------
   MENU TITLE:
   FIRMA / PLATFORM YONETIMI
   ---------------------------------------------------------- */

.re-sidebar .re-menu-group {
    margin-top: 13px;
}

.re-sidebar .re-menu-title {
    margin-bottom: 6px;

    font-size: .67rem;
    font-weight: 800;

    letter-spacing: .11em;

    opacity: .50;
}


/* ----------------------------------------------------------
   DIRECT MENU LINKS
   Firma / platform / logout etc.
   ---------------------------------------------------------- */

.re-sidebar
.re-menu-group
.re-menu-link {
    min-height: 40px;

    margin-top: 2px;
    margin-bottom: 2px;

    border-radius: 9px;

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

.re-sidebar
.re-menu-group
.re-menu-link:hover {
    background:
        rgba(255, 255, 255, .045);
}


/* ----------------------------------------------------------
   LOGOUT
   ---------------------------------------------------------- */

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

.re-sidebar .re-sidebar-logout-link {
    opacity: .78;

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

.re-sidebar .re-sidebar-logout-link:hover {
    opacity: 1;
    background:
        rgba(220, 53, 69, .09);
}


/* ----------------------------------------------------------
   SCROLLBAR - DESKTOP
   ---------------------------------------------------------- */

@media (min-width: 992px) {

    .re-sidebar {
        scrollbar-width: thin;
    }

    .re-sidebar::-webkit-scrollbar {
        width: 5px;
    }

    .re-sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    .re-sidebar::-webkit-scrollbar-thumb {
        background:
            rgba(255, 255, 255, .12);

        border-radius: 999px;
    }
}


/* ----------------------------------------------------------
   MOBILE
   Sadece görsel yoğunluğu azalt.
   Pozisyon/transform/width YOK.
   ---------------------------------------------------------- */

@media (max-width: 991.98px) {

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

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

}


/* ==========================================================
   BUILDRO_SAHA_DIRECT_PIXEL_POLISH_V1

   Personel / Puantaj / Bordro / Arac-Makine / Mazot
   ana navigasyon seviyesi.

   Layout / sidebar width / mobile engine untouched.
   ========================================================== */


/* ----------------------------------------------------------
   DIRECT MENU CONTAINER
   Accordion gruplarıyla aynı dikey ritim.
   ---------------------------------------------------------- */

.re-sidebar
.re-saha-direct-menu {
    margin-top: 3px;
    margin-bottom: 3px;
}


/* ----------------------------------------------------------
   DIRECT MAIN LINKS
   Accordion trigger ile aynı 44px satır yüksekliği.
   ---------------------------------------------------------- */

.re-sidebar
.re-saha-direct-menu
.re-menu-link {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 44px;

    margin: 3px 0;
    padding: 9px 12px;

    gap: 10px;

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

    font-size: inherit;
    font-weight: 600;
    line-height: 1.2;

    text-decoration: none;

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


/* ----------------------------------------------------------
   ICON
   Accordion ana ikonuyla aynı kutu.
   ---------------------------------------------------------- */

.re-sidebar
.re-saha-direct-menu
.re-menu-link > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 24px;

    width: 24px;
    height: 24px;

    margin: 0;

    border-radius: 7px;

    font-size: 1rem;
    line-height: 1;

    opacity: .90;

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


/* ----------------------------------------------------------
   TEXT
   ---------------------------------------------------------- */

.re-sidebar
.re-saha-direct-menu
.re-menu-link > span {
    display: block;

    min-width: 0;

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


/* ----------------------------------------------------------
   HOVER
   ---------------------------------------------------------- */

.re-sidebar
.re-saha-direct-menu
.re-menu-link:hover {
    background:
        rgba(255, 255, 255, .045);

    border-color:
        rgba(255, 255, 255, .035);

    color: inherit;
}


/* ----------------------------------------------------------
   ACTIVE
   Accordion aktif grubuyla aynı kurumsal dil.
   ---------------------------------------------------------- */

.re-sidebar
.re-saha-direct-menu
.re-menu-link.active {
    background:
        linear-gradient(
            90deg,
            rgba(25, 135, 84, .22),
            rgba(25, 135, 84, .08)
        );

    border-color:
        rgba(240, 194, 54, .24);

    color: #f0c236;

    font-weight: 700;
}


/* Aktif direct modülün sol göstergesi */

.re-sidebar
.re-saha-direct-menu
.re-menu-link.active::before {
    content: "";

    position: absolute;

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

    width: 3px;

    border-radius:
        0 4px 4px 0;

    background: #f0c236;

    box-shadow:
        0 0 10px
        rgba(240, 194, 54, .18);
}


/* Aktif ikon */

.re-sidebar
.re-saha-direct-menu
.re-menu-link.active > i {
    background:
        rgba(255, 255, 255, .065);

    color: #f0c236;
    opacity: 1;
}


/* ----------------------------------------------------------
   FOCUS / KEYBOARD
   ---------------------------------------------------------- */

.re-sidebar
.re-saha-direct-menu
.re-menu-link:focus-visible {
    outline: none;

    border-color:
        rgba(240, 194, 54, .50);

    box-shadow:
        0 0 0 3px
        rgba(240, 194, 54, .08);
}


/* ----------------------------------------------------------
   MOBILE
   Tıklama alanı biraz daha büyük.
   Genişlik / position / transform YOK.
   ---------------------------------------------------------- */

@media (max-width: 991.98px) {

    .re-sidebar
    .re-saha-direct-menu
    .re-menu-link {
        min-height: 46px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

}


/* ==========================================================
   BUILDRO_SAHA_DIRECT_FINAL_ALIGN_V2
   Final optical alignment only.
   ========================================================== */

.re-sidebar
.re-saha-direct-menu {
    margin-top: 2px;
    margin-bottom: 2px;
}


/*
 * Accordion trigger ile aynı optik başlangıç.
 */
.re-sidebar
.re-saha-direct-menu
.re-menu-link {
    min-height: 44px;

    margin-top: 1px;
    margin-bottom: 1px;

    padding-left: 12px;
    padding-right: 12px;

    gap: 10px;

    background: transparent;

    border-color: transparent;

    font-weight: 600;
}


/*
 * Accordion ikonlarıyla aynı 24px kolon.
 */
.re-sidebar
.re-saha-direct-menu
.re-menu-link > i {
    flex: 0 0 24px;

    width: 24px;
    height: 24px;

    font-size: 1rem;
}


/*
 * Normal direct menülerde arka plan kesin nötr.
 */
.re-sidebar
.re-saha-direct-menu
.re-menu-link:not(.active) {
    background: transparent;
    border-color: transparent;
}


/*
 * Hover.
 */
.re-sidebar
.re-saha-direct-menu
.re-menu-link:not(.active):hover {
    background:
        rgba(255, 255, 255, .045);

    border-color:
        rgba(255, 255, 255, .035);
}


/*
 * Aktif modül.
 */
.re-sidebar
.re-saha-direct-menu
.re-menu-link.active {
    background:
        linear-gradient(
            90deg,
            rgba(25, 135, 84, .24),
            rgba(25, 135, 84, .09)
        );

    border-color:
        rgba(240, 194, 54, .30);

    color: #f0c236;

    font-weight: 700;
}


/*
 * Sarı active rail.
 */
.re-sidebar
.re-saha-direct-menu
.re-menu-link.active::before {
    left: -1px;

    top: 7px;
    bottom: 7px;

    width: 3px;
}


/*
 * Mobilde dokunma alanı korunur.
 */
@media (max-width: 991.98px) {

    .re-sidebar
    .re-saha-direct-menu
    .re-menu-link {
        min-height: 46px;
        margin-top: 1px;
        margin-bottom: 1px;
    }

}
