/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ══ Layout ══ */
.pt-layout[b-1gmwmzzk8l] {
    display: flex;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.boot-screen[b-1gmwmzzk8l] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ══ Страничен панел ══ */
.pt-sidebar[b-1gmwmzzk8l] {
    width: 272px;
    min-width: 272px;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(2, 132, 199, 0.12);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 32px rgba(2, 132, 199, 0.06);
    z-index: 100;
    scrollbar-width: thin;
    scrollbar-color: rgba(2, 132, 199, 0.20) transparent;
}

.sidebar-logo[b-1gmwmzzk8l] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 18px 20px;
    border-bottom: 1px solid rgba(2, 132, 199, 0.10);
    flex-shrink: 0;
}

.sidebar-logo-icon[b-1gmwmzzk8l] {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0284C7, #059669);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.30);
    flex-shrink: 0;
}

.sidebar-logo-img[b-1gmwmzzk8l]   { width: 38px; height: 44px; object-fit: contain; flex-shrink: 0; }
.sidebar-logo-brand[b-1gmwmzzk8l] { font-size: 11px; font-weight: 700; color: #069648; letter-spacing: 0.08em; line-height: 1.2; }
.sidebar-logo-text[b-1gmwmzzk8l]  { font-size: 17px; font-weight: 700; color: #0F172A; line-height: 1.35; letter-spacing: -.02em; }
.sidebar-logo-sub[b-1gmwmzzk8l]  { font-size: 11.5px; color: #64748B; margin-top: 4px; line-height: 1.4; }

/* ── Зони ── */
.nav-zone[b-1gmwmzzk8l] {
    margin: 8px 6px;
    border-radius: 10px;
    border-left: 3px solid transparent;
    padding: 3px 0 6px;
}

.nav-section-label[b-1gmwmzzk8l] {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 16px 6px;
    color: #64748B;
    line-height: 1.4;
    user-select: none;
}

.nav-zone-products[b-1gmwmzzk8l] { background: rgba(2, 132, 199, 0.05); border-left-color: rgba(2, 132, 199, 0.30); }
.nav-zone-products .nav-section-label[b-1gmwmzzk8l] { color: #0369A1; }

.nav-zone-feedback[b-1gmwmzzk8l] { background: rgba(217, 119, 6, 0.05); border-left-color: rgba(217, 119, 6, 0.25); }
.nav-zone-feedback .nav-section-label[b-1gmwmzzk8l] { color: #B45309; }

.nav-zone-reports[b-1gmwmzzk8l] { background: rgba(37, 99, 235, 0.05); border-left-color: rgba(37, 99, 235, 0.30); }
.nav-zone-reports .nav-section-label[b-1gmwmzzk8l] { color: #2563EB; }

.nav-zone-company[b-1gmwmzzk8l] { background: rgba(109, 40, 217, 0.05); border-left-color: rgba(109, 40, 217, 0.25); }
.nav-zone-company .nav-section-label[b-1gmwmzzk8l] { color: #6D28D9; }

.nav-zone-system[b-1gmwmzzk8l] { background: rgba(15, 23, 42, 0.04); border-left-color: rgba(15, 23, 42, 0.15); }
.nav-zone-system .nav-section-label[b-1gmwmzzk8l] { color: #334155; }

/* ══ Основна зона ══ */
.pt-main[b-1gmwmzzk8l] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
}

.pt-topbar[b-1gmwmzzk8l] {
    height: 56px;
    min-height: 56px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(2, 132, 199, 0.12);
    display: grid;
    /* Двете странични колони са равни (1fr), за да е партидата точно в центъра */
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px) minmax(0, 1fr);
    grid-template-areas: "route batch account";
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    box-shadow: 0 2px 16px rgba(2, 132, 199, 0.05);
    z-index: 50;
    flex-shrink: 0;
    position: relative;
}

.topbar-left[b-1gmwmzzk8l]  { grid-area: batch; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
.topbar-center[b-1gmwmzzk8l] {
    grid-area: route;
    min-width: 0;
    overflow: hidden;
    pointer-events: none;
}
.topbar-title[b-1gmwmzzk8l] { display: block; font-size: 13px; font-weight: 600; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-right[b-1gmwmzzk8l] { grid-area: account; justify-self: end; display: flex; align-items: center; min-width: 0; }

/* ── Селектор на активна партида ── */
.active-batch-selector[b-1gmwmzzk8l] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border: 1.5px dashed #CBD5E1;
    border-radius: 10px;
    cursor: pointer;
    background: #F8FAFC;
    min-width: 0;
    max-width: 320px;
    width: 100%;
    user-select: none;
}
.active-batch-selector:hover[b-1gmwmzzk8l] { border-color: #0284C7; border-style: solid; background: #F1F5F9; }
.active-batch-selector.has-batch[b-1gmwmzzk8l] { border-style: solid; border-color: #BAE6FD; background: #F0F9FF; }
.active-batch-selector:focus-within[b-1gmwmzzk8l] { outline: 2px solid #0284C7; outline-offset: 2px; }

.abs-info[b-1gmwmzzk8l]        { display: flex; flex-direction: column; flex: 1; min-width: 0; overflow: hidden; gap: 3px; }
.abs-label[b-1gmwmzzk8l]       { font-size: 11px; color: #0369A1; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abs-name[b-1gmwmzzk8l]        { font-size: 13px; font-weight: 600; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abs-placeholder[b-1gmwmzzk8l] { min-width: 0; font-size: 13px; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Съдържание ── */
.page-content[b-1gmwmzzk8l] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
}

/* ── Акаунт меню ── */
.account-dropdown[b-1gmwmzzk8l] {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 250px;
    max-width: calc(100vw - 24px);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.15);
    border: 1px solid #E2E8F0;
    z-index: 1300;
    overflow: hidden;
    padding: 4px 0;
}
.account-menu-header[b-1gmwmzzk8l]  { display: flex; align-items: center; gap: 12px; padding: 12px 16px 10px; }
.account-menu-name[b-1gmwmzzk8l]    { font-size: 13px; font-weight: 700; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-menu-role[b-1gmwmzzk8l]    { font-size: 12px; color: #64748B; margin-top: 3px; line-height: 1.4; }
.account-menu-divider[b-1gmwmzzk8l] { height: 1px; background: #E2E8F0; margin: 4px 0; }
.account-menu-item[b-1gmwmzzk8l] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 9px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #334155;
    font-family: inherit;
    text-align: left;
}
.account-menu-item:hover[b-1gmwmzzk8l]        { background: #F1F5F9; }
.account-menu-item:focus-visible[b-1gmwmzzk8l] { outline: 2px solid #0284C7; outline-offset: -3px; background: #F0F9FF; }
.account-menu-item-danger[b-1gmwmzzk8l]       { color: #DC2626; }
.account-menu-item-danger:hover[b-1gmwmzzk8l] { background: #FEF2F2; }

.sidebar-backdrop[b-1gmwmzzk8l] { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.3); z-index: 150; }

@media (max-width: 959.98px) {
    .pt-sidebar[b-1gmwmzzk8l] { position: fixed; left: -272px; top: 0; z-index: 200; transition: left .2s; }
    .pt-sidebar.open[b-1gmwmzzk8l] { left: 0; }
    .page-content[b-1gmwmzzk8l] { padding: 16px; }
    .topbar-center[b-1gmwmzzk8l] { display: none; }
    .pt-topbar[b-1gmwmzzk8l] { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "batch account"; gap: 8px; padding: 0 12px; }
    .topbar-left[b-1gmwmzzk8l] { justify-content: flex-start; }
    .active-batch-selector[b-1gmwmzzk8l] { max-width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
    .pt-sidebar[b-1gmwmzzk8l] { transition: none; }
}
/* /Components/Shared/NavGroup.razor.rz.scp.css */
.nav-group[b-0xp69mvi49] { margin-bottom: 4px; }

.nav-group-header[b-0xp69mvi49] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 9px 14px;
    margin: 3px 8px;
    border-radius: 10px;
    cursor: pointer;
    color: #475569;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    user-select: none;
    position: relative;
    transition: background-color .15s ease, color .15s ease;
}

.nav-group-header:hover[b-0xp69mvi49] { background: #DBEAFE; color: #2563EB; }
.nav-group-header:focus-visible[b-0xp69mvi49] { outline: 2px solid #0284C7; outline-offset: 1px; }

.nav-group-header.child-active[b-0xp69mvi49] { color: #0369A1; font-weight: 700; }

.nav-group-label[b-0xp69mvi49] { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; }

.nav-group-items[b-0xp69mvi49] { margin: 2px 8px 4px 26px; padding: 2px 0 4px 8px; border-left: 1px solid rgba(2, 132, 199, .18); }

@media (prefers-reduced-motion: reduce) {
    .nav-group-header[b-0xp69mvi49] { transition: none; }
}
/* /Components/Shared/NavItem.razor.rz.scp.css */
.nav-item[b-3ls9k0rd95] {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 9px 14px;
    margin: 3px 8px;
    border-radius: 10px;
    color: #475569;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: background-color .15s ease, color .15s ease;
}

.nav-item:hover[b-3ls9k0rd95] { background: #E0F2FE; color: #0369A1; }
.nav-item:focus-visible[b-3ls9k0rd95] { background: #E0F2FE; color: #0369A1; outline: 2px solid #0284C7; outline-offset: 1px; }

.nav-item.active[b-3ls9k0rd95] { background: #DBEAFE; color: #1D4ED8; font-weight: 600; }

.nav-item.active[b-3ls9k0rd95]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 3px;
    background: #0284C7;
    border-radius: 0 3px 3px 0;
}

.nav-item.sub[b-3ls9k0rd95] { min-height: 36px; padding: 8px 10px; margin: 3px 0; font-size: 13px; font-weight: 400; }
.nav-item.sub.active[b-3ls9k0rd95] { font-weight: 600; }

.nav-label[b-3ls9k0rd95] { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; }

.nav-badge[b-3ls9k0rd95] {
    background: #DC2626;
    color: #fff;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 7px;
    line-height: 16px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

[b-3ls9k0rd95] .nav-icon { font-size: 18px !important; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
    .nav-item[b-3ls9k0rd95] { transition: none; }
}
