body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f4f7fc; /* Gris muy claro Zurich */
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #0053a0; /* Azul Zurich */
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h1 {
    font-size: 1.5em;
    margin: 0;
}

header .logo {
    height: 40px; /* Ajusta según tu logo */
    background-color: #eee; /* Placeholder */
    padding: 5px;
    border-radius: 3px;
}

header .user-info {
    font-size: 0.9em;
}

main {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Espacio entre secciones */
}

section#controls {
    display: flex;
    flex-wrap: wrap; /* Para que se ajusten en pantallas pequeñas */
    gap: 30px; /* Espacio entre grupos de control */
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.control-group {
    flex: 1; /* Ocupa espacio disponible */
    min-width: 250px; /* Ancho mínimo */
}

.control-group h2 {
    margin-top: 0;
    font-size: 1.1em;
    color: #0053a0;
    border-bottom: 2px solid #0053a0;
    padding-bottom: 5px;
}

label {
    display: block;
    margin: 10px 0 5px 0;
    font-weight: bold;
    font-size: 0.9em;
}

input[type="text"],
input[type="month"],
input[type="date"],
select {
    width: calc(100% - 22px); /* Ajuste para padding y borde */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

.btn-primary, .btn-secondary {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #0053a0; /* Azul Zurich */
    color: white;
}

.btn-primary:hover {
    background-color: #003d73; /* Azul más oscuro */
}

.btn-secondary {
    background-color: #e0e0e0; /* Gris claro */
    color: #333;
    border: 1px solid #ccc;
}

.btn-secondary:hover {
    background-color: #d0d0d0;
}

#dashboard-view h2, #policy-view h2 {
     color: #0053a0;
     margin-bottom: 15px;
     border-bottom: 1px solid #eee;
     padding-bottom: 8px;
}

.kpi-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex: 1; /* Ocupan espacio disponible */
    min-width: 200px;
}

.card h3 {
    margin-top: 0;
    font-size: 1em;
    color: #555;
}

.card .amount {
    font-size: 2em;
    font-weight: bold;
    color: #0053a0;
    margin: 10px 0;
}

.chart-container {
    /* Estilos específicos del contenedor del gráfico si son necesarios */
}

#chart-placeholder {
    text-align: center;
    padding: 40px;
    border: 1px dashed #ccc;
    border-radius: 4px;
    background-color: #fafafa;
}

.table-container {
    overflow-x: auto; /* Para tablas anchas en pantallas pequeñas */
    margin-top: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
    font-size: 0.9em;
}

th {
    background-color: #e9eff5; /* Azul muy pálido */
    font-weight: bold;
    color: #333;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:hover {
    background-color: #f0f5fa;
}

tbody a.policy-link {
    color: #0053a0;
    text-decoration: none;
    font-weight: bold;
}
tbody a.policy-link:hover {
    text-decoration: underline;
}

.policy-info p {
    margin: 5px 0;
}

footer {
    background-color: #f0f0f0;
    text-align: center;
    padding: 15px;
    font-size: 0.8em;
    color: #666;
    border-top: 1px solid #ddd;
}