#portalMenu {
    width: 280px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    color: #fff;
    background-color: #2d3e50;
}

#portalMenu li,
#portalMenu a {
    color: #fff;
}

#portalMenu a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0;
    text-decoration: none;
}

#portalMenu .navbar-brand {
    display: flex;
    justify-content: center;
    margin-right: 0;
}

#portalMenu i {
    font-size: 22px;
}

#portalMenu span {
    display: inline-flex;
    justify-content: center;
    width: 54px;
}

/* Header fijo arriba */
#portalHeader {
    position: fixed;
    top: 0;
    left: 280px;
    /* respeta el ancho del sidebar */
    right: 0;
    height: 80px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* título a la izquierda, logo a la derecha */
    padding: 0 40px;
    z-index: 1000;
    background: #fff;
    /* opcional, asegura que no se transparente */
}

h1 {
    font-size: 30px;
    color: #2d3e50;
    margin: 0;
}

#portalHeader .logo-cliente {
    max-height: 52px;
    /* ajusta según tu logo */
    object-fit: contain;
}

/* 🔹 Aquí empieza el ajuste */
.portalContainer {
    width: calc(100% - 280px);
    /* ocupa todo el ancho restante */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#portalContent {
    margin-top: 80px;
    /* respeta el header */
    padding: 40px;
    flex: 1;
    width: 100%;
    text-align: left;
    /* 🔹 fuerza alineación a la izquierda */
    display: block;
    /* 🔹 asegura que el contenido fluya normal */
}



.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.styled-table thead {
    background-color: #2d3e50;
    color: #fff;
}

.styled-table th,
.styled-table td {
    padding: 12px 16px;
    text-align: left;
}

.styled-table tbody tr:nth-child(even) {
    background-color: #f5f7fa;
}

.styled-table a {
    color: #2d6cdf;
    text-decoration: none;
    font-weight: 500;
}

.styled-table a:hover {
    text-decoration: underline;
}

.styled-table td i {
    font-size: 16px;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 400;
    font-size: 14px;
    color: #fff;
    padding: 8px;
}

.badge.success {
    background-color: #41ac5a;

}

.logo {
    margin-bottom: 30px;
}

.login-box {
    background: white;
    padding: 30px;
    margin: auto;
    width: 300px;
    border-radius: 8px;
    box-shadow: 0 0 10px #ccc;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

.eye-icon {
    float: right;
    margin-top: -28px;
    margin-right: 10px;
    cursor: pointer;
}

.btn {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    cursor: pointer;
}

.footer-links {
    margin-top: 15px;
    font-size: 0.9em;
}

.footer-links a {
    color: #0073aa;
    text-decoration: none;
}

.content {
    display: flex;
    flex-direction: column;
    /* mantiene el orden vertical */
    justify-content: center;
    /* centra verticalmente */
    align-items: center;
    /* centra horizontalmente */
    min-height: 100vh;
    /* ocupa toda la pantalla */
}