/* Sector 7 Portal — Header CSS */
html, body { margin: 0; padding: 0; }

.s7-header {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.s7-header,
.s7-header * {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.s7-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0b0f14;
    color: #fff;
    padding: 12px 24px;
    border-bottom: 2px solid #1e90ff;
    box-sizing: border-box;
    font-size: 16px !important;
    line-height: 1.2 !important;
}

.s7-header .s7-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.s7-header .s7-badge {
    background: #1e90ff;
    color: #fff;
    font-weight: 700;
    font-size: 13px !important;
    padding: 3px 9px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.s7-header .s7-title {
    font-size: 15px !important;
    font-weight: 600;
    color: #c8d8f0;
    letter-spacing: 0.02em;
}

.s7-header nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.s7-header nav a {
    color: #a8c0dc;
    text-decoration: none;
    font-size: 14px !important;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.s7-header nav a:hover,
.s7-header nav a.active {
    background: #1a2840;
    color: #fff;
}

.s7-header nav a.nav-about { color: #7dd3fc; }
.s7-header nav a.nav-about:hover,
.s7-header nav a.nav-about.active { background: #1a2840; color: #38bdf8; }

.s7-header nav a.nav-staff { color: #fb923c; }
.s7-header nav a.nav-staff:hover,
.s7-header nav a.nav-staff.active { background: #2a1800; color: #fb923c; }

.s7-header nav a.nav-admin { color: #f87171; }
.s7-header nav a.nav-admin:hover,
.s7-header nav a.nav-admin.active { background: #2a0a0a; color: #f87171; }

.s7-header .s7-user-area {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.s7-header .user-label {
    color: #c8d8f0;
    font-size: 13px !important;
    font-weight: 600;
    margin-right: 4px;
}
.s7-header .user-label.user-role-staff { color: #fb923c; }
.s7-header .user-label.user-role-admin { color: #f87171; }

.s7-header .env-label {
    font-size: 12px !important;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #1e90ff;
    color: #1e90ff;
    transition: background 0.15s, color 0.15s;
}

.s7-header .env-label:hover {
    background: #1e90ff;
    color: #fff;
}

.s7-header .env-label.env-label-usmg {
    border-color: #A93226 !important;
    color: #A93226 !important;
}

.s7-header .env-label.env-label-usmg:hover {
    background: #A93226 !important;
    border-color: #A93226 !important;
    color: #fff !important;
}

.s7-header .env-label.logout {
    border-color: #556;
    color: #99a;
}

.s7-header .env-label.logout:hover {
    background: #334;
    color: #fff;
    border-color: #778;
}

@media (max-width: 768px) {
    .s7-header {
        flex-direction: column;
        gap: 10px;
        padding: 12px 16px;
    }
    .s7-header nav {
        justify-content: center;
    }
}
