/* Menu shell styles ported from the legacy ACEX.Enerya SPA. */
:root {
    --acex-legacy-drawer: var(--mud-palette-drawer-background, #ffffff);
    --acex-legacy-surface: var(--mud-palette-background, #eceff3);
    --acex-legacy-appbar: var(--mud-palette-appbar-background, #ffffff);
    --acex-legacy-appbar-text: var(--mud-palette-appbar-text, var(--mud-palette-text-primary, #111827));
    --acex-legacy-active: var(--mud-palette-secondary, #2196f3);
    --acex-legacy-active-text: var(--mud-palette-drawer-text, var(--mud-palette-text-primary, #0f172a));
    --acex-legacy-primary: var(--mud-palette-drawer-icon, var(--mud-palette-primary, #18bfa8));
    --acex-legacy-accent: var(--mud-palette-primary, #18bfa8);
    --acex-legacy-hover: var(--mud-palette-overlay-light, rgba(0, 0, 0, 0.06));
    --acex-legacy-drawer-text: var(--mud-palette-drawer-text, var(--mud-palette-text-primary, #111827));
    --acex-legacy-drawer-muted: var(--mud-palette-text-secondary, rgba(0, 0, 0, 0.54));
    --acex-legacy-border: var(--mud-palette-lines-default, rgba(15, 23, 42, 0.08));
    --acex-legacy-input-line: var(--mud-palette-lines-inputs, var(--mud-palette-lines-default, rgba(0, 0, 0, 0.32)));
}

.acex-legacy-shell {
    background: var(--acex-legacy-surface);
}

.acex-appbar.mud-appbar {
    min-height: 50px !important;
    height: 50px !important;
    background: var(--acex-legacy-appbar) !important;
    color: var(--acex-legacy-appbar-text) !important;
    border-bottom: 1px solid var(--acex-legacy-border);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

.acex-appbar .mud-icon-root,
.acex-appbar .mud-button-root {
    color: var(--acex-legacy-appbar-text);
}

.acex-drawer.mud-drawer,
.acex-drawer .mud-drawer-content,
.acex-drawer .mud-paper,
.acex-drawer .mud-card {
    background: var(--acex-legacy-drawer) !important;
    color: var(--acex-legacy-drawer-text) !important;
}

.acex-drawer.mud-drawer {
    border-right: 1px solid var(--acex-legacy-border);
    box-shadow: 2px 0 8px rgba(15, 23, 42, 0.10) !important;
}

.acex-person-card.mud-card {
    background: var(--acex-legacy-drawer) !important;
    color: var(--acex-legacy-drawer-text) !important;
    border-bottom: 1px solid var(--acex-legacy-border);
}

.acex-person-card .mud-card-header {
    padding: 10px !important;
}

.acex-person-card .mud-avatar {
    background: var(--mud-palette-background-grey, #d9dde2) !important;
    color: var(--acex-legacy-drawer-text) !important;
}

.acex-person-card .mud-typography-body1 {
    color: var(--acex-legacy-drawer-text);
    font-weight: 600;
}

.acex-person-card .mud-typography-body2 {
    color: var(--acex-legacy-drawer-muted);
}

.acex-nav-menu.mud-navmenu {
    color: var(--acex-legacy-drawer-text);
    padding: 0 6px 12px;
}

.acex-nav-loader {
    align-items: center;
    color: var(--acex-legacy-drawer-muted);
    display: flex;
    gap: 10px;
    justify-content: center;
    min-height: 180px;
    padding: 24px 12px;
}

.acex-nav-views {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(3, 1fr);
    padding: 0 6px 6px;
}

.acex-nav-views .mud-button-root {
    border: 0 !important;
    border-radius: 4px;
    box-shadow: none !important;
    min-width: 0;
    padding: 4px 2px;
    text-transform: none;
}

.acex-nav-version {
    display: flex !important;
    margin: 12px 6px 0;
    width: calc(100% - 12px);
}

.acex-nav-menu .mud-input-control {
    margin-bottom: 8px;
}

.acex-nav-search .mud-input {
    color: var(--acex-legacy-drawer-text);
}

.acex-nav-search .mud-input::before {
    border-bottom-color: var(--acex-legacy-input-line) !important;
}

.acex-nav-search .mud-input:hover::before,
.acex-nav-search .mud-input::after {
    border-bottom-color: var(--acex-legacy-accent) !important;
}

.acex-nav-search .mud-input-slot,
.acex-nav-search input {
    color: var(--acex-legacy-drawer-text) !important;
}

.acex-nav-search input::placeholder {
    color: var(--acex-legacy-drawer-muted) !important;
    opacity: 1;
}

.acex-nav-search .mud-input-adornment .mud-icon-root {
    color: var(--acex-legacy-accent) !important;
}

.acex-nav-section.mud-typography {
    color: var(--acex-legacy-active) !important;
    font-size: 13px;
    font-weight: 700;
}

.acex-nav-menu .mud-nav-link {
    min-height: 34px;
    padding: 5px 10px !important;
    margin: 1px 6px;
    white-space: normal !important;
    border-radius: 5px;
    color: var(--acex-legacy-drawer-muted) !important;
    border: 0 !important;
    box-shadow: none !important;
}

.acex-nav-menu .mud-nav-group,
.acex-nav-menu .mud-nav-item,
.acex-nav-menu .mud-collapse-container,
.acex-nav-menu .mud-collapse-wrapper-inner {
    border: 0 !important;
    box-shadow: none !important;
}

.acex-nav-menu .mud-nav-group > .mud-nav-link > .mud-nav-link-text {
    font-size: 13px;
    font-weight: 500 !important;
}

.acex-nav-menu .mud-nav-link .mud-nav-link-text {
    color: inherit !important;
    font-size: 13px !important;
    line-height: 1.25;
}

.acex-nav-menu .mud-nav-link .mud-nav-link-icon {
    color: var(--acex-legacy-accent) !important;
    min-width: 28px;
}

.acex-nav-menu .mud-nav-link .mud-nav-link-expand-icon {
    color: var(--acex-legacy-drawer-muted) !important;
}

.acex-nav-menu .mud-nav-link:hover,
.acex-nav-menu .mud-nav-item:hover {
    background-color: var(--acex-legacy-hover) !important;
    color: var(--acex-legacy-drawer-text) !important;
    border-radius: 5px;
}

.acex-nav-menu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled),
.acex-nav-menu .mud-nav-link.active:not(.mud-nav-link-disabled) {
    color: var(--acex-legacy-active-text) !important;
    background-color: var(--acex-legacy-active) !important;
}

.acex-nav-menu .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-text,
.acex-nav-menu .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-icon,
.acex-nav-menu .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-expand-icon {
    color: var(--acex-legacy-active-text) !important;
}

.acex-nav-menu .acex-nav-group > .mud-nav-link.active:not(.mud-nav-link-disabled),
.acex-nav-menu .acex-nav-subgroup > .mud-nav-link.active:not(.mud-nav-link-disabled) {
    background-color: transparent !important;
    color: var(--acex-legacy-drawer-text) !important;
}

.acex-nav-menu .acex-nav-group > .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-text,
.acex-nav-menu .acex-nav-subgroup > .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-text {
    color: var(--acex-legacy-drawer-text) !important;
}

.acex-nav-menu .acex-nav-group > .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-icon,
.acex-nav-menu .acex-nav-subgroup > .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-icon {
    color: var(--acex-legacy-accent) !important;
}

.acex-nav-menu .acex-nav-group > .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-expand-icon,
.acex-nav-menu .acex-nav-subgroup > .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-expand-icon {
    color: var(--acex-legacy-drawer-muted) !important;
}

.acex-nav-menu .acex-nav-child.active:not(.mud-nav-link-disabled) {
    color: var(--acex-legacy-active-text) !important;
    background-color: var(--acex-legacy-active) !important;
}

.acex-nav-menu .acex-nav-child.active:not(.mud-nav-link-disabled) .mud-nav-link-text,
.acex-nav-menu .acex-nav-child.active:not(.mud-nav-link-disabled) .mud-nav-link-icon {
    color: var(--acex-legacy-active-text) !important;
}

.acex-nav-child {
    padding-left: 10px !important;
}

.acex-nav-subgroup {
    margin-left: 8px;
}

.acex-nav-subgroup .mud-nav-link {
    min-height: 32px;
}

@media (max-width: 600px) {
    .acex-appbar.mud-appbar {
        min-height: 48px !important;
        height: 48px !important;
    }

    /* Dokunmatik hedef: iOS ve Android kilavuzlarinin ikisi de en az 44px istiyor.
       Menu baglantilari 34px (alt grup 32px) idi, telefonda 38px'e cikiyordu --
       yani hala esigin altinda. Ayni ekranlar MAUI kabugunda WebView icinde
       parmakla kullaniliyor. */
    .acex-nav-menu .mud-nav-link,
    .acex-nav-subgroup .mud-nav-link {
        min-height: 44px;
    }

    /* Gorunum sekmeleri (Favoriler / Is Birimi / Tumu) 3 sutunlu bir grid icinde
       4px 2px dolgu ile ~24px yukseklikteydi. */
    .acex-nav-views .mud-button-root {
        min-height: 44px;
    }
}
