/* --- PŮVODNÍ STYLY --- */
.container {
    display: flex;
    gap: 30px;
}
.main-content {
    flex: 3;
}
.sidebar {
    flex: 1;
    background-color: #2a2a2e;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #3a3a3c;
    align-self: flex-start;
}
.sidebar h2 {
    margin-top: 0;
    text-align: center;
}
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #3a3a3c; }
thead { background-color: #333336; }
.prijem { color: #2ecc71; font-weight: 700; }
.vydaj { color: #e74c3c; font-weight: 700; }
td.account-cell { color: #a0a0a0; font-size: 0.9em; }
.recurring-form label { display: block; margin-bottom: 5px; color: #a0a0a0; }
.recurring-form input, .recurring-form select {
    width: 100%; padding: 8px; margin-bottom: 10px;
    background-color: #3a3a3c; color: #f5f5f5; border: 1px solid #555; border-radius: 4px; box-sizing: border-box;
}
.recurring-form button {
    width: 100%; padding: 10px; background-color: #4a90e2; color: #fff;
    border: none; border-radius: 4px; font-weight: bold; cursor: pointer; transition: background-color 0.3s;
}
.recurring-form button:hover { background-color: #357ABD; }
.btn-delete {
    background: none; border: 1px solid #c0392b; color: #c0392b; padding: 4px 8px; border-radius: 4px;
    cursor: pointer; font-size: 0.8em; transition: all 0.3s;
}
.btn-delete:hover { background-color: #c0392b; color: #fff; }
.summary-box-recurring { background-color: #2a2a2e; padding: 20px; border-radius: 8px; border: 1px solid #3a3a3c; margin-bottom: 30px; }
.summary-box-recurring h3 { margin-top: 0; text-align: center; color: #f5f5f5; border-bottom: 1px solid #3a3a3c; padding-bottom: 10px; margin-bottom: 10px; }
.summary-box-recurring .stat { display: flex; justify-content: space-between; font-size: 1.1em; padding: 8px 0; }
.summary-box-recurring .stat span { color: #a0a0a0; }
.summary-box-recurring .stat strong { font-weight: bold; }

/* --- NOVÁ SEKCE PRO MOBILNÍ TELEFONY --- */
@media (max-width: 600px) {
    .container {
        flex-direction: column; /* Zobrazí sidebar pod hlavním obsahem */
    }
}