
body {
    font-family: "Segoe UI", Roboto, sans-serif;
    background-color: #f4f6f9;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 95%;
    margin: 30px auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
}

h1 {
    text-align: center;
    color: #333;
    font-size: 24px;
}

.date-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.date-form input[type="date"],
.date-form button {
    padding: 6px 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.date-form button {
    background-color: #002244;
    color: #fff;
    cursor: pointer;
}

.kpi-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 25px 0;
    gap: 15px;
}

.kpi-box {
    padding: 15px 20px;
    border-radius: 8px;
    flex: 1 1 200px;
    text-align: center;
    font-size: 16px;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.kpi-box.blue {
    background-color: #004080;
}

.kpi-box.dark {
    background-color: #002244;
}

.kpi-box.green {
    background-color: #28a745;
}

.kpi-box.orange {
    background-color: #ff8c00;
}

.kpi-box.purple {
    background-color: #6f42c1;
}

.kpi-box.gray {
    background-color: #6c757d;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 10px;
}

/* Redondear esquinas del encabezado */
table thead tr:first-child th:first-child {
    border-top-left-radius: 10px;
}
table thead tr:first-child th:last-child {
    border-top-right-radius: 10px;
}

/* Redondear esquinas del pie o última fila si aplica */
table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}
table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

th, td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #002244;
    color: white;
    font-size: 14px;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.total-row {
    background-color: #e2e2e2;
    font-weight: bold;
}

.total-general-row {
    background-color: #002244 !important;
    color: #ffffff !important;
    font-weight: bold !important;
}

.export-button {
    display: inline-block;
    padding: 10px 20px;
    margin-left: 10px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.export-button:hover {
    background-color: #218838;
}

.login-container {
    max-width: 300px;
    margin: 100px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.login-container button {
    padding: 10px 20px;
    background: #002244;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }

    th, td {
        padding: 8px;
        font-size: 13px;
    }

    .container {
        padding: 10px;
    }

    h1 {
        font-size: 20px;
    }

    .kpi-box {
        width: 100%;
    }
}

.alert-change {
    background-color: #ffcc00;
    color: #000;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.3);
}

.today-row {
    background-color: #e6f9ff;
    font-weight: bold;
}

.kpi-box.purple {
    background-color: #6f42c1; /* Puedes ajustar este color púrpura si deseas otro tono */
    color: #fff;
}

.variation-positive {
    color: green;
    font-weight: bold;
}
.variation-negative {
    color: red;
    font-weight: bold;
}
.variation-neutral {
    color: gray;
}
