body, html {
    margin: 0;
    min-height: 100%;
    height: 100%;
}

/* ===== LAYOUT ===== */

#app-side-nav-outer-toolbar {
    flex-direction: column;
    display: flex;
    height: 100%;
    width: 100%;
}

.layout-header {
    flex: 0 0 auto;
    box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24);
    position: relative;
    z-index: 1505;
}

.layout-body {
    background-color: #f2f2f2;
    flex: 1;
    height: 100%;
    min-height: 0;
}

.layout-body-hidden {
    visibility: hidden;
}

.layout-body .content {
    flex-grow: 1;
    height: 100%;
    line-height: 1.5;
    margin: 20px 40px;
}

    .layout-body .content h2 {
        font-size: 32px;
        line-height: 40px;
    }

.layout-body .content-block {
    margin: 0 0 20px;
}

.layout-body .content-footer {
    display: block;
    color: rgba(0,0,0,.609);
    border-top: 1px solid rgba(0,0,0,.1);
    padding-top: 20px;
    padding-bottom: 24px;
    margin: 0 40px;
}

.layout-body .responsive-paddings {
    padding: 20px;
}

@media screen and (max-width: 600px) {
    .layout-body .content {
        margin: 20px;
    }
}

@media screen and (min-width: 1280px) {
    .layout-body .responsive-paddings {
        padding: 40px;
    }
}

/* ===== DRAWER ===== */
.dxdi-toolbox svg.dxdi-canvas .toolbox-item > rect.selector {
    transform: scaleY(0.7);
    transform-origin: center;
}
#layout-drawer.dx-drawer-shrink .dx-drawer-panel-content {
    box-shadow: rgba(0,0,0,.06) 0px 4px 4px 0px, rgba(0,0,0,.12) 0px 1px 2px 0px;
}

.with-footer > .dx-scrollable-wrapper > .dx-scrollable-container > .dx-scrollable-content {
    height: 100%;
}

    .with-footer > .dx-scrollable-wrapper > .dx-scrollable-container > .dx-scrollable-content > .dx-scrollview-content {
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

/* ===== SIDEBAR / MENU ===== */

.layout-body .menu-container {
    height: 100%;
    width: 250px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.menu-container .dx-treeview {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.menu-container .dx-widget {
    font-size: 14px;
    font-family: Roboto, RobotoFallback, Helvetica, Arial, sans-serif;
    line-height: 24px;
}

/* Tüm node'larda padding sıfırla */
.menu-container .dx-treeview .dx-treeview-node {
    padding: 0 !important;
}

/* Tüm item'lar için temel stil */
.menu-container .dx-treeview .dx-treeview-item {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding-left: 0;
}

    /* İkon genişliği sabit — 60px'lik kapalı (shrink) raya tam sığar.
       Expander stub 28px kaydırıyordu; gizlenince ikon 0-60 aralığında ortalanır. */
    .menu-container .dx-treeview .dx-treeview-item .dx-icon {
        width: 60px !important;
        text-align: center;
        margin: 0 !important;
        flex-shrink: 0;
    }

    .menu-container .dx-treeview .dx-treeview-expander-icon-stub {
        display: none;
    }

/* Toggle ok — sağa hizala */
.menu-container .dx-treeview .dx-treeview-toggle-item-visibility {
    right: 10px;
    left: auto;
}

/* Seviye 1 — kalın */
.menu-container .dx-treeview .dx-treeview-node[aria-level="1"] > .dx-treeview-item .dx-treeview-item-content {
    font-weight: 700;
}

/* Seviye 2 — normal, içeri */
.menu-container .dx-treeview .dx-treeview-node[aria-level="2"] > .dx-treeview-item .dx-treeview-item-content {
    font-weight: 600;
    padding-left: 20px;
}

.menu-container .dx-treeview .dx-treeview-node[aria-level="2"] > .dx-treeview-item .dx-icon {
    width: 40px !important;
}

/* Seviye 3 — normal, daha içeri */
.menu-container .dx-treeview .dx-treeview-node[aria-level="3"] > .dx-treeview-item .dx-treeview-item-content {
    font-weight: normal;
    padding-left: 36px;
}

.menu-container .dx-treeview .dx-treeview-node[aria-level="3"] > .dx-treeview-item .dx-icon {
    display: none;
}

/* Toolbar menu button */
.dx-toolbar .dx-toolbar-item.menu-button {
    width: 60px;
    text-align: center;
    padding: 0;
}

/* ===== CARDS ===== */

.dx-card {
    box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.24);
    border-radius: 4px;
    background-color: #fff;
    margin: 2px 2px 3px;
}

    .dx-card.wide-card {
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
        border-right: 0;
        border-left: 0;
    }

/* ===== LOGIN ===== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f2f2f2;
}

.login-card {
    width: 100%;
    max-width: 360px;
    padding: 24px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .login-card button {
        margin-top: 8px;
    }

/* Üst bar profil chip'i */
.profile-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 16px;
    text-decoration: none;
    color: #203a43;
    font-weight: 600;
}

    .profile-chip:hover {
        background-color: rgba(0, 0, 0, .06);
        text-decoration: none;
        color: #203a43;
    }

    .profile-chip .dx-icon-user {
        font-size: 16px;
    }
