/* ================== RESET ================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    background: #f4f4f4;
    color: #333;
}

h2 {
	text-decoration: underline;
	font-size: 1.4vw;
}

h1 {
	text-decoration: underline;
}

/* ================== DASHBOARD ================== */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* ================== SIDEBAR ================== */
.sidebar {
    width: 250px;
    background: #ffffff;
    border-right: 1px solid #ddd;
    padding: 15px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
}

.sidebar .logo {
    font-size: 1.2rem;
    color: #4a4a4a;
    margin-bottom: 5px;
    text-align: center;
    font-weight: bold;
}

.sidebar .menu {
    list-style: none;
    padding: 0;
    flex-grow: 1;
}

.sidebar .menu li {
    margin-bottom: 10px;
}

.sidebar .menu a {
    display: block;
    padding: 2px 10px;
    color: #4a4a4a;
    background: #f9f9f9;
    border-radius: 6px;
    transition: 0.2s;
    text-decoration: none;
    font-size: 0.8vw;
	margin: 0.3vw 0.09vw;
    border: 1px solid transparent;
}

.sidebar .menu a.active,
.sidebar .menu a:hover {
    background: #e0e0e0;
    border-color: #b0b0b0;
	height: fit-content;
}

.sidebar .menu a.logout {
    background: #fff;
    color: #d9534f;
    border: 1px solid #d9534f;
}

.sidebar .menu a.logout:hover {
    background: #d9534f;
    color: #fff;
}

/* ================== CONTENIDO PRINCIPAL ================== */
.main-content {
    margin-left: 250px;
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ================== TOPBAR ================== */
.topbar {
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
}

.topbar h1 {
    color: #333;
    font-size: 1.3vw;
    font-weight: 900;
}

.topbar .rango {
    color: #555;
    font-weight: bold;
}

/* ================== TABLAS ================== */
table {
    width: fit-content;
	align-self: center;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    background: #fff; /* Fondo claro por defecto */
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

table th, table td {
    padding: 8px 8px;
    font-size: 0.9vw;
    text-align-last: center;
    border-bottom: 1px solid #e0e0e0;
}

table th {
    background-color: #f5f5f5;
    font-weight: 600;
}

table tr:hover {
    background-color: #f1f1f1;
    transition: background 0.3s;
}

table td:last-child {
    text-align: right; /* opcional, para montos o acciones */
}

/* ================== PANEL CARDS ================== */
.paneles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.panel-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.panel-card:hover {
    transform: translateY(-5px);
    border-color: #bbb;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);*/
}

.panel-card h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1rem;
}

.panel-card p {
    font-size: 0.875vw; color: #666;
}

/* ================== ÁREA DINÁMICA ================== */
.dynamic-section {
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 30px 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.dynamic-section h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.dynamic-section .placeholder {
    color: #999;
    font-size: 0.95rem;
}

/* ================== FORMULARIOS ================== */
form {
    max-width: fit-content;
    margin: 0 auto 30px;
    padding: 25px 30px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    font-family: 'Montserrat', sans-serif;
    color: #333;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

form input[type="text"],
form input[type="password"],
form input[type="number"],
form input[type="date"],
form textarea,
form select {
    width: 100%;
    padding: 7px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 0.8vw;
    transition: border 0.3s, box-shadow 0.3s;
}

form input:focus,
form textarea:focus,
form select:focus {
    border-color: #007BFF;
    box-shadow: 0 0 6px rgba(0,123,255,0.3);
    outline: none;
}

form button {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    background-color: #007BFF;
    color: #fff;
	font-size: 0.9vw;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

form button:hover {
    background-color: #0056b3;
    transform: scale(1.03);
}

form input[type="file"] {
	margin-bottom: 25px;
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
    transition: border 0.3s, background 0.3s;
}

form input[type="file"]:hover {
    border-color: #007BFF;
    background-color: #eef5ff;
}

form input[type="file"]:focus {
    outline: none;
    border-color: #007BFF;
    box-shadow: 0 0 6px rgba(0,123,255,0.3);
}

/* ================== FOOTER ================== */
footer {
    background: #f9f9f9;
    text-align: center;
    padding: 20px;
    color: #666;
    border-top: 1px solid #ddd;
    margin-top: auto;
    margin-left: 250px;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    .paneles {
        grid-template-columns: 1fr;
    }
}



        .panel-card { background:#f9f9f9; padding:12px; border-radius:8px; box-shadow:0 2px 5px rgba(0,0,0,0.1)}
        .paneles { display:flex; gap:20px; flex-wrap:wrap; }
        .panel-card h3 { margin-bottom:10px; }
        .dynamic-section { margin-top:30px; }
        textarea { font-family: monospace;}
	h6 { font-size: 0.9vw}
