<?php
	    if(!isset($_SESSION)) 
    { 
        session_start(); 
    } 
	
	if(empty($_SESSION['active'])){
		header('location: ../');
	}
	
	$por_pagina=25;
?>
<style>

#menu {
	background: #0099CC;
	color: #FFF;
	height: 45px;
	padding-left: 18px;
	border-radius: 10px;
}
#menu ul, #menu li {
	margin: 0 auto;
	padding: 0;
	list-style: none
}
#menu ul {
	width: 100%;
}
#menu li {
	float: left;
	display: inline;
	position: relative;
}
#menu a {
	display: block;
	line-height: 45px;
	padding: 0 5px;
	text-decoration: none;
	color: #FFFFFF;
	font-size: 12px;
	text-transform: uppercase;
}
#menu a.dropdown-arrow:after {
	content: "\25BE";
	margin-left: 5px;
}
#menu li a:hover {
	color: #0099CC;
	background: #F2F2F2;
}
#menu input {
	display: none;
	margin: 0;
	padding: 0;
	height: 45px;
	width: 100%;
	opacity: 0;
	cursor: pointer
}
#menu label {
	display: none;
	line-height: 45px;
	text-align: center;
	position: absolute;
	left: 35px
}
#menu label:before {
	font-size: 1.6em;
	content: "\2261"; 
	margin-left: 20px;
}
#menu ul.sub-menus{
	height: auto;
	overflow: hidden;
	width: 280px;
	background: #20D1F5;
	position: absolute;
	z-index: 99;
	display: none;
}
#menu ul.sub-menus li {
	display: block;
	width: 100%;
}
#menu ul.sub-menus a {
	color: #FFFFFF;
	font-size: 12px;
}
#menu li:hover ul.sub-menus {
	display: block
}
#menu ul.sub-menus a:hover{
	background: #F2F2F2;
	color: #444444;
}
@media screen and (max-width: 800px){
	#menu {position:relative}
	#menu ul {background:#111;position:absolute;top:100%;right:0;left:0;z-index:3;height:auto;display:none}
	#menu ul.sub-menus {width:100%;position:static;}
	#menu ul.sub-menus a {padding-left:30px;}
	#menu li {display:block;float:none;width:auto;}
	#menu input, #menu label {position:absolute;top:0;left:0;display:block}
	#menu input {z-index:4}
	#menu input:checked + label {color:white}
	#menu input:checked + label:before {content:"\00d7"}
	#menu input:checked ~ ul {display:block}
}

        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
        }

        header, footer {
            background-color: #333;
            color: white;
            text-align: center;
            padding: 10px;
        }

        section {
            display: flex;
            justify-content: space-between;
            padding: 5px;
            box-sizing: border-box;
        }

        nav {
            width: 20%;
            background-color: #f1f1f1;
            padding: 20px;
            box-sizing: border-box;
        }

        article {
            width: 90%;
            box-sizing: border-box;
        }

        nav a {
            display: block;
            padding: 5px;
            margin-bottom: 10px;
            text-decoration: none;
            color: #333;
            background-color: #ddd;
            border-radius: 5px;
            text-align: center;
        }

        nav a:hover {
            background-color: #555;
            color: white;
        }
		table{
	/*border: 1px solid black;*/
  
	border-collapse:collapse;
	
	font-size: 9pt;
	font-family: 'arial';
	width: 100%;
}
table th{
	text-align: left;
	padding: 9px;
	background: #f1f1f1;
	<!--color: #fff; !-->
}
table tr:nth-child(odd){
	background:#fff;
}
table td{
	padding: 5px;
}

.unidad table{

	border-collapse:collapse;
	font-size: 9pt;
	font-family: 'arial';
	width: 50%;
}
.unidad table th{
	text-align: left;
	padding: 9px;
	background: #f1f1f1;
	<!--color: #fff; !-->
}
.unidad table tr:nth-child(odd){
	background:#fff;
}
.unidad table td{
	
	padding: 5px;
	
}

.paginador ul{
	padding:5px;
	list-style: none;
	background: #ededed;
	margin-top: 5px;
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	justify-content: flex-end;
}

.paginador a{
	color: #428bca;
	border: 1px solid #ddd;
	padding: 5px;
	display: inline-block;
	font-size: 14px;
	text-align: center;
	width: 35px;
}

.pageSelected{
	color: #428bca;
	border: 1px solid #ddd;
	padding: 5px;
	display: inline-block;
	font-size: 14px;
	font-weight: bold;
	text-align: center;
	width: 35px;
}

.paginador a:hover{
	background: #ddd;
}

.pageSelected{
	color: #fff;
	background: #428bca;
	border: 1px solid #428bca;
}

.link_edit{
	color: #0ca4ce;
	font-size:16px;
}

.link_download{
	color: #08d41d;
	font-size:16px;
}

.link_delete{
	color: #f26b6b;
	font-size:16px;
}

.optionsBar{
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    justify-content: center;
    align-items: center;
}
.optionsBar span {
    color: #FFF;
    font-size: 11pt;
    font-family: 'GothamBook';
    text-transform: uppercase;
    margin-left: 30px;
}
.photouser {
    margin-left: 30px;
    width: 25px;
    height: 25px;
}
.close{
	width: 25px;
    height: 25px;
}
.optionsBar a {
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    margin-left: 30px;
}
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Bootstrap JS y Popper.js (necesarios para el funcionamiento de Bootstrap) -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    </style>
<header>
		<div class="header">
			

			<div class="optionsBar">
	
				<span>|</span>
				<span class="user"><?php echo $_SESSION['nombre']." [ ".$_SESSION['user']." ] | ".$_SESSION['suc'];?></span>
				<img class="photouser" src="img/user.png" alt="Usuario">
				<a href="salir.php"><img class="close" src="img/salir.png" alt="Salir del sistema" title="Salir"></a>
			</div>
		</div>

		
	</header>