body {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    background: linear-gradient(120deg, #e0e7ff 0%, #f9fafb 100%);
    color: #22223b;
    margin: 0;
    padding: 0;
    font-size: 15px;
}

h1, h2, h3 {
    color: #3a3a5a;
    font-size: 22px;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-align: center;
}

.nohay {
    text-align: center;
    font-size: 18px;
    color: #6b7280;
    margin-top: 20px;
}

form {
    display: grid;
    place-content: center;
    width: 60%;
    background: #fff;
    border-radius: 10px;
    padding: 30px 25px;
    margin: 30px auto;
    box-shadow: 0 4px 24px rgba(60, 72, 88, 0.12);
    border: none;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #4f4f6e;
}

input[type="number"], input[type="date"], input[type="text"], input[type="password"], select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1.5px solid #cfd8dc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
    background: #f7faff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 6px rgba(99, 102, 241, 0.18);
}

select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 8L0.803847 0.5L11.1962 0.5L6 8Z' fill='%236366f1'/%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 10px;
}

button {
    background: linear-gradient(90deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    padding: 10px 22px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

button:hover {
    background: linear-gradient(90deg, #4f46e5 0%, #6366f1 100%);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.18);
}

table {
    width: 70%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px auto 0 auto;
    font-size: 14px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(60, 72, 88, 0.10);
    overflow: hidden;
}

th, td {
    padding: 12px 14px;
    text-align: left;
}

th {
    background: linear-gradient(90deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    font-size: 15px;
    letter-spacing: 0.5px;
    border: none;
}
.th-ingreso {
    background: linear-gradient(90deg, #008f0c 0%, #008f0c 100%);
    color: #fff;
    font-size: 15px;
    letter-spacing: 0.5px;
    border: none;
}
.th-egreso {
    background: linear-gradient(90deg, #ff0000 0%, #ff0000 100%);
    color: #fff;
    font-size: 15px;
    letter-spacing: 0.5px;
    border: none;
}
td {
    border-top: 1px solid #f0f0f0;
}

tr:nth-child(even) td {
    background-color: #f4f6fb;
}

tr:hover td {
    background-color: #e0e7ff;
    transition: background 0.2s;
}

.login-container {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    min-width: 320px;
}

/* Custom styled checkbox */
input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #6366f1;
    border-radius: 5px;
    background: #f7faff;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
    vertical-align: middle;
    margin-right: 8px;
}

input[type="checkbox"]:checked {
    background: #6366f1;
    border-color: #4f46e5;
}

/* Muestra la palomita del checkbox */
input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    pointer-events: none;
}

input[type="checkbox"]:focus {
    box-shadow: 0 0 4px #6366f1;
    outline: none;
}

.aviso {
    background: #38d39f;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    padding: 18px 28px;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(56, 211, 159, 0.25);
    text-align: center;
    text-shadow: 1px 2px 6px rgba(60, 72, 88, 0.18);
    margin: 20px auto;
    width: fit-content;
}
    .vertical-menu {
        width: 220px;
        font-family: 'Segoe UI', Arial, sans-serif;
        background: #f8f9fa;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.08);
        padding: 20px 0;
        margin-bottom: 30px;
    }
    .vertical-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .vertical-menu > ul > li {
        position: relative;
    }
    .vertical-menu a {
        display: block;
        color: #333;
        text-decoration: none;
        padding: 12px 28px;
        transition: background 0.2s, color 0.2s;
        border-radius: 8px;
        font-size: 1.05em;
    }
    .vertical-menu a:hover, .vertical-menu .submenu:hover > a {
        background: #007bff;
        color: #fff;
    }
    .vertical-menu .submenu > ul {
        display: none;
        position: static;
        background: #e9ecef;
        margin: 0 0 0 10px;
        border-radius: 8px;
    }
    .vertical-menu .submenu:hover > ul {
        display: block;
    }
    .vertical-menu .submenu > ul > li > a {
        padding: 10px 38px;
        font-size: 0.98em;
        color: #444;
    }
    .vertical-menu .submenu > ul > li > a:hover {
        background: #0056b3;
        color: #fff;
    }
    @media (max-width: 600px) {
        .vertical-menu {
            width: 100%;
            padding: 10px 0;
        }
        .vertical-menu a {
            padding: 10px 16px;
            font-size: 1em;
        }
        .vertical-menu {
            margin-bottom: 16px;
        }
        .vertical-menu, .vertical-menu + div {
            width: 100% !important;
            display: block !important;
        }
        div[style*="display: flex"] {
            flex-direction: column !important;
            gap: 0 !important;
        }
    }

    .avisoverde {
    background: #00a116;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 12px 28px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(56, 211, 159, 0.25);
    text-align: center;
    text-shadow: 1px 2px 6px rgba(60, 72, 88, 0.18);
    margin: 20px auto;
    width: fit-content;
}


.avisorojo {
    background: #ff0000;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 12px 28px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(56, 211, 159, 0.25);
    text-align: center;
    text-shadow: 1px 2px 6px rgba(60, 72, 88, 0.18);
    margin: 20px auto;
    width: fit-content;
}