﻿/* MİREX — KABUK: header + sidebar kurumsal mavi; kırmızı yalnızca aktif menü sol çizgisi. */

:root {
    --mx-chrome: #0e4194;
    --mx-chrome-2: #164ea9;
    --mx-chrome-line: rgb(255 255 255 / 14%);
    --mx-chrome-text: #f1f5f9;
    --mx-chrome-muted: #b6d0f5;
}

.mx-header {
    background: var(--mx-chrome);
    box-shadow: 0 2px 4px rgb(14 65 148 / 18%);
    border-bottom: 1px solid var(--mx-chrome-line);
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
}

.mx-header__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 0;
    padding: 4px 10px;
    border-radius: var(--mx-radius-sm);
    background: #ffffff;
    box-shadow: 0 1px 3px rgb(0 0 0 / 14%);
    color: var(--mx-brand-blue);
    text-decoration: none;
    letter-spacing: -0.015em;
}

.mx-header__brand:has(.mx-header__brand-logo) > span,
.mx-header__brand:has(.mx-header__brand-logo) .mx-header__brand-icon {
    display: none !important;
}

.mx-header__brand-sub {
    color: var(--mx-text-muted);
    font-weight: 500;
    opacity: 1;
}

.mx-header .mx-sidebar__toggle {
    background: rgb(255 255 255 / 14%);
    border: 1px solid rgb(255 255 255 / 22%);
    color: #ffffff;
    flex-shrink: 0;
}

.mx-header .mx-sidebar__toggle:hover {
    background: rgb(255 255 255 / 24%);
}

.mx-user-pill {
    background: rgb(255 255 255 / 12%);
    border: 1px solid var(--mx-chrome-line);
    color: var(--mx-chrome-text);
}

.mx-user-pill__branch {
    color: var(--mx-chrome-muted);
    font-weight: 600;
}

.mx-header .mx-btn--secondary {
    background: rgb(255 255 255 / 10%);
    border-color: var(--mx-chrome-line);
    color: var(--mx-chrome-text) !important;
}

.mx-header .mx-btn--secondary:hover {
    background: rgb(255 255 255 / 18%);
    border-color: rgb(255 255 255 / 24%);
    color: #ffffff !important;
}

.mx-sidebar {
    background: var(--mx-chrome);
    box-shadow: 4px 0 16px rgb(14 65 148 / 22%);
    border: 1px solid var(--mx-chrome-line);
    border-radius: var(--mx-radius-xl);
}

.mx-sidebar__nav {
    flex: 1 1 auto;
    min-height: 0;
}

.mx-sidebar__foot {
    margin-top: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--mx-chrome-line);
}

.mx-sidebar__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    border-radius: var(--mx-radius-md);
    background: #ffffff;
    border: 1px solid rgb(255 255 255 / 28%);
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
    text-decoration: none;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.mx-sidebar__brand:hover {
    box-shadow: 0 2px 6px rgb(0 0 0 / 16%);
}

.mx-sidebar__brand-logo {
    display: block;
    width: 100%;
    max-width: 168px;
    height: auto;
    max-height: 36px;
    object-fit: contain;
}

.mx-sidebar--collapsed .mx-sidebar__brand {
    display: none;
}

.mx-header__start {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mx-sidebar__group-title {
    color: var(--mx-chrome-muted);
}

.mx-sidebar__link {
    color: var(--mx-chrome-text);
    font-weight: 500;
}

.mx-sidebar__link:hover {
    background: var(--mx-chrome-2);
    color: #ffffff;
}

.mx-sidebar__link.is-active {
    background: rgb(255 255 255 / 16%);
    color: #ffffff;
    font-weight: 700;
    border-left: 4px solid var(--mx-red-accent);
}

.mx-sidebar__user-profile {
    background: rgb(0 0 0 / 12%);
    border: 1px solid var(--mx-chrome-line);
    border-radius: var(--mx-radius-md);
}

.mx-sidebar__user-name {
    color: var(--mx-chrome-text);
    font-weight: 600;
    font-size: 12px;
}

.mx-sidebar__user-branch {
    color: var(--mx-chrome-muted);
    font-size: 11px;
    font-weight: 500;
}

.mx-sidebar__user-action-link {
    color: var(--mx-chrome-muted);
    font-size: 11px;
}

.mx-sidebar__user-action-link:hover {
    color: #ffffff;
}

.mx-sidebar__link:focus-visible,
.mx-header .mx-btn:focus-visible,
.mx-sidebar__brand:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}
