﻿:root {
    --olive-dark: #7f8f6a;
    --olive-main: #9aa886;
    --olive-light: #c7d1b2;
    --beige-bg: #eef1e6;
    --white: #ffffff;
    --text-dark: #2e2e2e;
    --accent: #c86c5d;
}

body {
    margin: 0;
    background-color: var(--beige-bg);
    font-family: 'Segoe UI', sans-serif;
}

/* LAYOUT */
.layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 240px;
    background: linear-gradient( 180deg, var(--olive-dark), var(--olive-main) );
    color: white;
    padding: 20px;
}

.logo {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 30px;
}

.sidebar nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: background 0.3s;
}

    .sidebar nav a:hover {
        background-color: rgba(255,255,255,0.2);
    }

/* MAIN */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* TOPBAR */
.topbar {
    height: 60px;
    background-color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.menu-toggle {
    font-size: 22px;
    cursor: pointer;
}

.user {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .user img {
        width: 35px;
        height: 35px;
        border-radius: 50%;
    }

/* CONTENT */
.content {
    padding: 25px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .layout {
        flex-direction: column;
    }
}


/*abajo*/
/* Header visible */
.grid-jdr-header th {
    background: #0f5132;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    padding: 10px 6px;
    border-bottom: 2px solid #198754;
}

/* Celdas */
.grid-jdr td {
    padding: 8px 6px;
    text-align: right;
    border-bottom: 1px solid #dee2e6;
}

    /* Primera columna centrada */
    .grid-jdr td:first-child {
        text-align: center;
        font-weight: 500;
    }

/* Hover elegante */
.grid-jdr tr:hover td {
    background: rgba(15, 81, 50, 0.08);
    transition: background-color 0.15s ease-in-out;
    cursor: pointer;
}

/* Totales $ */
.grid-money td {
    font-weight: 600;
    color: #0f5132;
    background: #f1f7f4;
}