/* Main ERP navbar */
.erp-navbar {
    min-height: 58px;
    background: #111827;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.14);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.erp-navbar-inner {
    min-height: 58px;
    padding-inline: 18px;
    gap: 16px;
}

.erp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

.erp-brand:hover {
    color: #fff;
}

.erp-brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 17px;
    flex: 0 0 auto;
}

.erp-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.erp-brand-name {
    font-size: 15px;
    font-weight: 750;
    letter-spacing: 0;
}

.erp-brand-subtitle {
    margin-top: 3px;
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
}

.erp-navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.erp-nav-icon-btn,
.erp-profile-trigger {
    border: 0;
    background: transparent;
    color: #d1d5db;
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.erp-nav-icon-btn {
    position: relative;
    font-size: 18px;
}

.erp-nav-icon-btn:hover,
.erp-profile-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.erp-nav-badge {
    position: absolute;
    top: 4px;
    inset-inline-end: 3px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    border: 2px solid #111827;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.erp-nav-badge-danger {
    background: #dc2626;
}

.erp-nav-badge-primary {
    background: #2563eb;
}

.erp-profile-trigger {
    gap: 9px;
    height: 42px;
    padding: 4px 7px;
}

.erp-avatar,
.erp-profile-avatar-lg {
    border-radius: 999px;
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.erp-avatar {
    width: 32px;
    height: 32px;
}

.erp-avatar-fallback {
    background: #2563eb;
    color: #fff;
    font-weight: 750;
}

.erp-profile-copy {
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    max-width: 150px;
    line-height: 1.1;
}

.erp-profile-name {
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-profile-branch {
    margin-top: 3px;
    color: #9ca3af;
    font-size: 11px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-profile-chevron {
    color: #9ca3af;
    font-size: 12px;
}

.erp-dropdown {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
}

.erp-notification-menu {
    width: 330px;
}

.erp-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.erp-dropdown-title {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 750;
}

.erp-dropdown-subtitle {
    display: block;
    margin-top: 3px;
    color: #6b7280;
    font-size: 11px;
}

.erp-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    color: #111827;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
}

.erp-dropdown-item:hover {
    background: #f8fafc;
    color: #111827;
}

.erp-dropdown-item-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.erp-dropdown-item-body strong {
    font-size: 13px;
    font-weight: 700;
}

.erp-dropdown-item-body small {
    margin-top: 4px;
    color: #6b7280;
    font-size: 11px;
}

.erp-dropdown-footer {
    padding: 10px 14px;
    text-align: center;
    background: #fff;
}

.erp-dropdown-footer a {
    color: #2563eb;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.erp-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 22px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
}

.erp-chip-warning {
    background: #fef3c7;
    color: #92400e;
}

.erp-chip-success {
    background: #dcfce7;
    color: #166534;
}

.erp-chip-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.erp-mini-avatar {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.erp-profile-menu {
    width: 380px;
}

.erp-profile-card {
    padding: 18px;
    background: #1f2937;
    color: #fff;
}

.erp-profile-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.erp-profile-card-main strong {
    display: block;
    font-size: 15px;
    font-weight: 750;
}

.erp-profile-card-main span,
.erp-profile-card-main small {
    display: block;
    margin-top: 3px;
    color: #d1d5db;
    font-size: 12px;
}

.erp-profile-avatar-lg {
    width: 48px;
    height: 48px;
    font-size: 18px;
}

.erp-profile-last-login {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 11px;
}

.erp-profile-section {
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f7;
}

.erp-section-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 750;
}

.erp-info-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 0;
    color: #6b7280;
    font-size: 12px;
}

.erp-info-row b {
    color: #111827;
    font-weight: 650;
    text-align: end;
    min-width: 0;
    overflow-wrap: anywhere;
}

.erp-role-pill {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
}

.erp-profile-links {
    display: grid;
    gap: 4px;
}

.erp-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    padding: 7px 8px;
    border-radius: 8px;
    color: #111827;
    text-decoration: none;
    font-size: 13px;
}

.erp-menu-link:hover {
    background: #f8fafc;
    color: #111827;
}

.erp-profile-footer {
    padding: 12px 16px;
}

.erp-profile-footer form {
    margin: 0;
}

.erp-logout-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    background: #fff;
    cursor: pointer;
}

.erp-logout-link:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.font-monospace {
    font-size: 11px;
}

@media (max-width: 768px) {
    .erp-navbar-inner {
        padding-inline: 10px;
    }

    .erp-brand-subtitle,
    .erp-profile-copy,
    .erp-profile-chevron {
        display: none;
    }

    .erp-brand-name {
        font-size: 14px;
    }

    .erp-navbar-actions {
        gap: 3px;
    }

    .erp-notification-menu,
    .erp-profile-menu {
        width: min(94vw, 380px);
    }
}
