/* ============================================================
   UNIFIED NAVIGATION BAR
   Single consistent top bar: [Company] [Actions] [User]
   ============================================================ */

.unified-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    height: 48px;
    min-height: 48px;
    background-color: #1a1a2e;
    border-bottom: 2px solid #16213e;
    padding: 0 12px;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

/* --- Left Section: Company --- */
.unified-navbar-left {
    flex: 0 0 auto;
    max-width: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-company-logo-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.navbar-company-logo {
    max-height: 80px;
    max-width: 100px;
    object-fit: contain;
}

.navbar-company-nick {
    color: #ffd700;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

.navbar-company-text-block {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.navbar-company-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.navbar-company-id {
    color: #b0b0b0;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* --- Center Section: Dynamic Actions --- */
.unified-navbar-center {
    min-width: 0;
    padding: 0 12px;
    overflow-x: auto;
    overflow-y: hidden;
}

/* Hide scrollbar but allow scroll */
.unified-navbar-center::-webkit-scrollbar {
    height: 0;
}

/* Document actions in center */
.navbar-center-doc .btn {
    font-size: 0.78rem;
    padding: 0.2rem 0.5rem;
    margin: 0 3px;
}

.navbar-doc-type {
    color: #ffd700;
    font-size: 0.85rem;
}

/* Listing controls in center */
.navbar-center-listing .form-control,
.navbar-center-listing .form-select {
    height: 30px;
    font-size: 0.8rem;
}

/* --- Right Section: User --- */
.unified-navbar-right {
    flex: 0 0 auto;
    max-width: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-user-icon-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.navbar-user-icon {
    color: #ffd700;
    font-size: 1.2rem;
}

.navbar-user-text-block {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.navbar-user-nick {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.navbar-user-country {
    color: #b0b0b0;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar-user-country .badge {
    font-size: 0.6rem;
    padding: 1px 3px;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {
    .unified-navbar-left {
        max-width: 200px;
    }

    .navbar-company-text-block {
        display: none;
    }

    .unified-navbar-right {
        max-width: 150px;
    }

    .navbar-user-text-block {
        display: none;
    }
}
