/* Header component styling */
.header {
    background-color: #00529B;
    /* Dulux blue background */
    color: white;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1000;
}

/* Logo styling */
.logo {
    font-weight: 700;
    font-size: 18px;
}

/* User info styling removed */

/* Dropdown container styling */
.header .dropdown-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    flex: 1;
    min-width: 0;
    max-width: none;
    width: auto;
    margin-left: 0;
    justify-content: flex-start;
}

/* Dropdown wrapper styling */
.header .dropdown-wrapper {
    flex: 1;
    min-width: 160px;
    max-width: 240px;
    width: auto;
    display: block;
}

.header .dropdown-wrapper:first-child {
    min-width: 200px;
    max-width: 320px;
}

/* Dropdown label styling — hidden; placeholders used instead */
.header .dropdown-label {
    display: none;
}

/* Dropdown select styling */
.header .dropdown-select {
    width: 100%;
    padding: 3px 6px;
    /* Further reduced padding to make height closer to font size */
    border: 2px solid #fff;
    /* White border */
    border-radius: 4px;
    background-color: white;
    color: #333;
    font-size: 14px;
    appearance: menulist;
    /* Show the default dropdown arrow */
    cursor: pointer;
    box-sizing: border-box;
    height: 28px;
    /* Explicitly set height to match font size */
    line-height: 1.2;
    /* Adjust line height to center text vertically */
}

/* Style for disabled dropdown */
.header .dropdown-select:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
    opacity: 0.7;
    border: 2px solid #ccc;
}

/* Header text styling - consolidated into #fixed-header-text */

/* Header text styling */
#fixed-header-text {
    color: white !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
    z-index: auto !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    flex: 0 0 auto;
    white-space: nowrap;
    margin-right: 0 !important;
}

/* User name styling removed */

/* User name span styling removed */

/* User name icon styling removed */

/* Responsive adjustments */
@media (max-width: 992px) {
    .header .dropdown-wrapper {
        min-width: 140px;
        max-width: 200px;
    }

    .header .dropdown-wrapper:first-child {
        min-width: 180px;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .header .dropdown-container {
        gap: 8px;
    }

    .header .dropdown-wrapper {
        min-width: 120px;
        max-width: 180px;
    }

    .header .dropdown-wrapper:first-child {
        min-width: 160px;
        max-width: 240px;
    }

    #fixed-header-text {
        font-size: 14px !important;
    }
}

@media (max-width: 576px) {
    .header .dropdown-wrapper {
        min-width: 100px;
        max-width: 160px;
    }

    .header .dropdown-wrapper:first-child {
        min-width: 140px;
        max-width: 200px;
    }
}