/* Layout base */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Sidebar izquierdo */
#sidebar {
    /* el ancho lo controla index.html en % */
    padding: 20px;
    background-color: #0f172a;
    color: #e2e8f0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.25);
    height: auto;                   /* <— quita 100vh que desacomodaba */
    max-height: calc(100vh - 160px);/* alto máximo con scroll interno */
    overflow-y: auto;
}
#sidebar h2 { margin-top: 0; }
#event-list { margin-top: 20px; }

.event-item {
    background-color: rgba(255,255,255,0.06);
    margin: 10px 0;
    padding: 12px;                   /* más bajas */
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(2,6,23,.35);
    border: 1px solid #b91c1c;
    color: #e2e8f0;
}
.event-item strong { display:block; color:#e2e8f0; margin-bottom:5px; }

/* Calendario (item flex dentro de #content) */
#calendar {
    flex: 1 1 auto;
    padding: 20px;
    max-width: none;                /* evita límite artificial */
    margin: 0;                      /* <— saca margin auto que empujaba todo */
}

/* Columna de tickets derecha */
#ticket-list-container {
    /* el ancho lo controla index.html en % */
    padding: 20px;
    background-color: #0f172a;
    color: #e2e8f0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.25);
    height: auto;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}
#ticket-list-container h2 { margin-top: 0; }
#ticket-list { margin-top: 20px; }

.ticket-item {
    background-color: rgba(255,255,255,0.06);
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    border: 1px solid #334155;
}

/* Gráficos y otras vistas */
.chart-container { flex: 1; height: 400px; }
.chart-row { display:flex; justify-content:space-around; gap:20px; margin-bottom:20px; }
.full-width-chart { width:100%; height:400px; }
canvas { width:100% !important; height:100% !important; }

.container { display:flex; justify-content:space-between; max-width:1000px; margin-bottom:20px; }
.column { width:48%; }
.column.left { text-align:left; }
.column.right{ text-align:right; }
.next-payment p { margin:5px 0; }
